<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Robert,<br>
<br>
just a little side info.<br>
I tried our application with the 3.5.5(?) branch about 2 weeks ago <br>
and everything was fine except hud texts were all coming out in
black.<br>
I don't know if that is a useful hint.<br>
<br>
Thanks <br>
<br>
- Werner -<br>
<br>
<div class="moz-cite-prefix">Am 24.03.2017 um 18:27 schrieb Robert
Osfield:<br>
</div>
<blockquote
cite="mid:CAFN7Y+XV8vTF55LZ2O8+E-KvwYOdE=JcphGxzNKFLKF=7HSVkQ@mail.gmail.com"
type="cite">
<pre wrap="">HI Li,
My best guess is that the first cut of fallback shaders I've added for
GLES2/GLES3 and GL3core are being enabled accidentally for some
reason. These shaders shaders are add in the
StateSet::setGlobalDefaults() method implementation found in
OpenSceneGraph/src/osg/StateSet.cpp. Could you put an #if 0 #endif
around all the shader code in StateSet::setGlobalDefaults(), do a
build and see if that restores the rendering back to normal.
These fallback shaders are there just to make sure there users see
something on screen when no fixed function pipeline isn't available.
I'm currently working on a experimental shader_pipeline branch of the
OSG that has support for intergrating #pragmat(ic) shader composition
with fixed function StateAttribute to get pure shader based builds to
work in the same way as fixed function systems so that old fixed
function based models work in shaders without problems and no need for
generating shaders manually.
For this dev release that shader_pipeline work won't be merged, I was
hoping that the fallback shaders in OSG master wouldn't affect
standard OSG builds, if it isn't I'll need to have a look at how the
#idef's are all put together.
Robert.
On 24 March 2017 at 16:15, Li Chi <a class="moz-txt-link-rfc2396E" href="mailto:s12345uperman@sohu.com"><s12345uperman@sohu.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Robert,
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">What CMake build options did you select when building?
</pre>
</blockquote>
</blockquote>
<pre wrap="">I'm using the default OPENGL and OSG options, please see the attached file.
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">What type of hardware and drivers are you using?
</pre>
</blockquote>
</blockquote>
<pre wrap="">Display Driver: Intel HD 530 and Nvidia GTX 970m, and I got the same results.
I simply run: osgViewer.exe cow.osg
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">Do any of the OSG examples work? Does stats work?
</pre>
</blockquote>
</blockquote>
<pre wrap="">Stats work fine.
Other examples can normally startup, but the result pictures are same as the previous post.
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">Do previous versions of the OSG work OK?
</pre>
</blockquote>
</blockquote>
<pre wrap="">Last week's version(master branch) works fine.
Thank you!
Cheers,
Li
------------------
Read this topic online here:
<a class="moz-txt-link-freetext" href="http://forum.openscenegraph.org/viewtopic.php?p=70536#70536">http://forum.openscenegraph.org/viewtopic.php?p=70536#70536</a>
Attachments:
<a class="moz-txt-link-freetext" href="http://forum.openscenegraph.org//files/cmake_138.png">http://forum.openscenegraph.org//files/cmake_138.png</a>
_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
</blockquote>
<pre wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<b>TE<span style="color:red;">X</span>ION Software Solutions,
Rotter Bruch 26a, D-52068 Aachen</b><br>
Phone: +49 241 475757-0<br>
Fax: +49 241 475757-29<br>
Web: <a class="moz-txt-link-freetext" href="http://texion.eu">http://texion.eu</a><br>
eMail: <a class="moz-txt-link-abbreviated" href="mailto:info@texion.eu">info@texion.eu</a><br>
</div>
</body>
</html>