Discussion:
[osg-users] Warning: Material::apply(State&) - not supported.
Brad Colbert
2018-07-23 18:18:40 UTC
Permalink
Hi Folks,

I have, what I hope, is an easy question. I have a model that I'm loading
into my app (GL3) that is causing the following warning. What can I do to
simply stop the warning from being displayed?

*Warning: Material::apply(State&) - not supported.*

Would simply setting the OSG_NOTIFY_LEVEL to FATAL suffice?

Thanks,
Brad
Chris Hanson
2018-07-23 18:20:39 UTC
Permalink
That'll usually do the trick.

Have you determined what Stateset is on your model that is not implemented?
The right approach would probably be to modify the model to strip off the
unsupported state so the error is prevented.
Post by Brad Colbert
Hi Folks,
I have, what I hope, is an easy question. I have a model that I'm loading
into my app (GL3) that is causing the following warning. What can I do to
simply stop the warning from being displayed?
*Warning: Material::apply(State&) - not supported.*
Would simply setting the OSG_NOTIFY_LEVEL to FATAL suffice?
Thanks,
Brad
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Chris 'Xenon' Hanson, omo sanza lettere. ***@AlphaPixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
Brad Colbert
2018-07-23 18:28:03 UTC
Permalink
Thanks Chris.

It's a model I'm using for testing so it's probably not worth the effort.
Something I downloaded from TurboSquid.

Cheers,
Brad
Post by Chris Hanson
That'll usually do the trick.
Have you determined what Stateset is on your model that is not
implemented? The right approach would probably be to modify the model to
strip off the unsupported state so the error is prevented.
Post by Brad Colbert
Hi Folks,
I have, what I hope, is an easy question. I have a model that I'm
loading into my app (GL3) that is causing the following warning. What can
I do to simply stop the warning from being displayed?
*Warning: Material::apply(State&) - not supported.*
Would simply setting the OSG_NOTIFY_LEVEL to FATAL suffice?
Thanks,
Brad
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4
• GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Chris Hanson
2018-07-23 20:31:22 UTC
Permalink
You could probably just export to .osg or .osgt and search and replace to
remove osg Statesets by hand.
Post by Brad Colbert
Thanks Chris.
It's a model I'm using for testing so it's probably not worth the effort.
Something I downloaded from TurboSquid.
Cheers,
Brad
Post by Chris Hanson
That'll usually do the trick.
Have you determined what Stateset is on your model that is not
implemented? The right approach would probably be to modify the model to
strip off the unsupported state so the error is prevented.
Post by Brad Colbert
Hi Folks,
I have, what I hope, is an easy question. I have a model that I'm
loading into my app (GL3) that is causing the following warning. What can
I do to simply stop the warning from being displayed?
*Warning: Material::apply(State&) - not supported.*
Would simply setting the OSG_NOTIFY_LEVEL to FATAL suffice?
Thanks,
Brad
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4
• GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Chris 'Xenon' Hanson, omo sanza lettere. ***@AlphaPixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging • UAVs • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
Continue reading on narkive:
Loading...