<div dir="ltr"><div><br></div><div>I have determined that the problem is exercised if the first node sets the blend for FBO 1:</div><div><br></div><div style="margin-left: 40px;"><div style="color: #000000;background-color: #fffffe;font-family: 'SFMono-Medium', 'SF Mono', 'Segoe UI Mono', 'Roboto Mono', 'Ubuntu Mono', Menlo, monospace;font-weight: normal;font-size: 13px;line-height: 18px;white-space: pre;"><div><span style="color: #202020;">stateset</span><span style="color: #000000;">-></span><span style="color: #202020;">setAttribute</span><span style="color: #000000;">(</span><span style="color: #091e42;font-weight: bold;">new</span><span style="color: #000000;"> </span><span style="color: #202020;">osg</span><span style="color: #000000;">::</span><span style="color: #202020;">Enablei</span><span style="color: #000000;">(</span><span style="color: #202020;">GL_BLEND</span><span style="color: #000000;">, </span><span style="color: #6554c0;">1</span><span style="color: #000000;">));</span></div><div><span style="color: #202020;">osg</span><span style="color: #000000;">::</span><span style="color: #202020;">BlendEquationi</span><span style="color: #000000;">* </span><span style="color: #202020;">blendEq</span><span style="color: #000000;"> = </span><span style="color: #091e42;font-weight: bold;">new</span><span style="color: #000000;"> </span><span style="color: #202020;">osg</span><span style="color: #000000;">::</span><span style="color: #202020;">BlendEquationi</span><span style="color: #000000;">(</span><span style="color: #6554c0;">1</span><span style="color: #000000;">,</span></div><div><span style="color: #000000;"> </span><span style="color: #202020;">osg</span><span style="color: #000000;">::</span><span style="color: #202020;">BlendEquation</span><span style="color: #000000;">::</span><span style="color: #202020;">RGBA_MAX</span><span style="color: #000000;">);</span></div><div><span style="color: #202020;">osg</span><span style="color: #000000;">::</span><span style="color: #202020;">BlendFunci</span><span style="color: #000000;">* </span><span style="color: #202020;">blendFunc</span><span style="color: #000000;"> = </span><span style="color: #091e42;font-weight: bold;">new</span><span style="color: #000000;"> </span><span style="color: #202020;">osg</span><span style="color: #000000;">::</span><span style="color: #202020;">BlendFunci</span><span style="color: #000000;">(</span><span style="color: #6554c0;">1</span><span style="color: #000000;">,</span></div><div><span style="color: #000000;"> </span><span style="color: #202020;">osg</span><span style="color: #000000;">::</span><span style="color: #202020;">BlendFunci</span><span style="color: #000000;">::</span><span style="color: #202020;">ONE</span><span style="color: #000000;">, </span><span style="color: #202020;">osg</span><span style="color: #000000;">::</span><span style="color: #202020;">BlendFunci</span><span style="color: #000000;">::</span><span style="color: #202020;">ONE</span><span style="color: #000000;">);</span></div><div><span style="color: #202020;">stateset</span><span style="color: #000000;">-></span><span style="color: #202020;">setAttributeAndModes</span><span style="color: #000000;">(</span><span style="color: #202020;">blendEq</span><span style="color: #000000;">, </span><span style="color: #202020;">osg</span><span style="color: #000000;">::</span><span style="color: #202020;">StateAttribute</span><span style="color: #000000;">::</span><span style="color: #202020;">ON</span><span style="color: #000000;">);</span></div><div><span style="color: #202020;">stateset</span><span style="color: #000000;">-></span><span style="color: #202020;">setAttributeAndModes</span><span style="color: #000000;">(</span><span style="color: #202020;">blendFunc</span><span style="color: #000000;">, </span><span style="color: #202020;">osg</span><span style="color: #000000;">::</span><span style="color: #202020;">StateAttribute</span><span style="color: #000000;">::</span><span style="color: #202020;">ON</span><span style="color: #000000;">);</span></div><div><span style="color: #000000;"><br></span></div></div></div><div style="margin-left: 40px;"><br></div><div>Removing this prevents the FBO 0 blending problem on the second node.<br></div><div><br></div><div>Rob<br></div><div><br></div>On Sunday, February 2, 2020 at 9:22:22 AM UTC-8, Rob Spearman wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><div>I can confirm the bug also exists on 3.6.5-rc3 branch. I don't know if it pre-existed that.<br></div><div><br></div><div>I have too many dependencies to be able to share a model. Simplistic models do not seem to exhibit the same behavior.</div><div><br></div><div>I'll keep trying to debug. When is applyGlobalDefaultAttribute supposed to be called? What sets these defaults?<br></div><br></div></blockquote></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/3526e168-887b-4b63-bdb4-e8687da4c861%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/3526e168-887b-4b63-bdb4-e8687da4c861%40googlegroups.com</a>.<br />