Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36

Thread: The silence inside the fractal - GBuffers (how many may be used ?)

  1. #1

    The silence inside the fractal - GBuffers (how many may be used ?)

    Hi all,

    Still investigating some things.
    All measured on the change in orbit value -- some insides (red) amazingly flat, others not (though the scale of the reds = 5000x the one of the greens (outside). (lowering the iteration number, gives them more relief).

    2-3 GBuffers over the top ?? (it's handy to have certain values in different arrays - and as the arrays are already there, so ... )


    best, Rob
    Attached Files Attached Files

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Hi Rob,

    don't be afraid to use multiple GBuffers, they are the most optimized geometry element in TBGL (at cost of restricted flexibility).
    In computer games, it is not rare to process tens-of-thousands of GBuffer-like objects on GPU... so keep adding

    There is trick you might want to try:

    Add the following after Uses:
    %GL_POINT_SMOOTH                     = &H00B10
    Declare Sub glEnable Lib "opengl32.dll" Alias "glEnable" (ByVal cap As DWord)
    
    Add the following after TBGL_BindCanvas:
    TBGL_PointSize(5)
    glEnable(%GL_POINT_SMOOTH)
    TBGL_BlendFunc(%GL_SRC_ALPHA, %GL_ONE_MINUS_SRC_ALPHA)
    TBGL_UseBlend(TRUE)
    
    It should make the points big and round. Sadly it does not work 100% on all implementations of OpenGL, that is why it isn't added as native to TBGL.
    But worth a try, the worst you can get is the points remain rectangular...


    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

  3. #3
    Hi Petr,

    A lot of cubes (infact more something like squares?) here - not a nice look ;-)
    Gbuffers, good , great - they avoid a high number of interpreted iterations (20000 in this case). That's very good news, with O2 it's possible to write lightning fast routines on those arrays - (making slices etc ... whatever).

    thanks again
    Rob

  4. #4
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Yes, that is sadly the issue I was talking about.

    You can see how it looks on my PC in the attachement.

    Similar effect could be achieved via billboarding and entity system, but it wouldn't allow that fast updates.


    Petr
    Attached Images Attached Images
    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
    Hi Petr,

    Yep, I got floating quads ;-)

    Program is more respectable in the mean time ....
    for my Timer exam ;-)


    regards Rob
    Attached Files Attached Files

  6. #6
    Gentlemen,

    I'm sorry to say but neither of these scripts shows anything on my screen under XP Sp3. thinBasic launches but no window is seen and the CPU load is approx. 75%. 2 instances saturate the CPU at 100% and the processes can only be killed from my Task Manager with great difficulty.

    I've got the latest nVidia drivers and TB and I've also installed the "bleeding edge" TBGL as Petr suggested.

    Mike
    (3.6GHz i5 Core Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, x64 Windows 7 Ultimate Sp1)

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

    everything works here with latest TB & TBGL. I will try to update to the last WHQL Nvidia drivers now and see, if it might cause problem.
    Does the metallica sample still run okay for you?


    Petr

    EDIT: Tested on Win7 and Win8 PC, no issues observed. Mike, can you launch the script in ThinAir and try to step it via F8 debugger? Searching for XP based PC in the meantime, stay tuned.
    Last edited by Petr Schreiber; 18-01-2014 at 19:07.
    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
    Mike , Petr ...

    FWIIW the bundle doesn't run on my wife's laptop either - XP SP3.
    Older bundles (containing the modules ui , O2 (older) , TBGL (older) do run)

    Furthermore, after the latest code attempted to run , the older ones also give up (DLL's still active ? - why are these not replaced ? (in case))

    best Rob
    (Running Win7 Ultimate).

    Petr, if you run Win7 can't you switch to "XP mode" compatability or is that just an emulator ?
    Last edited by RobbeK; 18-01-2014 at 21:13.

  9. #9
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Thanks Rob!,

    that sounds serious, I arranged possiblity to test on XP PC tomorrow. I hope to see to discover what causes the problem.


    Petr

    P.S. Running in XP mode on Windows 8 does not cause any problems.
    Last edited by Petr Schreiber; 18-01-2014 at 21:12.
    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

  10. #10
    Quote Originally Posted by Petr Schreiber View Post
    Thanks Rob!, that sounds serious
    Didn't that sound serious when reported by me, Petr?
    Mike
    (3.6GHz i5 Core Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, x64 Windows 7 Ultimate Sp1)

Page 1 of 4 123 ... LastLast

Similar Threads

  1. Metallica - the inside of a fractal - O2 etc...
    By RobbeK in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 10
    Last Post: 12-01-2014, 14:41
  2. Fractal Videos
    By Charles Pegge in forum Shout Box Area
    Replies: 2
    Last Post: 13-03-2010, 12:04
  3. Preview: GBuffers for TBGL
    By Petr Schreiber in forum TBGL module by Petr Schreiber
    Replies: 11
    Last Post: 04-03-2010, 11:33
  4. fractal tbgl help
    By Lionheart008 in forum TBGL General
    Replies: 12
    Last Post: 16-06-2009, 11:57

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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