Jump to content
  • Advertisement
Sign in to follow this  
vivendi

[XNA] map editor

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

I want to get a bit more familiar with XNA and how to work with the triangles and indices. Right now i can load a heightmap file and create a bumped terrain with it. But i would like to adjust the height of the terrain realtime, like in a level editor. Where can i find more information on bow to do thi?? Just by left clicking somewhere on my terrain. Thanks for any help.

Share this post


Link to post
Share on other sites
Advertisement

Google is probably your best bet, there should be some resource out there. The basic idea is that you interect your terrain with your mouse ray and find the vertex closest to where the ray intersects the terrain. Combining the picking and heightmap collision samples should get you going. Once you have the vertex, you just update its position accordingly.

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!