Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Using Oxygen with TBGL

  1. #1

    Using Oxygen with TBGL

    Dynamically generated objects - These are built in vertex arrays instead of GL lists. So they can be morphed on-the-fly.

    Examples of the day can be found in O2H_TBGL.zip on the download page
    To be used with the latest O2 Compiler

    http://community.thinbasic.com/index.php?topic=2517.0


    Attached Images Attached Images

  2. #2
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: Using Oxygen with TBGL

    Charles, pretty amazing stuff, thanks.

    I bumped up the Vertices to 72,000 and still got nice frame rates and very nice smooth rotation and scaling with the mouse!!
    Attached Images Attached Images
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

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

    Re: Using Oxygen with TBGL

    Very nice demo Charles,

    the power of o2h rises with every day


    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

  4. #4

    Re: Using Oxygen with TBGL


    Thank you both!

    Now, I seem to have hit an obstacle - can't get access to Normal Pointers to accompany Vertex Pointers. I see that you do not include this in the gl library, Petr but trying to declare glNormalPointer does not remedy the situation so I must assume that the standard Opengl32.dll for XP does not support it.

    This means providing a client side lighting system. Now there's a challenge..


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

    Re: Using Oxygen with TBGL

    Hehe,

    that would be one way ( and little ghost in my mind says ... go shader only path ... go shader only path ).
    But ... glNormalPointer is OpenGL 1.1 - I use it in TBGL, so there could be other problem.

    Try to use this script, it shows glNormalPointer for me:
    [code=thinbasic]
    uses "EXE", "Console", "OS", "File"

    printl OS_GetWindowsDir+"system32\OpenGL32.dll"

    dim exports as string = EXE_PE_GetExportList( OS_GetWindowsDir+"system32\OpenGL32.dll", $CRLF )

    printl exports

    file_save("OpenGL_Exports.txt", exports)

    waitkey
    [/code]


    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

  6. #6

    Re: Using Oxygen with TBGL


    Yes I see the parameters for GLNormalPointer are less than for glVertexPointer - so my torus looks nice and solid now. And I will not be venturing down the Shader path just yet. Thank you Petr.

    Charles

  7. #7

    Re: Using Oxygen with TBGL


    I cannot think of a fitting name for this object, but it is produced by warping a torus with some of the calculations.
    Demo psva7 in O2H_TBGL.zip


    http://community.thinbasic.com/index.php?topic=2517.0
    Attached Images Attached Images

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

    Re: Using Oxygen with TBGL

    Good looking object,

    with little modifications of base torus coordinates lot of monsters can be produced


    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

  9. #9

    Re: Using Oxygen with TBGL


    Here the fire texture has been used to decorate the torus, giving the illusion of corrugation - like a bellows.

    Demo psva8 in O2H_TBGL.zip


    http://community.thinbasic.com/index.php?topic=2517.0
    Attached Images Attached Images

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

    Re: Using Oxygen with TBGL

    Nice look


    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

Page 1 of 2 12 LastLast

Similar Threads

  1. my first try using TBGL and OXYGEN
    By D.J.Peters in forum Shout Box Area
    Replies: 9
    Last Post: 05-03-2010, 05:54

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
  •