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 / 3d world to 2d screen

Author
Message
Belera
19
Years of Service
User Offline
Joined: 30th Dec 2004
Location:
Posted: 3rd Feb 2005 10:35
I have a dilemma. I want to make button for menu selection. However, the menu needs to be 3 dimensional. I wonder if either, I need to make a function that relates the x,y position of the mouse on-screen to the x,y,z dimensions in the 3d world using the camera position, camera point direction and the x,y position of the mouse on-screen. If there is a function that does I must have passed it up.
I have already done something similar, but it required to actually test the screen position of the mouse compared to the 3d button endpoint by endpoint.

Any advice would be appreciated.
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 3rd Feb 2005 12:22
Use the pick object command and if it = your button objects number you are over it.

Login to post a reply

Server time is: 2024-11-27 20:38:09
Your offset time is: 2024-11-27 20:38:09