ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sat Nov 17, 2018 8:48 am

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: OpenGL expert ?
PostPosted: Wed Dec 09, 2009 8:26 am 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10230
Location: Angolwen
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 ;) )

_________________
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)


Top
 Profile  
 
 Post subject: Re: OpenGL expert ?
PostPosted: Wed Dec 09, 2009 10:23 am 
Offline
Keeper

Joined: Tue Aug 12, 2003 3:08 pm
Posts: 1537
Location: The edge of the Abyss
You may want to ask this in the general forums if no one comes forward.

_________________
And it was such a good idea...


Top
 Profile  
 
 Post subject: Re: OpenGL expert ?
PostPosted: Wed Dec 09, 2009 5:04 pm 
Offline
Uruivellas

Joined: Tue Jan 27, 2004 3:10 pm
Posts: 743
Location: UK
Hardly an expert but I've used OpenGL a fair bit. What's the problem?


Top
 Profile  
 
 Post subject: Re: OpenGL expert ?
PostPosted: Thu Dec 10, 2009 8:07 am 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10230
Location: Angolwen
Nevermind I found the problem :)
It was a texturing weirdness but that was actually my SDL surface taht was badly drawn :)

_________________
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)


Top
 Profile  
 
 Post subject: Re: OpenGL expert ?
PostPosted: Thu Dec 10, 2009 8:49 am 
Offline
Uruivellas

Joined: Tue Jan 27, 2004 3:10 pm
Posts: 743
Location: UK
Fair do's.

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


Top
 Profile  
 
 Post subject: Re: OpenGL expert ?
PostPosted: Thu Dec 10, 2009 8:54 am 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10230
Location: Angolwen
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

_________________
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)


Top
 Profile  
 
 Post subject: Re: OpenGL expert ?
PostPosted: Thu Dec 10, 2009 1:17 pm 
Offline
Uruivellas

Joined: Tue Jan 27, 2004 3:10 pm
Posts: 743
Location: UK
Cool. :)


Top
 Profile  
 
 Post subject: Re: OpenGL expert ?
PostPosted: Sat Dec 12, 2009 8:10 pm 
Offline
Reaper

Joined: Thu Sep 27, 2007 6:26 am
Posts: 440
Location: México
OpenGL rendering? You are my hero! =P

_________________
sign: File not found.


Top
 Profile  
 
 Post subject: Re: OpenGL expert ?
PostPosted: Sat Dec 12, 2009 8:22 pm 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10230
Location: Angolwen
hehe :)
SDL was a bit slow :)

_________________
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group