Jump to content
  • Advertisement
Sign in to follow this  
vpk

OpenGL objects on a terrain

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

hi, i have created a terrain using c and opengl. now i wish to place some objects like a tree or cattle on the terrain. how do i do it? can it be done using opengl??

Share this post


Link to post
Share on other sites
Advertisement
Yes it can, anything can be done if you put your mind to it!

Cattle you say?

Depending on how you are rendering your terrain, e.g. heightmap you can just use those values and displace the model mesh by that value to move the mesh over the terrain at each vertex.

Or if you are using a Physics lib, e.g. PhysX you can have PHysX do it for you and many other things if you want.

[Edited by - MARS_999 on August 20, 2008 2:47:06 AM]

Share this post


Link to post
Share on other sites
yes i am using a heightmap array, and i have a model of the cattle/man which i want on the terrain.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!