Re: [osg-users] Mirror transformation

2017-09-14 Thread Ale Maro
Hi Robert, I tried to simplify the scene graph (no shadow, effects, textures, shaders...) and the problem was still there. I originally disabled back face culling since I have 2-sided lighting with different material. So I supposed it is the expected behaviour for mirrored nodes and I try add

Re: [osg-users] Mirror transformation

2017-09-14 Thread Robert Osfield
Hi Ale, On 13 September 2017 at 16:51, Ale Maro wrote: > I use this scene graph structure to set some standard rendering features > to scene objects... so it is not easy to change it for me. > Anyway I tried to export the scene in osg format and change manually all > groups

Re: [osg-users] Mirror transformation

2017-09-14 Thread Ale Maro
Hi, yes, I can have mirror on each axis so I have already implemented a check similar to the one you suggested. Thank you for the clarification. Ciao, Ale -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=71714#71714

Re: [osg-users] Mirror transformation

2017-09-13 Thread Gianluca Natale
e left as COUNTERCLOCKWISE. Just for completeness. Gianluca -Original Message- From: osg-users [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Ale Maro Sent: Wednesday, September 13, 2017 7:12 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Mirror transfor

Re: [osg-users] Mirror transformation

2017-09-13 Thread Ale Maro
Hi Gianluca, I tried your suggestion and it worked. It is a little tricky for me becouse I need to analyze on the fly the transformation matrix and apply osg::FrontFace by consequence but it works. Thank you. Ale -- Read this topic online here:

Re: [osg-users] Mirror transformation

2017-09-13 Thread Ale Maro
Hi Robert, thank you for the quick answer. I use this scene graph structure to set some standard rendering features to scene objects... so it is not easy to change it for me. Anyway I tried to export the scene in osg format and change manually all groups that can give problems (clipnode,

Re: [osg-users] Mirror transformation

2017-09-13 Thread Gianluca Natale
had in the past. Gianluca -Original Message- From: osg-users [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Ale Maro Sent: Wednesday, September 13, 2017 4:23 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Mirror transformation I forgot to mention

Re: [osg-users] Mirror transformation

2017-09-13 Thread Robert Osfield
Hi Ale, You have several layers of different of effects that you are decorating your subgraph with - ClipNode, ShadowedScene, osgFX::Outline, I haven't come across anyone using such a combination before so it could be that some interaction is at play, none of these nodes are written with the

Re: [osg-users] Mirror transformation

2017-09-13 Thread Ale Maro
I forgot to mention that the geode inherit from the root node a 2-sided lighting with different materials in front and back side. Cheers, Ale -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=71707#71707

[osg-users] Mirror transformation

2017-09-13 Thread Ale Maro
Hi, this is probably a trivial question but what is the most straithforward way to mirror a node? I would like to use a MatrixTransformation so I simply set a negative scaling but the resulting node is totally black. Is it the expected result or did I miss something? I thought it was usefull to