I wonder if someone might throw up a little code that will show a plain cube rotating in front of a background image?
I am new to DBPro and have been playing around. I wanted to do what I described above, so I took my best guess at it and it's almost there, but when the object is rotating it wipes out a section of the background with gray.
Here's what the code looks like now:
Load Bitmap "GreenForest.bmp"
backdrop off
`Load Image "baby.jpg", 2, 1
Make Object Cube 1, 3
`Texture Object 1,2
ZVal# = -10.0
Position Camera 0.0,0.0,ZVal#
Wait 2000
Do
YRotate Object 1, object angle Y(1)+0.1
XRotate Object 1, Object Angle X(1)+0.3
`ZVal# = ZVal# -0.01
`Position Camera 0.0,0.0,ZVal#
Loop
The commented out bits just texture the cube and make it appear to fly away into the screen. I turned them off while trying to figure it out, but those parts work fine. I just can't see what I'm doing wrong...
Thanks!
Dave