bbModifyTerrain 0-1 only?
Archives Forums/Blitz3D SDK Programming/bbModifyTerrain 0-1 only?
| ||
Hello, I just got the Blitz3d SDK last night, and figure its a good starting point to finialy hunker down and learn C++ So please forgive me if I come out with any very n00bish questions. Anywho, the first thing I played with was creating a terrain, and then raising a spot on it with bbModifyTerrain. However, the height range appears to be only 0-1. and when I compiled and ran it, the setting of 1... well, it looks more like a mole hill rather than a mountian. Is there any way to modify the terrain higher? |
| ||
I don't know if theres a special command in the SDK, but in normal blitz you just scale the terrain entity in y |
| ||
Terrain height values are indeed in the range 0 to 1. This is documented, although not very prominently. Terrain can be scaled, just like any other entity. You would normally scale it in the y direction by some fairly large factor. |
| ||
sweeet, thanks guys! I used: BBTerrain terrain=bbCreateTerrain(256); bbScaleEntity(terrain,1,128,1); bbModifyTerrain(terrain,128,128,1,0); and then treated the 0-1 as a percentage of 128 and yeah, that just puts an over washed out spike in the middle of my terrain, it'll look better when I tie it into my database and render the whole map ;) |