[BUG 2.1] PlanarReflections issue with relative origin

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


Post Reply
User avatar
0xC0DEFACE
OGRE Expert User
OGRE Expert User
Posts: 84
Joined: Thu May 21, 2009 4:55 am
x 7

[BUG 2.1] PlanarReflections issue with relative origin

Post by 0xC0DEFACE »

Hi!

I've spent the last two days trying to get Planar Reflections and after basically copy and pasting the code from the ogre sample and it still not working, i realised it must be ogre and not me.

The problem is yet another issue with relativeOrigin. I can repro in the planar sample by simply setting the relative origin at the start of createReflectiveSurfaces().

Code: Select all

sceneManager->setRelativeOrigin( Ogre::Vector3( 0, 0, 10 ), false );
There are two issues after doing this, one is the reflections start reflecting from the wrong place, and two the "mirror" stops updating when you are still looking at it.

Im only trying to get the Unlit version working at the moment, but it looks like this also completely breaks the Pbs version even more so.

Here are some images to highlight what im talking about.
Reflections1.jpg
Reflections2.jpg
Reflections3.jpg
Thanks.
User avatar
0xC0DEFACE
OGRE Expert User
OGRE Expert User
Posts: 84
Joined: Thu May 21, 2009 4:55 am
x 7

Re: [BUG 2.1] PlanarReflections issue with relative origin

Post by 0xC0DEFACE »

I have patched the issue and submitted a pull request:

https://bitbucket.org/sinbad/ogre/pull- ... rting/diff

Cheers.
Post Reply