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 / Making a 2D Panel in a 3D Enviroment

Author
Message
Travis Gatlin
17
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 4th Dec 2010 23:46
As the title suggests, i want to make a 2D panel on the side of my program in a 3D Enviroment, i have tried to search.

It's Not My Money but i need it NOW!!!!!!!!
Rich Dersheimer
AGK Developer
17
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 5th Dec 2010 01:49 Edited at: 5th Dec 2010 16:15
You can set your camera viewport to only take up a part of the screen, and use the rest of the screen for 2D stuff like text, etc.

This demonstrates:



WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 5th Dec 2010 14:45 Edited at: 5th Dec 2010 14:54
Attached is a snippet from a program in the works. It just puts a tranparent panel on the left side of the screen. 3D will show through panel.

Have netbook will travel.
Travis Gatlin
17
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 5th Dec 2010 16:18 Edited at: 5th Dec 2010 16:28
Quote: "You can set your camera viewport to only take up a part of the screen, and use the rest of the screen for 2D stuff like text, etc."

Can you give me some code? because that was the reason i posted this

@bndelano
that works! so this panel will allow me to have 2d text, sprites, etc shown on top of it and not the 3D Area?

It's Not My Money but i need it NOW!!!!!!!!
WickedX
17
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 5th Dec 2010 16:29 Edited at: 5th Dec 2010 16:34
Yes, it should help. Attached is a snippet using camera viewports.

Edit: It would depend on where you place your text and sprites.

Have netbook will travel.
Travis Gatlin
17
Years of Service
User Offline
Joined: 14th May 2009
Location: Oxford, Alabama
Posted: 5th Dec 2010 21:52
Thanks, this really helps me alot!

It's Not My Money but i need it NOW!!!!!!!!

Login to post a reply

Server time is: 2026-07-01 20:50:18
Your offset time is: 2026-07-01 20:50:18