[…]
I’m considering doing both the 2D (isometric) portion and the 3D
portion using OpenGL.
That’s the only sensible way to do it, as switching between SDL 2D and
OpenGL displays would drive people insane with resyncing monitors,
desktops flashing by and stuff on some systems…
But I am wondering if I will see good speed
results this way? Will it be faster to do the 2d Part using regular
blitting through SDL, or OpenGL?
Hint: Why do you think glSDL was created…? 
http://olofson.net/mixed.html
Speaking of which; you probably shouldn’t use it for this game. glSDL
is meant for applications that should run without OpenGL as well.
It’s not much point using it if you need OpenGL anyway.
One of the main reasons I want to use OpenGL for this portion, is
for the simplicity in implementing lighting, scaling, rotation,
etc. Also, I want to do neat 3d spell effects, the whole gamut of
nice 3d eye candy on a 2d game board.
OpenGL is the perfect tool for that job, I think. It has both the
features and h/w acceleration.
What would be the best method for going about this in OpenGL? Would
the best method be to render the 2D tile map onto an OpenGL surface
every frame, as you would in regular 2D? Or, am I better off just
sticking to 2D methods?
Just set up an ortho display matrix and render the tiles directly to
the screen. Note that filtered scaling and tiled maps don’t mix well,
unless you do something about the edges of tiles.
Have a look at “smoothscroll” for a simple example:
http://olofson.net/examples.html
It does filtered scaling and sub-pixel accurate scrolling - but if you
mess up the map (ie break the mysterious rules), it also demonstrates
the main problem with this sort of rendering.
//David Olofson - Programmer, Composer, Open Source Advocate
.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
— http://olofson.net — http://www.reologica.se —On Friday 10 October 2003 04.00, MC wrote: