Scaling my terrain in PLSM2

netocris

30-08-2007 17:24:23

Hello people,

i'm a little confuse about the values of the:

ScaleX=15000
ScaleY=2000
ScaleZ=15000

in xx.cfg file that ogre application it goes to load.

the xx.gen.cfg file have this parameters equal to:

ScaleX=1.5
ScaleY=1
ScaleZ=1.5
i make one map in FreeWorld3D but i can't locate the entity's in correct position when i load the map with PLSM2 into ogre that have in FreeWorld3D map

i have made the next procedure to adapt the coordenates in freeworld to PLSM, but i'm not sure that is correct.

the map in FreeWorld is 1024x1024
i've one house in the this coordenates: 715,45,216

to adapt to PLSM coordenates i made:

X: (715*15000)/1024 = 10486,948. after 15000 - 10486,948
= 4513,052 -> give me the X coordenate in PLSM (ScaleX=15000).
the rest coordenates is the same...

but with this procedure the house not appear in right position. what i have made wrong???

anyone can help me please.

netocris

30-08-2007 20:01:42

please anyone help me, i'm desperade,

how i make to keep the same scale of the terrain made in FreeWorld when i load it to ogre using PLSM2. What values in the parameters ScaleX,Y,Z should i have insert to keep the same terrain scale in Ogre.

i'm desperade.......................

Cutter

30-08-2007 23:16:46

I don`t know freeworld, but I see that you are scaling the terrain 2 times: first in the mapsplitter(1,5;1;1,5) and then in the game(15000;2000;15000).

Perhaps I just oversee it in your calculation, but this is my quick thought.