PDA

View Full Version : Picking and Selection.



Pezdro
04-07-2003, 10:54 AM
I am creating a 3D city. I am loading in 3ds models into the city's for buildings. I want the models to turn Red when the user clicks on it with the left mouse button. I am unsure of how to work picking and selection so that each model I create is an object that can be clicked on.

I have found some code, but it will crash about a good portion of the time and point me the bit of code that determines if the object has been hit.

Any ideas?

[This message has been edited by Pezdro (edited 04-07-2003).]

nexusone
04-07-2003, 11:17 AM
This site has a good tutor on it.

nehe.gamedev.net



Originally posted by Pezdro:
I am creating a 3D city. I am loading in 3ds models into the city's for buildings. I want the models to turn Red when the user clicks on it with the left mouse button. I am unsure of how to work picking and selection so that each model I create is an object that can be clicked on.

I have found some code, but it will crash about a good portion of the time and point me the bit of code that determines if the object has been hit.

Any ideas?

[This message has been edited by Pezdro (edited 04-07-2003).]