Hi all,
I have written a program in BlitzMax/OpenGL to create a random terrain which so far is working great. I can texture my terrain using a pre-drawn texture, but as I am generating my terrain at runtime I would prefer to also generate a suitable terrain texture at runtime too. I plan to create the various colours of pixels in the texture based on the various heights within the terrain - so ideally I am looking for some kind of "Render to Texture" function in OpenGL.
After doing a bit of searching I've discovered that such a feature doesn't seem to exist in older versions of OpenGL but is supported in newer versions through extensions?
I was wondering if anybody could suggest a way I could use the standard functions within the version of OpenGL supported by BlitzMax to create a texture at runtime. I'm still new to OpenGL and am not familiar with its many functions so there might be an easy solution (I hope so!). Speed is not important to me as my terrain, once generated, will remain static - so I only need to create the texture once at the start of my program.
Any suggestions would be much appreciated.
Dud
I have written a program in BlitzMax/OpenGL to create a random terrain which so far is working great. I can texture my terrain using a pre-drawn texture, but as I am generating my terrain at runtime I would prefer to also generate a suitable terrain texture at runtime too. I plan to create the various colours of pixels in the texture based on the various heights within the terrain - so ideally I am looking for some kind of "Render to Texture" function in OpenGL.
After doing a bit of searching I've discovered that such a feature doesn't seem to exist in older versions of OpenGL but is supported in newer versions through extensions?
I was wondering if anybody could suggest a way I could use the standard functions within the version of OpenGL supported by BlitzMax to create a texture at runtime. I'm still new to OpenGL and am not familiar with its many functions so there might be an easy solution (I hope so!). Speed is not important to me as my terrain, once generated, will remain static - so I only need to create the texture once at the start of my program.
Any suggestions would be much appreciated.
Dud