PDA

View Full Version : opengl tuts



Traveler
12-06-2011, 08:28 PM
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 (http://www.tojiart.com/OpenGL/) 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,

Traveler
13-06-2011, 08:59 AM
Ok, I made some progress and got the first tutorial (his second) to work. Up to the next one.. :)

vgo
13-06-2011, 12:22 PM
Whose tutorials are these?

Traveler
13-06-2011, 01:16 PM
http://www.tojiart.com/OpenGL/

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

code_glitch
13-06-2011, 08:26 PM
Looking forwards to it... Some nice new reference material - nice.

Traveler
13-06-2011, 09:24 PM
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.

code_glitch
13-06-2011, 09:28 PM
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 :D

Traveler
14-06-2011, 08:26 PM
Alright here we go, the translated tutorials can be downloaded from this (http://www.gameprogrammer.net/opengl/) location on my website (http://www.gameprogrammer.net/opengl/). 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!

code_glitch
14-06-2011, 09:20 PM
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! :D

Traveler
14-06-2011, 09:35 PM
Glad I could help you out :)