How do I draw a image under a 3D world?

Blitz3D Forums/Blitz3D Beginners Area/How do I draw a image under a 3D world?

Dimas(Posted 2007) [#1]
The following code would draw a foreground on my 3D game:

repeat
updateworld
renderworld
drawimage image,0,0
flip
forever

but if I want to draw my image UNDER the 3D objects, how do I do this?

The ideal would be:

repeat
updateworld
drawimage image,0,0
renderworld
flip
forever

but it does not work.

Any hint, please?


Who was John Galt?(Posted 2007) [#2]
My B3D is a bit rusty, but i think you can...

create a sprite (i think they're called sprites, the 3d billboard things under the 3d commands) with your image. Parent it to your camera. Set the entity order of the sprite so it is always rendered behind everything else.


GfK(Posted 2007) [#3]
cam = CreateCamera()
CameraClsMode cam,False,True



Dimas(Posted 2007) [#4]
Love you, Gfk! :)