<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">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">https://groups.google.com/d/msgid/osg-users/82b35a1a-e591-4187-9883-d3710400e851%40googlegroups.com</a>.<br />