Results 1 to 10 of 10

Thread: Lorenz 4D - Lists

  1. #1

    Lorenz 4D - Lists

    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
    Attached Files Attached Files

  2. #2
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,533
    Rep Power
    171
    Nice screensaver

    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...
    I think there are missing some Forum-sections as beta-testing and support

  3. #3
    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

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732
    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
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  5. #5
    :-)

    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

  6. #6
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732
    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
    Attached Files Attached Files
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  7. #7
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732
    The flexibility of thinBasic sometimes surprises even... myself

    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
    Attached Files Attached Files
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  8. #8
    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
    Attached Files Attached Files

  9. #9
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,533
    Rep Power
    171
    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?
    I think there are missing some Forum-sections as beta-testing and support

  10. #10
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732
    Well,

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

    I will prepare new template for next thinBasic.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. Lorenz 3D - & question
    By RobbeK in forum TBGL General
    Replies: 11
    Last Post: 13-04-2014, 10:51
  2. Lorenz necklace (a little addendum)
    By RobbeK in forum TBGL General
    Replies: 0
    Last Post: 11-04-2014, 22:07
  3. Lorenz Attractor2
    By peter in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 0
    Last Post: 06-04-2014, 16:31
  4. Lorenz Attractor
    By peter in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 0
    Last Post: 02-04-2014, 21:15
  5. Lorenz Butterfly
    By mike lobanovsky in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 7
    Last Post: 17-12-2013, 01:52

Members who have read this thread: 1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •