objects on a terrain

Started by
1 comment, last by vpk 15 years, 8 months ago
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??
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]
yes i am using a heightmap array, and i have a model of the cattle/man which i want on the terrain.

This topic is closed to new replies.

Advertisement