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 / Rendering order (of sprite/text/3d)...

Author
Message
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 29th Feb 2004 16:02
Hi all,

Does anyone know if it is possible for the text command to display on top of a sprite? Or for the 2d drawing commands, e.g. box, to display on the top of a sprite? I know we can play with the sprite priority but what about the draw priority of other types of graphic?

I've probably just overlooked the command(s)

Cheers.
flibX0r
22
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 29th Feb 2004 16:10
I think its more of just the order of which it is drawn, so if you draw the text aftre the sprite, it should work. Works for me.

Will be giving IanM and NuclearGlory money when i get some
http://www.w3th.tk <-- Soon to have some content
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 29th Feb 2004 16:23
Hi,

I just added some text at the end of my main loop, right before the sync, but the sprites still splatted over it...

Cheers.
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 29th Feb 2004 16:27
If you use the command "draw sprites first" text should be written over it iirc. However, if you also have 3D in your game, the 3D will overlap the sprites.

Its not a bug, its a feature!
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 1st Mar 2004 10:47
I'll give that a go, thanks.

Also I noticed that the order in which sprites are created is the default sprite draw priority. I guess that is normal, it just threw me there for a bit. I though all sprites were created with an equal chance of being drawn last (i.e. priority zero), I noticed with alot of sprites also that the set sprite priority command lost me a fair few fps.

Still playing...

Cheers.
DrakeX
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location:
Posted: 1st Mar 2004 23:34
are you calling the SET SPRITE PRIORITY every loop? i haven't used the SET SPRITE PRIORITY command much, but i think you only need to call it once, and it'll stay there.

athlon xp 2000+ | radeon 9500 pro 128mb | 512MB DDR | winXP pro | DBP 5.1b | B3D 1.85 | VC++ 6
predicted DBP P6 release date: March 28, 2004
DBP has made me bitter.
Lampton Worm
22
Years of Service
User Offline
Joined: 4th Sep 2002
Location: United Kingdom
Posted: 2nd Mar 2004 12:39
Hi - no, its called before my main loop. Also draw sprites last hasn't allowed me to use the text command over the top of a sprite.

...I think I need to do some more experiments

Cheers.

Login to post a reply

Server time is: 2025-06-01 09:26:57
Your offset time is: 2025-06-01 09:26:57