<div dir="ltr"><div>Hi Vaillancourt, </div><div>I can try to answer some of your questions:</div><div dir="ltr"><br></div><div dir="ltr">> I’m 
not sure I totally understand what I’m currently doing. 
<div></div></div><div>- Sorry, I don't know either</div><div><br></div><div>> Now, I’m wondering, if the Value is OFF (and it also appears to be off when I debug the code), why is the attribute applied anyway?</div><div>- That's how this works, the attribute is applied with (boolean) value OFF.</div><div>  This might be because the default value is ON, or somewhere above your node in the tree the attribute is set to ON.</div><div><br></div><div>> What would I need to do to have the attribute not applied?</div><div>  Remove it from your osgt file.</div><div><br></div><div>Regards, Laurens.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 3, 2020 at 2:21 PM OpenSceneGraph Users <<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hello all!</div>
<div><br></div>I’m 
not sure I totally understand what I’m currently doing. 
<div><br></div>
<div>I’m 
trying to make one of our models displayable only with the “core” profile (using 
3.3, 4.2, etc.), I seem to be able to build OSG for that (e.g., the code that is 
in ’OSG_GL_FIXED_FUNCTION_AVAILABLE’ defines is correctly left out), and create 
contexts for 3.3+.</div>
<div><br></div>
<div>I’m 
using the osgsimplegl3 example as a basis, and one of the simple models that we 
have here (converted to osgt for my tests). </div>
<div><br></div>
<div>Now, 
my test model contains stuff like “quads,” which I managed to remove manually 
(for now, will fix that later), and it also contains attributes like</div></div><div><div><font face="courier new, monospace">osg::Material {</font></div><div><font face="courier new, monospace">    UniqueID 4 </font></div><div><font face="courier new, monospace">    Name "default" </font></div><div><font face="courier new, monospace">    Ambient  TRUE Front 0.50 0.50 0.50 1 Back 0.50 0.50 0.50 1 </font></div><div><font face="courier new, monospace">    Diffuse  TRUE Front 0.91 0.91 0.91 1 Back 0.91 0.91 0.91 1 </font></div><div><font face="courier new, monospace">    Specular TRUE Front 0.72 0.72 0.72 1 Back 0.72 0.72 0.72 1 </font></div><div><font face="courier new, monospace">    Emission TRUE Front 0 0 0 1 Back 0 0 0 1 </font></div><div><font face="courier new, monospace">    Shininess TRUE Front 10 Back 10 </font></div><div><font face="courier new, monospace">  }</font></div><div><font face="courier new, monospace">  Value OFF</font></div></div><div><font face="courier new, monospace"><div>osg::TexEnv {</div><div>    UniqueID 8 </div><div>  }</div><div>  Value OFF </div><div><br></div></font></div><div><br></div><div><div>When 
I run the example, I get errors like those:</div></div><div><br></div><div><font face="courier new, monospace">Warning: Material::apply(State&) - not supported.</font><br></div><div><font face="courier new, monospace">Warning: TexEnv::apply(State&) - not supported.<br></font></div><div><br></div><div><div>Looking 
at the code, this indicates that it’s an “error” caught by OSG, and it doesn’t 
call the OpenGL API.</div>
<div><br></div>
<div>Now, 
I’m wondering, if the Value is OFF (and it also appears to be off when I debug 
the code), why is the attribute applied anyway? What would I need to do to have 
the attribute not applied?</div>
<div><br></div><div>Thanks!<br></div>
<div><br></div><div>I'm using OSG 3.6.3.<br></div><div><br></div>
<div>--</div>
<div>Vaillancourt</div></div></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com" target="_blank">osg-users+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/82b35a1a-e591-4187-9883-d3710400e851%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/osg-users/82b35a1a-e591-4187-9883-d3710400e851%40googlegroups.com</a>.<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">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></div>