How do I create terrain?

noatom
Posts: 12
Joined: Thu Nov 08, 2012 2:03 pm

How do I create terrain?

Post by noatom »

Before you start throwing rocks at me,yes I did saw the demo,but I still have a couple of questions.

First, if I have the xyz of each vertex(and the data is pretransformed) in the terrain, how should I go about creating the terrain shape? I mean should I just put all the y values in an array,and pass it for the void arg,and later,use local scaling with a vector of (scale,1,scale) since y its already pretransformed?

And another question,in the constructor for btHeightfieldTerrainShape, the HeightScale argument,is it just a scalar by which the y values will be multiplied?