View Full Version : placing objects on a heightmap
05-14-2004, 11:48 PM
Hiow can i place my objects so its on the actual heightmap? i have bneen trying to use the zx and z coordinates of my object to reference a 2d array which stores the height map values, but it just doesnt work.
Can anyone help me please??
What should i be looking to do
05-15-2004, 10:38 AM
What you're doing should work. Of course you may have to add interpolation between values if you want to sit on triangles between samples and your interpolation will need to accounte for the triangulation of the terrain subdivision.
You should be able to see it working at least approximately when grabbing simple samples. Get that working approximately then advance to teh interpolation between height samples.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.