Skip to main content
gamedev.net
🔒 Locked

Looking for suggestions....

Started by mrhodes Jun 24, 2010 at 5:19 PM 1 replies 650+ views
Original Post
mrhodes
mrhodes
Hey everyone,

I have a question about the current state of 2D OpenGL programming. I an working on a 2D tile map game and was wondering what is best to use for rendering my maps. To start with I was going to use just the basic glVertex() calls and render quads like that... then I want to move up to something more efficient such as VBOs.

I haven't done a lot of OpenGL programming and it has been some time (years) since I did any serious programming, so I am a bit out of touch with the latest buffers / technologies.

I think I saw Texture Buffer Objects / FBOs, PBOs, etc... can someone make a suggestion on what I would be best focusing my learning on ?

I will be programming this in C++ and already have the groundwork down using SFML.
My goal is to make something like the old school final fantasy games.

Thanks..

Michael

PS: I know I can use SDL or even SFML to do all the 2D stuff, but I would like to use OpenGL for this.
Michael RhodesTiger Studios Web Designhttp://tigerstudios.net
21st Century Moose
21st Century Moose
If this stuff is new to you I'd suggest using glBegin/glEnd and friends to start with. The learning curve is a LOT smoother and you're not forced to do things the hard (but correct) way from the outset. Provided you group things well enough so that you're able to draw multiple objects which have the same state together, it won't be that difficult to move to more modern techniques later on.
Direct3D has need of instancing, but we do not. We have plenty of glVertexAttrib calls. 
mrhodes
mrhodes
Thanks for the reply...

I was thinking about that, and I have done it in the past... but never went beyond it. Like I said, that was also several years ago.

Besides, the performance hit for using Immediate mode rendering will not likely be noticed with a simple 2D tile map.

Thanks again for the input...

Time to code..

Michael
Michael RhodesTiger Studios Web Designhttp://tigerstudios.net

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.