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 6

Translate & rotate terrains

Post by lonewolff »

Hi guys,

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

Thanks in advance :)
User avatar
lonewolff
Ogre Magi
Posts: 1207
Joined: Wed Dec 28, 2005 12:58 am
x 6

Re: Translate & rotate terrains

Post by lonewolff »

Hmm, can't be done?
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: Translate & rotate terrains

Post by c6burns »

You can set position on a terrain or set the origin of a terraingroup. I don't think you can rotate.
User avatar
lonewolff
Ogre Magi
Posts: 1207
Joined: Wed Dec 28, 2005 12:58 am
x 6

Re: Translate & rotate terrains

Post by lonewolff »

Geez, that's a bummer :(
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: Translate & rotate terrains

Post by c6burns »

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.
Anthea
Kobold
Posts: 25
Joined: Tue Oct 28, 2014 1:03 pm

Re: Translate & rotate terrains

Post by Anthea »

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

So, you would generate the feeling that your terrain is rotated.
User avatar
lonewolff
Ogre Magi
Posts: 1207
Joined: Wed Dec 28, 2005 12:58 am
x 6

Re: Translate & rotate terrains

Post by lonewolff »

Because, I want multiple terrains on different axis. ;)
Germanunkol
Halfling
Posts: 87
Joined: Mon Oct 11, 2010 6:39 pm
x 12

Re: Translate & rotate terrains

Post by Germanunkol »

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?
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: Translate & rotate terrains

Post by c6burns »

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