PDA

View Full Version : Lorenz 4D - Lists



RobbeK
15-04-2014, 19:19
An animation based on previous.
Slight problem is the trajectories are not centered around the origin (0,0,0)

I downloaded some PDF's about OpenGL and I wonder if those lists can be addressed in a way (it could be handy to manipulate them , but ? )


.. arrow keys Pg U/D as usual ,,


best Rob

ReneMiner
15-04-2014, 19:35
Nice screensaver :D

somehow it jumps a little up and down - why is that?
I tried more precise vartype than Single (Double, Ext) but won't help much...

RobbeK
15-04-2014, 20:20
Hi Reneminer,

Probably I'v overlooked something -- sequence of drawing is (1 ... n) , (2 ... n+1) , (3 .. n+2) ... etc.. , probably I did something wrong during pushing and popping the coordinate system parameters --

best Rob

Petr Schreiber
15-04-2014, 21:41
Hi Rob,

you can use entities instead of lists - then you can manipulate each object later.
The key would be to settle up parent-child relationship between them.

I like this script a lot, can't stop watching it :)


Petr

RobbeK
15-04-2014, 22:53
:-)

OK, entities it will be then .. the idea is to build (concatenate , partly remove ) without starting from zero everytime. In this case it's only one to remove and one to add (I had to rebuild 200 spheres every frame ).

thanks, Rob

Petr Schreiber
16-04-2014, 22:06
Hi Rob,

to make it easier, you might try this special MovingSphere custom entity - it has some kind of data binding:

you pass it variable from which it should use position
it updates the position whenever the variable changes value


Petr

Petr Schreiber
16-04-2014, 22:25
The flexibility of thinBasic sometimes surprises even... myself :D

The same thing as above, but with OOP interface and data binding.


Petr

Note: Yes, you could add SetPos method to set the position directly, but that would lack the automagical feeling ;)

RobbeK
16-04-2014, 22:57
Hi Petr,


S u p e r <(-.-)>

I added the radius to the UD SphereData .. this gives incredible possibilities .. I can pre-JIT the scene (hide spheres by Radius = 0 , or simulate the time (sum of the dt values) by making the actual spheres in a time zone thicker and point-size the others etc .... )

great,
thanks again

ReneMiner
17-04-2014, 06:34
I was nosy, as always.
Ehhm...
Petr, what I don't understand in your SimpleDataBindingOOP-example:
Why does one want to pass scene & entity-id to the function eMovingSphere.Destroy?

Petr Schreiber
17-04-2014, 21:31
Well,

because it was lazy port from actor template :oops:
Of course, it could be omitted...

I will prepare new template for next thinBasic.


Petr