Announcement

Collapse
No announcement yet.

New PowerBASIC OpenGL demo posted in

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • New PowerBASIC OpenGL demo posted in

    hi there!

    for those interested, i just posted a new opengl demo for powerbasic
    in the source code forum ("flying tortilla")
    http://www.powerbasic.com/support/pb...ad.php?t=23810

    i've been "dipping" from the forums well as of late, and thought i was
    probably over-due to put something back.

    please respond here if you have any questions, or comments...

    later!

    ------------------
    scott martindale
    [email protected]



    [this message has been edited by scott j. martindale (edited april 22, 2003).]
    Scott Martindale
    [email protected]

  • #2
    Hi Scott,

    Thanks for the code. I never tried OpenGL stuff before, so it will be
    interesting to do a walk through on the code in your example.

    I think "Flying Tortilla" is a good name...

    I even managed to get an average of 33 FPS running under WinMe on my
    old Celeron 500 MHz machine.

    Dave

    David Gwillim
    Noesis Corporation, NY

    noesisdgatverizondotnet

    GAIA - the Mother of us all
    Isaac Asimov's Gaia

    Comment


    • #3
      Hi David.

      Thanks for the feedback. The whole idea behind my posting of OpenGL
      demos, and the includes, is to help out fellow PB-ers follow what
      some of the C-based examples are actually doing without having to
      translate them beforehand, and for those interested, help develop
      an online repository of core OpenGL code, along with porting some
      of the more popular examples and demos. Kind of a community-based
      project.

      In future postings, you're more likely to find inline assembler code
      utilized for speed purposes, but for this example, and for clarity's
      sake, I left it as normal PowerBASIC code. Besides; in this case,
      the "bottleneck" isn't in the loop, but rather in the hardware's
      ability to process the data.

      Take care!


      ------------------
      Scott Martindale
      [email protected]

      [This message has been edited by Scott J. Martindale (edited April 23, 2003).]
      Scott Martindale
      [email protected]

      Comment


      • #4
        Hey Scott,

        I managed to compile your code with my PB/CC 3.02 after I commented out a couple of MsgBox lines in your main program. I think if the full MessageBox statement was used then PB/CC 3.02 would be happy to compile your code without any problems and your programs will be enjoyed by a wider PowerBASIC community, i.e. the non-PB/Win users like myself.

        Have you thought of writing a book on OpenGL programming using PowerBASIC compilers? Give it a thought I think it is worth it.

        Anyway, nice piece of code and keep up the good work.



        ------------------
        Regards
        Haitham
        Regards
        Haitham

        Comment


        • #5
          Hi Haitham.

          Thanks for the suggestion on utilizing "MessageBox" instead; I'll begin doing that.
          I certainly didn't mean to exclude anyone!

          Truth be told, I usually rough-out my code in PB-CC anyway, and one of my "bigger"
          OpenGL projects I want to persue soon is writing a "glWindows" GUI environment that
          could be implemented on both flavors of PB. BTW, anyone interested in participating
          please feel free to contact me.

          Writing a book?! Nothing would make me happier than to help promote PowerBASIC's
          market prominence (I own Visual Studio, but other than using the VS install disc as a
          coaster, never use it), but I have some more learning to do before taking on such a
          project. Something more in line with what Jeff Molofee (aka; NeHe << gamedev.nehe.net >> )
          did in his tutorial section is what I've had in the back of my mind for a while.

          Going off to untangle a C++ class structure mess, to see how to port it...

          Take care!

          ------------------
          Scott Martindale
          [email protected]



          [This message has been edited by Scott J. Martindale (edited April 23, 2003).]
          Scott Martindale
          [email protected]

          Comment


          • #6
            FYI, My Athlon 2400+ system (2GHz/266MHz FSB)with a GeForce4 Ti4200 128MB is doing about 90FPS on the program. Nice Job, my son will want to look at the code when he gets more proficient.

            ------------------
            Rick Angell
            Rick Angell

            Comment

            Working...
            X