terrain rendernig

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Spidla
Posts: 31
Joined: Tue Nov 25, 2003 3:46 pm
Location: Czech Republic
Contact:

terrain rendernig

Post by Spidla »

Hi I have a problem with terrain.
First I don`t know which program to use to create heightmap file.
Second I don`t know the format of heightmap file (maybe RAW??)???
And finally textures loaded to terrain looks very ugly
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Heightmaps are usually only greyscale bitmaps. In the case of addTerrainSceneNode, it is any image file. Black = Low, White = High. Everything in the middle is a shade of grey.

So, MS Paint in Windows or GIMP in Linux are two software choices.

As far as "ugly" textures. You need to define ugly. Do you mean pixelated up close? Use a higher resolution image. 2048x2048 for semi-large tiles is minimum.

I prefer the 2 pixel per 1 Irrlicht unit method myself. Especially if I am getting my camera really close to the object.

There are other reasons for "ugly" textures. Video card driver Level of Detail (LOD) settings. nVidia starts theirs at 0. -15 will make a very detailed but grainy texture. +15 will make a super smeared one.
Crud, how do I do this again?
Khanz
Posts: 3
Joined: Thu Dec 11, 2003 1:03 pm
Location: Russia, Novokuznetsk

Post by Khanz »

Heightmap image must be grayscale, but in RGB format.
Post Reply