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.

Code Snippets / 3D object selection

Author
Message
WarWolf
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 19th Mar 2003 00:06
I just thought of a clever way of doing this without having to fiddle around with mathematics and/or other CPU-intensive operations...

Control the camera with the arrowkeys and click on the object with the mouse.



It could be done better using direct backbuffer access instead of the point command, but I'm too tired to do that now.

Anyway, hope someone will find it useful...
I didn't steal it!
Morales
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: - Please Select -
Posted: 19th Mar 2003 03:59
i dont get how you got that..... good code. ..
WarWolf
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 19th Mar 2003 09:06
Hmm. Just popped into my head. "Hey, why don'tĀ“just color every object with a separate color and then get the screen color at the mousecursor"?

Does it work properly?

I didn't steal it!
PiratSS
21
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 19th Mar 2003 17:28
Yes it does, good code!
(LOL!)
Cheers.

Current project for RGT:

Login to post a reply

Server time is: 2024-04-26 16:03:15
Your offset time is: 2024-04-26 16:03:15