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.

DarkBASIC Professional Discussion / I need help, I've just got update5

Author
Message
Philip 1337
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 21st Aug 2003 23:29
I need help with the following code:

Can anyone tell me how I can get this code to tell you what object the mouse is pointing at.
Philip 1337
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 22nd Aug 2003 01:49
All that i want to know is

How can i make my program tell you what 3d object the mouse is pointing at
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 23rd Aug 2003 09:26
theres a 3d pick example in the lessons component of DBP full 5.
I dont understand it fully enough to explain it sorry.

http://www.lunarpixel.com
It's already tomorrow in Australia
Critters
23
Years of Service
User Offline
Joined: 11th Apr 2003
Location: United Kingdom
Posted: 23rd Aug 2003 17:41
aghh, i dont get it, i cant help

David T
Retired Moderator
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 23rd Aug 2003 19:14
Quote: "PICK OBJECT
This command will return the Object Number of the closest object at the specified screen coordinates. The
objects that are tested against the 2D coordinate are only those within the Object Start and Object End
range in order to speed up specific tests. If no object exists at the coordinate, a value of zero is returned.
If an object number is returned, additional data will be generated and stored internally. This extra data can
be retrieved using the GET PICK VECTOR and GET PICK DISTANCE commands.

SYNTAX
Return Integer=PICK OBJECT(Screen X, Screen Y, Object Start, Object End)"





Doesn't look too complicated

There's no place like 127.0.0.1

There are 10 people in this world, those who understand binary and those who don't.

Login to post a reply

Server time is: 2026-07-23 15:49:25
Your offset time is: 2026-07-23 15:49:25