Ok, forgive this really stupid problem, but its driving me crazy. I have extensive 2d and 3d programming experience in C and C++ using both Open GL and Direct X, but I wanted to mess arou d with DBPro for quickly prototyping games.
At the moment though i'm going nuts because I can't seem to mix 2D and 3D graphics in the same viewport. I know I must be doing something wrong, but I don't yet know DBPro well enough. Here is my code:
SET DISPLAY MODE 1024, 768, 32
MAKE TERRAIN 1, "d:\terrain.bmp"
LOAD IMAGE "d:\terrain.bmp", 1, 1
PASTE IMAGE 1, 0,0,0
WAIT KEY
What I Want to do is display a terrain generated form a heightmap, with a 2d hud overlayed ontop of it. What IS happening is the terrain is completely covering the display and the 2d image is not shown.
- Novus Delta
- http://www.novusdelta.com