hight map
I made a 256X256 hight map in an editor and saved it as a raw file. But when I try to view it using the NeHe hight map tutorial I get a small and very spiky map were in the editor viewer it had nice rolling hills. Why does this happen? Thanks.
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the internet, we know this is not true." -- Professor Robert Silensky
I'm going to presume that you're using Lesson 34. What you need to do is at the very beginning of the program there are some #defines:
If neither of these work then you're going to have to tell us what tutorial you're using, what editor it looks smooth in and some screeshots would be very useful indeed.
Best of luck.
#define STEP_SIZE 16#define HEIGHT_RATIO 1.5f
Try increasing the size of STEP_SIZE to get a larger on-screen rendering of the heightmap and then try lowering HEIGHT_RATIO to get a smoother finish.If neither of these work then you're going to have to tell us what tutorial you're using, what editor it looks smooth in and some screeshots would be very useful indeed.
Best of luck.
--
Cheers,
Darren Clark
Cheers,
Darren Clark
I am using a 128X128 map with step size 10-20 and hightratio 0.5.
In the terrain editor it looks like this (with texture):

and in lesson 34 it looks like this :(

Do you know what to do?
How can I get the mountains to be that smooth?
Thanks
EDIT: I think that the problem is that with the big step count there just aren't enough polys. But when I made it small the I jusk got spiky mountians? (Same as the second pic but more mountians and spikier.)
[Edited by - daniel_i_l on January 28, 2006 6:36:57 PM]
In the terrain editor it looks like this (with texture):

and in lesson 34 it looks like this :(

Do you know what to do?
How can I get the mountains to be that smooth?
Thanks
EDIT: I think that the problem is that with the big step count there just aren't enough polys. But when I made it small the I jusk got spiky mountians? (Same as the second pic but more mountians and spikier.)
[Edited by - daniel_i_l on January 28, 2006 6:36:57 PM]
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the internet, we know this is not true." -- Professor Robert Silensky
Does anyone know what the problem is?
Thanks.
Thanks.
"We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the internet, we know this is not true." -- Professor Robert Silensky
Have you tried resizing the map to 1024 or changing MAP_SIZE to 256.
otherwise i don't know, it could be that the data is stored the wrong way in the raw or that the data lookup is wrong.
otherwise i don't know, it could be that the data is stored the wrong way in the raw or that the data lookup is wrong.
www.flashbang.se | www.thegeekstate.com | nehe.gamedev.net | glAux fix for lesson 6 | [twitter]thegeekstate[/twitter]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement