Sign in to follow this  

help me... about mouse select OGL

This topic is 4735 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

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

This topic is 4735 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this