Discussion:
[osg-users] missing color for simple model with GLCORE
Andreas Roth
2018-07-27 13:55:12 UTC
Permalink
Hi,

i'm trying to get a model with colors and GLCORE (in OSG 3.6.2).

If i build OSG with the standard build options using GL2 the model shows some color (see osg_gl2.png). When i buildOSG with GLCORE the load does not show any colors (see osg_glcore.png).

The model does not contain any textures, only a geometry with a color array. How can i enable the colors for GLCORE?


Thank you!

Andreas[/img]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74403#74403
Robert Osfield
2018-07-28 09:19:09 UTC
Permalink
Hi Andreas,

When you use GLCORE you have to provide your own shaders to do rendering.

Unless you really have to use GLCORE for portability reasons - such as
OSX or to avoid crappy driver issues, I would recommend just sticking
with the default build of the OSG where you can mix and match old
fixed funciton pipeline and new shader code when you want, without
having to go all in with shaders.

Robert.
Post by Andreas Roth
Hi,
i'm trying to get a model with colors and GLCORE (in OSG 3.6.2).
If i build OSG with the standard build options using GL2 the model shows some color (see osg_gl2.png). When i buildOSG with GLCORE the load does not show any colors (see osg_glcore.png).
The model does not contain any textures, only a geometry with a color array. How can i enable the colors for GLCORE?
Thank you!
Andreas[/img]
------------------
http://forum.openscenegraph.org/viewtopic.php?p=74403#74403
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Loading...