ToME: the Tales of Maj'Eyal
http://forums.te4.org/

OpenGL expert ?
http://forums.te4.org/viewtopic.php?f=36&t=21271
Page 1 of 1

Author:  darkgod [ Wed Dec 09, 2009 8:26 am ]
Post subject:  OpenGL expert ?

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 ;) )

Author:  Xandor Tik'Roth [ Wed Dec 09, 2009 10:23 am ]
Post subject:  Re: OpenGL expert ?

You may want to ask this in the general forums if no one comes forward.

Author:  Falconis [ Wed Dec 09, 2009 5:04 pm ]
Post subject:  Re: OpenGL expert ?

Hardly an expert but I've used OpenGL a fair bit. What's the problem?

Author:  darkgod [ Thu Dec 10, 2009 8:07 am ]
Post subject:  Re: OpenGL expert ?

Nevermind I found the problem :)
It was a texturing weirdness but that was actually my SDL surface taht was badly drawn :)

Author:  Falconis [ Thu Dec 10, 2009 8:49 am ]
Post subject:  Re: OpenGL expert ?

Fair do's.

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

Author:  darkgod [ Thu Dec 10, 2009 8:54 am ]
Post subject:  Re: OpenGL expert ?

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

Author:  Falconis [ Thu Dec 10, 2009 1:17 pm ]
Post subject:  Re: OpenGL expert ?

Cool. :)

Author:  elcugo [ Sat Dec 12, 2009 8:10 pm ]
Post subject:  Re: OpenGL expert ?

OpenGL rendering? You are my hero! =P

Author:  darkgod [ Sat Dec 12, 2009 8:22 pm ]
Post subject:  Re: OpenGL expert ?

hehe :)
SDL was a bit slow :)

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/