[Contribution] Terrain position different from (0,0,0)

RB

20-03-2006 09:50:16

Hi,

Currently I am working on the submersible simulation project which is using PLSM for ocean bottom surface modeling.

Coordinate system of our specific terrain should be translated along y axis ( this is a marine convention).
I think it would be nice if we can place terrain in positions different from (0,0,0).

So i added new option to the PagingLandScapeOptions class and call it "position", i also add 3 new parameters to the .cfg parser -
"PositionX, PositionY, PositionZ", which working much like "ScaleX, ScaleY, ScaleZ" options. Also i slightly changed PagingLandScapePage::init (..) PagingLandScapeRenderable::getRawVertexData(..) functions which now consider terrain translation, i.e physics engines should not notice any change.

I'll post the patch as soon as cvs.sourceforge.net wake alive :)

tuan kuranes

20-03-2006 13:11:04

nice contribution.
you can also mail me it.

RB

21-03-2006 14:57:05

Ok, i already send you a mail.

tuan kuranes

21-03-2006 15:11:50

Perfect, Thanks a lot !
Patch applied to CVS.

(thanks for gcc fix too, does this mean linux build system works out of the box ?)

RB

22-03-2006 14:56:14

(thanks for gcc fix too, does this mean linux build system works out of the box ?)

Yes, linux build works just fine. Thanks for a good job! :D