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.
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.