Can we use negative scale for "mirroring" effect?

Discussion area about developing with Ogre2 branches (2.1, 2.2 and beyond)
Post Reply
rujialiu
Goblin
Posts: 230
Joined: Mon May 09, 2016 8:21 am
x 24

Can we use negative scale for "mirroring" effect?

Post by rujialiu » Mon Feb 18, 2019 1:13 pm

Hi!

Back to the time we were using Ogre 1.x, we had some codes to set negative scales to some scene nodes to get a mirroed object. But later, after upgrading to Ogre 2.0, it doesn't work anymore because triangle winding and normals are inverted. We then developed a workaround to dynamically download the mesh from GPU, manually mirror the mesh and then upload it again (under and different name like "mesh001-mirrored"). It works fine (of course), but now I'd like to know whether there are simpler solutions.... thanks!
0 x

Post Reply