Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

murasaki

points picking and drawing

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

Please help give me some idea on how to : 1. loaded a whole list of coords(thounsands) of points from a file, want to create a set of wireframe from all the points. 2. allow user to use the to select each point, or to drag out a rect area to select all the points within the area.(i have read the tutorial here about picking, but seems cant apply to points.) Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Well here is a quick explanation about picking:

The picking way of OpenGL is really very usefull for you in this case.How can you pick a point.OpenGL provides a way to create a rect(you give the dimensions) and the center of the rect are some given coords(you can use the mouse).So you create a rect 2x2 and if a point is in that rect it will be selected.OpenGL makes the things really easy and tells you if a more than one objects(or none) are inside that rect.Just read some complex tutorial about picking over the net and the things will become more clear.

The PAIN is coming...this summer!!!In cinemas everywhere.

Share this post


Link to post
Share on other sites

  • 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!