...I wanna use bitmaps for height mapping
Ok, I read through the NeHe tutorial, and I noticed that it uses .raw files for the height map. Does ANYONE know where a tutorial is on using bitmaps for height mapping!? I did all that I could to the code to make it work with bmps, no luck. Or, would someone kindly show me a modded version of the code with this support, or at least show me a program that can make .raw files that will work with the tutorial program? Thank you, and please do hurry.
----------------------------------------------------------You know, I might as well go ahead and say I can't fix the problem... because that's when I figure out how.
Any good paint program can export RAW files. Download Paint Shop Pro, it has support for RAW files among many others.
-----------------------"When I have a problem on an Nvidia, I assume that it is my fault. With anyone else's drivers, I assume it is their fault" - John Carmack
It''s actually quite simple to use a bitmap for a heightmap!
If you can use bitmaps for textures you can user bitmaps for heightmaps! *heh..*
Just use the function you use to load the bitmap for textures, bot instead you using it for a texture you use it for a heightmap!
------bitmap.x---
|
|
|
|
|Bitmap.z
And user Bitmap.y for heights!
As simple as that....
- -- ---[XaOs]--- -- -
[ project fy ]
If you can use bitmaps for textures you can user bitmaps for heightmaps! *heh..*
Just use the function you use to load the bitmap for textures, bot instead you using it for a texture you use it for a heightmap!
------bitmap.x---
|
|
|
|
|Bitmap.z
And user Bitmap.y for heights!
As simple as that....
- -- ---[XaOs]--- -- -
[ project fy ]
Xaos doesnt mention that you only need 1 of the three rgb colors for the height at that point. You could modify a bitmap loader so that after it reads in the bitmap, it copies only 1 of the rgb colors into a new array, which then can be saved into a texture, thereby saving you some space.

GQ : I didn''t mention it because then it wouldn''t be that simple anymore!
!!!
But i have done this myself, just to save some space!
he he...
Take Care!
- -- ---[XaOs]--- -- -
[ project fy ]

But i have done this myself, just to save some space!

he he...
Take Care!
- -- ---[XaOs]--- -- -
[ project fy ]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement