Results 1 to 10 of 10

Thread: opengl tuts

  1. #1

    opengl tuts

    Hi guys,

    I've been trying to get my head around opengl last few days. It's tough because, well lets face it, the tuts that go beyond the deprecated info are pretty much non-existent. Those that are written for Delphi/Pascal anyway. It's scary to see so few of 'us' are still around (still have their own sites, I mean) and even more scarier to see that in all those years so little has been added next to say NeHe or Jan Horn's material.

    Anyway, I found this site with a few c++ tuts that seemed easy enough to port over. I gave it a shot with the second tutorial, but I haven't been successful yet. It's compiles and runs, but only shows a black screen. I'm guessing it's because of the shaders he used.

    So I was wondering two things:
    1) Does anyone want to try and help port these (please)? I'm very sure you make a lot of people happy.

    2) Do you need to translate shaders into pascal as well or should they be kept in c?

    Thanks,

  2. #2
    Ok, I made some progress and got the first tutorial (his second) to work. Up to the next one..

  3. #3
    Whose tutorials are these?

  4. #4
    http://www.tojiart.com/OpenGL/

    I'm at about 50% now. I shall post the sources when I'm done.

  5. #5
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Looking forwards to it... Some nice new reference material - nice.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  6. #6
    Ahhh good news! It took me most of the day, but I have them all translated. Seemed simple enough but in the end it were the little things that kept giving trouble. That is to say, there were no errors, stuff just didn't show up.
    Anyway, I need to clean it up a bit more and will post the sources here by tomorrow.

  7. #7
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Now that, literally, is music to my ears... I've alsways been shaky with OpenGl on a good day, this should hopefully clear that up a bit
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  8. #8
    Alright here we go, the translated tutorials can be downloaded from this location on my website. Mind you, it's been my first c++/Delphi translation attempt. I've tested the result on two pc's and everything seems to function properly. However, in the event you do discover abnormalities in the code please let me know and I'll fix them (or if you have a fix that's even better ).

    Anyway, enjoy!

  9. #9
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Wait, are you serious? WOOOOOOOOOOOOOOOOOOOOOOOO!

    Thanks a ton on that one, this'll only put me weeks ahead of schedule.......

    Oh and although I don't do delphi and usually avoid those tuts.... This is 'different'. The tutorial 6 just happens to solve an entire problem chain of mine. Oh, and did I mention those load texture procedures? The route to dumping SDL permantly is on the way! YAAARGH!
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  10. #10

Bookmarks

Posting Permissions

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