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).]
Originally posted by Pezdro:
[b]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).][/b]