Assigning HeightMap to Terrain

Blitz3D Forums/Blitz3D Beginners Area/Assigning HeightMap to Terrain

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm interested in knowing if there is a way that avoids having to load in the file. It seems wasteful to create my heightmap, save it to a file, then call it again with a LoadTerrain call.

I also considered using the ModifyTerrain command, but again, rather than setting up a loop to read in all the values and modifying the the terrain 1 point at a time I was wondernig if there was a simpler method. LoadTerrain("hm.bmp") is a 1 step method and bang, its done. It just seems wasteful to me that if I have the image or texture right there on hand I cant apply it to a terrain. I was hoping that there was a command or simple method I wasn't aware of.

Best way to describe what I'm doing is that I've created a terrain and I have a few other images and textures that represent various depths and features underneath. I'm taking "core samples" of my terrain. The terrain is 512,512 and I'm selecting a point and copying a little 10x10 section from that point and of all "layers" below it and then creating a 3d looking Core of the area selected by stacking each layer. Hope that makes sense.

Anyway, just wondering if there was an easier or better method than saving to file and reloading, or going point by point to draw it. Optimally I'd like to just create a new terrain and simply apply an image (heightmap) to it.