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 object positioning on a matrix

Author
Message
pippo santa
18
Years of Service
User Offline
Joined: 9th Dec 2005
Location:
Posted: 16th May 2006 10:48
Hi,
I need a code to position 3d objects on a matrix with the mouse. Can you help me?
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 16th May 2006 13:48
Look up PICK SCREEN in the help, that should be what you're looking for



RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 16th May 2006 13:51
I wont give you the code, but Ill tell you what you've got to do;

- Get the mouse's x and z screen vector using Pick Screen
- Generate the mouse's x and z positions in 3D Space whith the value you just got
- Use the Get Ground Height() command, giving it the x and z coordinates you just obtained and the matrix number of the matrix you're working with, this will generate the y position of the object you're placing.
- Position the required object at the x,y,z coordinates obtained from the above.

Look up those commands in the help file, to convert the vectors to positions you're going to have to look at the GET PICK VECTOR() commands, the help file goes into some detail explaining the use of the Pick commands and how to obtain 3D world coordinates from them.

Goodluck,
- RUC'

pippo santa
18
Years of Service
User Offline
Joined: 9th Dec 2005
Location:
Posted: 21st May 2006 15:38
I don't understand. Can you post me the code? please...
Ant
19
Years of Service
User Offline
Joined: 27th Nov 2004
Location:

Login to post a reply

Server time is: 2024-09-24 23:26:31
Your offset time is: 2024-09-24 23:26:31