Terrain scale

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Sfortza
Posts: 39
Joined: Thu Mar 17, 2011 12:40 pm
Location: 184

Terrain scale

Post by Sfortza »

Using terrain as a map part of my mobile game.

Code: Select all

Terrain = SceneManager->addTerrainSceneNode(
                         mapFilename.c_str(),
                         0,                                    
                        -1,                                    
                        core::vector3df(0.f, 0.f, 0.f),        
                        core::vector3df(0.f, 0.f, 0.f),        
                        core::vector3df(4.0f, 0.1f, 4.0f),      
                        video::SColor ( 255, 255, 255, 255 ),  
                        3,                                     
                        scene::ETPS_9,                                     
                        4                                                                  
                        );
I'm using heightmap 256x256, but trying to create 1024x1024 with scaling.
It looks like the terrain is not scaled by no more than 2 - 2,5 times.
If I set 10 instead of 4, this is nothing.
What's wrong?

Thank you.
Insomniacp
Posts: 288
Joined: Wed Apr 16, 2008 1:45 am
Contact:

Re: Terrain scale

Post by Insomniacp »

are you referencing this against anything? if you just change the size you won't notice a difference unless there is another static object you can compare it to. Try placing a cube or something in the scene so you can tell where the end of the terrain is compared to that.
nespa
Posts: 167
Joined: Wed Feb 24, 2010 12:02 pm

Re: Terrain scale

Post by nespa »

256x256 not good;

try with 257x257 heightmap image
Sfortza
Posts: 39
Joined: Thu Mar 17, 2011 12:40 pm
Location: 184

Re: Terrain scale

Post by Sfortza »

Insomniacp, nespa thank you very much!
Post Reply