Game Development Community

3D + 2D

by Tony Pitman · in Torque X 3D · 06/16/2009 (7:54 pm) · 2 replies

I would like to create a 3D game that also uses some 2D stuff. I would like to use the 3D AND 2D builder programs as well. I have read they can be mixed.

If I start with a 2D program starter template, how do I get the 3D stuff into it for the 3D builder. Or if I start with a 3D starter template how do I get the 2D stuff in it for 2D builder?

Can someone walk me through setting this up?

#1
06/23/2009 (4:22 pm)
My AirSpace game does this successsfully. First, start with a new 3D game. Make sure you have the 3D and 2D Frameworks (.csproj and files) all merged together in one solution file. I create the 3D game using the 3D Builder and saved the file as SceneX.txscene - then create the 2D level (I used it as the HUD) - and save it as Hud.txscene (or whatever). Then, when the game starts, load both scenes into a screen that inherits from GuiSceneview. I'll have to dig up the code to remember the details, but that's the jist of it. It's entirely possible and not that hard to do.

John K.
www.envygames.com
#2
06/23/2009 (8:19 pm)
I remember looking at that demo before. It is way cool. I hope to make a simpler flight sim remake of a really old game (one of the first flight sims), but updated at some point. I may need to pick your brain when I get their.

I will play around with pulling together the 2D and 3D. The biggest thing that I don't already know, but will try to figure out on my own first is how to get both the 2D and 3D stuff into the same project files while starting with the 3D starter project. I will let you know if I can't figure that out.