Recent Posts

Pages: [1] 2 3 ... 10
1
The 3D Model Collection / Drone N027
« Last post by Patrice Terrier on January 16, 2020, 08:09:32 pm »
Drone N027

Is based on "Buster Drone" of LaVADraGoN (Sketchfab).

Several new meshes have been added to the original for the purpose of animation.

"Coin-Op-Chaos_Looping.mp3" has been created by Eric Matyas (Soundimage.org)

Note: This model requires ObjReader version 2.85+



Note: Attachments are only available to registered users.
2
Post Your Questions & Comments Here / Re: Animated Backgrounds?
« Last post by Patrice Terrier on January 11, 2020, 07:55:20 pm »
Quote
Your star surfer is very impressive
Yes, i like it very much :)

I have just solved right now a problem i had with FileZilla since i installed my new box.
The symptom, i was unable to display the folder content once connected via ftp to the OR server. :(

I had to install WinSCP to replace FileZilla and solve this issue (i wasted the whole day trying to find a solution).

But the good news is that my new box is much faster than the previous one
upload 7804 ko
download 43192 Ko
not bad for a DSL line ;)

BTW, thanks to the new global #pose meta that allows us to use sky dome or box wall.
3
Post Your Questions & Comments Here / Re: Animated Backgrounds?
« Last post by Michael Lobko-Lobanovsky on January 11, 2020, 05:03:45 pm »
Your star surfer is very impressive, my friend! :)
4
The 3D Model Collection / Star surfer
« Last post by Patrice Terrier on January 10, 2020, 11:42:53 pm »
Star surfer

Is based on "Bot assassin" of Sanyaork (Sketchfab).

This version uses specific transparent materials to render the pulsating lights in the rythm of any playing audio.

"Most_Geometric_Person.mp3" has been created by Eric Matyas (Soundimage.org)

Note: This model requires ObjReader version 2.85+



Note: Attachments are only available to registered users.
5
Post Your Questions & Comments Here / Re: Animated Backgrounds?
« Last post by Patrice Terrier on January 09, 2020, 07:36:58 pm »
Mike

I have done the code change, thank you!

Today i had to sort a problem i have with my fixed landline that is hacked (again) by pirate calling surtaxed phone number using my own number.
I already had this problem on last december 19 and 20, and i did filed a complaint at the gendarmerie...
Because of the recurrence i took the decision to cancel my landline phone number, and i have installed a new internet box to use a "Gigaset trio" to replace my previous fixed phones.

That kept me busy the whole day to reinstall everything on my local network.

Yesterday i made a personnal version of the Bot_Assasin project, to see how far i could go with a concept i had in mind.
and the result of my work named "Star surfer" has been posted in the "animation" collection.
Try it with different audio songs.
6
Post Your Questions & Comments Here / Re: Animated Backgrounds?
« Last post by Michael Lobko-Lobanovsky on January 07, 2020, 05:05:41 pm »
Struct initialization is largely dependent on the C language standard a particular compiler supports.

VC doesn't allow C structures to be initialized the way I showed (FBSL used to be compiled using GCC). The VC way to define this union should be as follows: (compile as a console app)

#include "stdafx.h"

int _tmain(int argc, _TCHAR* argv[])
{
    union {
        struct {
            unsigned bGiration : 1; // type name: size in bits
            unsigned bUseFPS : 1;
            unsigned bAnimateLights : 1;
            unsigned bRotation : 1;
            unsigned bIsLerping : 1;
            unsigned bSyncAudio : 1;
            unsigned unused : 26; // currently unused
        };
        unsigned reDraw;
    } bFlag = { 0, 1, 0, 1, 0, 1, 0 }; // initialization

    printf("flags: %d %d %d %d %d %d, reDraw = %d, evaluates to %s\n", bFlag.bGiration, bFlag.bUseFPS, bFlag.bAnimateLights,
        bFlag.bRotation, bFlag.bIsLerping, bFlag.bSyncAudio, bFlag.reDraw, bFlag.reDraw ? "TRUE" : "FALSE");

    bFlag.reDraw = 0; // zeroize all bitflags at once

    printf("flags: %d %d %d %d %d %d, reDraw = %d, evaluates to %s\n", bFlag.bGiration, bFlag.bUseFPS, bFlag.bAnimateLights,
        bFlag.bRotation, bFlag.bIsLerping, bFlag.bSyncAudio, bFlag.reDraw, bFlag.reDraw ? "TRUE" : "FALSE");
   
    return 0;
}


Alternatively, if the compiler supports the C99 standard, it can use what's called Designated Initialization, or selective initialization of members in an arbitrary order:

........
    } bFlag = { .bGiration = 0, .bAnimateLights = 0, .bIsLerping = 0,
                .bUseFPS = 1, .bRotation = 1, .bSyncAudio = 1 }; // initialization


to the exact same effect.

Elsewhere throughout the code, the bit flags may be assigned, compared, etc. just like any other ordinary struct or union members.

The bFlag{} union may go into the gP structure as any other of its existing member fields.
7
Post Your Questions & Comments Here / Re: Animated Backgrounds?
« Last post by Patrice Terrier on January 07, 2020, 03:56:26 pm »
Visual Studio shokes on the use of the equal sign

union {
    struct {
        unsigned int bGiration: 1 = 0; // type name: size in bits = initialization
        unsigned int bUseFPS: 1 = 0;
        unsigned int bAnimateLights: 1 = 0;
        unsigned int bRotation: 1 = 0;
        unsigned int bIsLerping: 1 = 0;
        unsigned int bSyncAudio: 1 = 0;
        unsigned int unused: 26 = 0; // currently unused
    }
    DWORD reDraw;
}


Saying: this operator is not alowed in a constant expression.

Please send me the correct Struct PROP to use with it.
8
Post Your Questions & Comments Here / Re: Animated Backgrounds?
« Last post by Michael Lobko-Lobanovsky on January 07, 2020, 12:36:00 pm »
0. I am not likely to translate the OR code into any other language besides CPP in the foreseeable future. Are you?

1. We aren't going to use bitfields wider than 1 bit, or bitfield structures other than 32 bits wide, so we aren't going to suffer from alignment problems described in the MSDN. Thus, the bitfield structure will always be exactly as wide as a DWORD. 32 bit flags are pretty much enough for all our needs as I can see them.

2. I've been using bitfields for decades without any problem for strong typing Variant variables in FBSL whenever I needed it for interfacing with strong data types in other languages (C and asm).
9
Post Your Questions & Comments Here / Re: Animated Backgrounds?
« Last post by Patrice Terrier on January 07, 2020, 10:10:52 am »
bit fields
https://docs.microsoft.com/en-us/cpp/cpp/cpp-bit-fields?view=vs-2019

While this will preserve the current source code, it seems very specific to the C++ preprocessor, and thus hard to translate to another language more accustomed to use bitset.  :-[
10
Post Your Questions & Comments Here / Re: Animated Backgrounds?
« Last post by Michael Lobko-Lobanovsky on January 07, 2020, 10:07:20 am »
Looks neat! :)
Pages: [1] 2 3 ... 10