Translate & rotate terrains

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
User avatar
lonewolff
Ogre Magi
Posts: 1207
Joined: Wed Dec 28, 2005 12:58 am
x 5

Translate & rotate terrains

Post by lonewolff » Mon Dec 01, 2014 6:16 am

Hi guys,

Is it possible to translate, position, and/or rotate terrains?

Thanks in advance :)
0 x

User avatar
lonewolff
Ogre Magi
Posts: 1207
Joined: Wed Dec 28, 2005 12:58 am
x 5

Re: Translate & rotate terrains

Post by lonewolff » Tue Dec 02, 2014 9:41 pm

Hmm, can't be done?
0 x

User avatar
c6burns
Beholder
Posts: 1511
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines

Re: Translate & rotate terrains

Post by c6burns » Tue Dec 02, 2014 9:51 pm

You can set position on a terrain or set the origin of a terraingroup. I don't think you can rotate.
0 x

User avatar
lonewolff
Ogre Magi
Posts: 1207
Joined: Wed Dec 28, 2005 12:58 am
x 5

Re: Translate & rotate terrains

Post by lonewolff » Tue Dec 02, 2014 10:49 pm

Geez, that's a bummer :(
0 x

User avatar
c6burns
Beholder
Posts: 1511
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines

Re: Translate & rotate terrains

Post by c6burns » Tue Dec 02, 2014 10:54 pm

It's pretty common to not be able to rotate terrain on any of its axes. Try to do the same in Unity for example.
0 x

Anthea
Kobold
Posts: 25
Joined: Tue Oct 28, 2014 1:03 pm

Re: Translate & rotate terrains

Post by Anthea » Mon Dec 29, 2014 3:16 pm

why don't you rotate everything else instead, like your base scene node?

So, you would generate the feeling that your terrain is rotated.
0 x

User avatar
lonewolff
Ogre Magi
Posts: 1207
Joined: Wed Dec 28, 2005 12:58 am
x 5

Re: Translate & rotate terrains

Post by lonewolff » Mon Dec 29, 2014 9:16 pm

Because, I want multiple terrains on different axis. ;)
0 x

Germanunkol
Halfling
Posts: 87
Joined: Mon Oct 11, 2010 6:39 pm

Re: Translate & rotate terrains

Post by Germanunkol » Fri Jan 09, 2015 12:26 pm

Can anyone give more insight as to why it can't be rotated? I'm assuming it has to do with the internals of the Scene Manager and how it optimizes for terrains?
0 x

User avatar
c6burns
Beholder
Posts: 1511
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines

Re: Translate & rotate terrains

Post by c6burns » Fri Jan 09, 2015 3:52 pm

Optimizations to height retrieval and ray intersects as well as other benefits I'm sure ... being world axis aligned makes a lot of things easier. This isn't specific to Ogre terrain. None of the commercial middlewares allow you to arbitrarily rotate the terrain.
0 x

Post Reply