Jump to content
  • Advertisement
Sign in to follow this  
gohacker82

help me... about mouse select OGL

This topic is 4951 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Need help .... I have some problem, how to tell the model to move to the place where i click (on 3d Terrain) I already make an ugly model (after all) hiks..hiks.. and Build a Terrain with height map and my problem is, how to convert the 2d point wich i get it from WM_LBUTTONCLICK and apply it to my terrain? so i can tell my model to go there.. help... thanks..

Share this post


Link to post
Share on other sites
Advertisement

does picking retrieves a x,y,z coordinate ?

example

i have a plain terain.

i user gluperspective() and
gluLookat(5.0,3.0,4.0,0.0,0.0,0.0,0.0,1.0,0.0);

and i click my mouse at point (100,100);

does picking can retrieves x,y,z terrain coordinate ?
(coordinate retriever not object retriever)

help..

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!