Results 1 to 10 of 36

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  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)

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
  •