Page 1 of 1

OpenGL expert ?

Posted: Wed Dec 09, 2009 8:26 am
by darkgod
Hello

I'm trying to use OpenGL (in 2D) for rendering instead of plain SDL. it works fine even though my code is most crude yet. And it works quite fast, but I am having some problems, mostly related to tarnsparency effects which I cannot seem to get right.

So any GL guru down here ?

As a side note I have made the AI system, increased the speed of ticking quite a lot and started making objects. I am making the object generator currently (well when my GL adventure will be done ;) )

Re: OpenGL expert ?

Posted: Wed Dec 09, 2009 10:23 am
by Xandor Tik'Roth
You may want to ask this in the general forums if no one comes forward.

Re: OpenGL expert ?

Posted: Wed Dec 09, 2009 5:04 pm
by Falconis
Hardly an expert but I've used OpenGL a fair bit. What's the problem?

Re: OpenGL expert ?

Posted: Thu Dec 10, 2009 8:07 am
by darkgod
Nevermind I found the problem :)
It was a texturing weirdness but that was actually my SDL surface taht was badly drawn :)

Re: OpenGL expert ?

Posted: Thu Dec 10, 2009 8:49 am
by Falconis
Fair do's.

I hope you aren't using SDL_OPENGLBLIT though, as that's deprecated...

Re: OpenGL expert ?

Posted: Thu Dec 10, 2009 8:54 am
by darkgod
I'm trying to do things good when I do things ;) So no I am not don't worry.
Although there are still many uglythings with it, most notably for anything but the map I create a GL texture each time I need to display it ..
(And yet this is still faster than SDL !)

You can now checkout a version from my svn repository with opengl rendering !
It's nearly all good except from internal dialogs text that is alpha blended a bit too much

Re: OpenGL expert ?

Posted: Thu Dec 10, 2009 1:17 pm
by Falconis
Cool. :)

Re: OpenGL expert ?

Posted: Sat Dec 12, 2009 8:10 pm
by elcugo
OpenGL rendering? You are my hero! =P

Re: OpenGL expert ?

Posted: Sat Dec 12, 2009 8:22 pm
by darkgod
hehe :)
SDL was a bit slow :)