2D vs 3D Programming

Anything related in any way to game development as a whole is welcome here. Tell us about your game, grace us with your project, show us your new YouTube video, etc.

Moderator: PC Supremacists

Post Reply
User avatar
davidthefat
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 529
Joined: Mon Nov 10, 2008 3:51 pm
Current Project: Fully Autonomous Robot
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: California
Contact:

2D vs 3D Programming

Post by davidthefat »

Im assuming that they are about the same level of difficulty for programming right? Im 3D, you just have one more axis of coordinate to worry about. In 2D, you still need to control the camera, collision and stuff, just all in 2 dimensions. Its just that in 3D, you have to worry more about how much memory and if its executing fast enough like the frame rate and the loading part. Is there more than that in 3D programming?
User avatar
Spikey
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 98
Joined: Sat Dec 13, 2008 6:39 am
Programming Language of Choice: C++
Location: Ottawa, Canada
Contact:

Re: 2D vs 3D Programming

Post by Spikey »

In general its the same thing, but with an extra axis like you say, although that does makes things a little more complicated.
Theres some more things you may have to do, like calculating normals, optimize culling, fixing zdepth and blending issues, gimble lock problems, quaternions, loading and animating models, mipmapping, skyboxes, terrains. That's all I can think of right now.
Then there's the whole time cost of making the 3D content instead of just 2D, although thats more an artist thing than programmer.
User avatar
rolland
Chaos Rift Regular
Chaos Rift Regular
Posts: 127
Joined: Fri Dec 21, 2007 2:27 pm
Current Project: Starting an Android app soon
Favorite Gaming Platforms: PS1, N64
Programming Language of Choice: C++
Location: Michigan, US

Re: 2D vs 3D Programming

Post by rolland »

You'd probably also have to learn another whole API. (OpenGL, D3D, etc...)
I'll write a signature once I get some creativity and inspiration...
User avatar
davidthefat
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 529
Joined: Mon Nov 10, 2008 3:51 pm
Current Project: Fully Autonomous Robot
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: California
Contact:

Re: 2D vs 3D Programming

Post by davidthefat »

rolland wrote:You'd probably also have to learn another whole API. (OpenGL, D3D, etc...)
Obviously... OpenGL supports both 2d and 3d
Post Reply