<div dir="ltr"><div><div><div>Hi Alessandro,<br><br></div><div>At this point I don't have any ideas as to what might be amiss. To resolve it you'll need to step through a series of tests and investigations to figure out what might be amiss.  The difference could be regression introduced in OSG-3.4, but it also could be that OSG-3.4 is a little stricter so that problems in the scene graph setup that were hidden before are now exposed so you get the counter-intuitive situation that fixing the OSG breaks a client app.<br></div><div><br></div>What happens if you don't apply the ColorMask?  If the objects appear then you know there is some interaction there, if it doesn't then there is something else amiss.<br><br></div>FYI. ColorMask header and ColorMask.cpp are identical between OSG-3.4 and OSG-3.2, so this itself won't be the source of the discrepancy you are seeing.<br><br></div><div>Another test you could try is to try your application with straight OpenGL on a desktop.<br><br></div><div>Another thing you could look at is how the standard examples work on the two versions.  Are they similar or different?<br></div><div><br></div>Robert.<br><div><div><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 August 2015 at 17:38, Alessandro Terenzi <span dir="ltr"><<a href="mailto:a.terenzi@gmail.com" target="_blank">a.terenzi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I am having a problem related somehow to osg::ColorMask ... in order make an object invisible while still taking it's depth information into account I use these instructions:<br>
<br>
<br>
Code:<br>
<br>
osg::ref_ptr< osg::ColorMask > mask = new osg::ColorMask(false, false, false, false);<br>
my_model->getOrCreateStateSet()->setAttributeAndModes(mask.get(), osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE)<br>
<br>
<br>
<br>
<br>
This used to work fine with OSG version 3.2.1 but I've tried using OSG 3.4.0 (stable release) and now the object is still not rendered but also the depth information seems to be ignored because other objects that are supposed to be behind that 'invisible' objects are not hidden by it anymore.<br>
<br>
I'm using GLES1 profile on iOS. Tried to apply the color mask on a model loaded from FBX or OBJ.<br>
<br>
Any suggestion?<br>
<br>
Thanks.<br>
Alessandro<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=64756#64756" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=64756#64756</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br></div>