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.

Author
Message
Daniel TGC
Retired Moderator
19
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 14th Mar 2015 05:37
Hi guys,

I've got a cool little split screen game going, however when I use print, or text commands the sprites get drawn on top.

The program basically has two cameras both exporting to images, which are in turn assigned to sprites that sit side by side.

I need text to place itself on top of the sprites and 3D objects in the scene.

Draw Sprite Last just makes the 3D view overlay the sprite view. Draw to front ensures that sprites are drawn on top of the text.

I am calling the print and text commands after the sprite commands with no success. Any ideas?
Sasuke
20
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 14th Mar 2015 10:19 Edited at: 14th Mar 2015 11:07
I believe Draw Sprites First is the command you are looking for though admittedly I don't think that works with 3D objects.

EDIT: If you're rendering all 3d to the cameras then putting the cameras into images for sprites that means there will actually be no 3D on the screen then you can just use Draw Sprites First

The best way would be to make what I call a Text Layer. A render target that you draw all your text to. Best thing about this is you only need to update it when you need to instead of constantly rendering text to it which we know text is the slowest thing on the planet. You could put it on a sprite with high priority so it sits on everything.

Another method would be to hide all sprites and just paste them. That way text will draw over.

"Get in the Van!" - Van B
Daniel TGC
Retired Moderator
19
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 14th Mar 2015 14:22
Thanks,

It's really just for quick diagnostic information I know text draws are slow. I just wanted to avoid writing a whole sprite text system.

Login to post a reply

Server time is: 2026-07-13 11:28:07
Your offset time is: 2026-07-13 11:28:07