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.

Newcomers DBPro Corner / How to Display 2D images on 3D

Author
Message
Kieran
18
Years of Service
User Offline
Joined: 6th Aug 2006
Location: Hamilton, New Zealand
Posted: 29th Jul 2008 10:09
Hey, i'm wondering how to display a 2D image (such as a GUI image) in front of a 3D scene, help is appreciated as is an example code. Thanks.
Robert The Robot
17
Years of Service
User Offline
Joined: 8th Jan 2007
Location: Fireball XL5
Posted: 29th Jul 2008 12:58 Edited at: 29th Jul 2008 12:58
I think you just want to call "Draw To Front" at the top of your code. That sets all 2d to be rendered over any 3d, no matter what point you call your 2d drawing commands. When you call "Paste image" or "Sprite" (depending on how you want to display the 2d) the images will appear on top of any 3d.

Hope this helps
RTR

"I wish I was a spaceman, the fastest guy alive. I'd fly you round the universe, in Fireball XL5..."
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 29th Jul 2008 15:33
I thought 2D was drawn on top by defaul?


Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 29th Jul 2008 16:07
Phaelax i think this guy is trying to display images with bitmaps as you then have to set the bitmap to be displayed?
do as Robert The Robot wrote and use "Paste image" or "Sprite"
cheers

Login to post a reply

Server time is: 2024-11-25 19:37:08
Your offset time is: 2024-11-25 19:37:08