Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / draw sprites first

Author
Message
BasketBallBen
23
Years of Service
User Offline
Joined: 24th Mar 2003
Location:
Posted: 30th Nov 2003 17:30 Edited at: 30th Nov 2003 17:32
when i used this function, i expected to see my sprite in the background with all my 3d models in front of it, so i could make a pre-rendered background.
instead, whenever i load a 3d object, the sprite completely disappears whether the object covers it or not.

///code
Sync On
Sync Rate 60

load image "fire.bmp",1
draw sprites first
sprite 1,10,10,1

make object cube 1,10

do
sync
loop

////code
when i take out the make object cube, the sprite shows fine, but when it's there the sprite disappears.

am i missing something here? any suggestions for pre-rendered backgrounds.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 30th Nov 2003 17:46
If you want to combine sprites and 3D in this way, you'll also need to use the BACKDROP OFF command to switch off the automatic screen clear.
BasketBallBen
23
Years of Service
User Offline
Joined: 24th Mar 2003
Location:
Posted: 30th Nov 2003 21:30
aright, its working fine now, thanks a lot. i coulda swore i already tried that...but it's workin now and that's what matters.

Login to post a reply

Server time is: 2026-07-27 01:33:08
Your offset time is: 2026-07-27 01:33:08