<div dir="ltr">Apparently, my process strips out non-standard nodes!<div><br></div><div>Hmm.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 19, 2020 at 9:30 AM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I also believe the observed color differences are due to gamma<br>
correction being applied by default in x3dom:<br>
<br>
<a href="https://doc.x3dom.org/tutorials/lighting/gamma/index.html" rel="noreferrer" target="_blank">https://doc.x3dom.org/tutorials/lighting/gamma/index.html</a><br>
<br>
For x3dom try to disable gamma correction with:<br>
<br>
<Environment gammaCorrectionDefault="none"></Environment><br>
<br>
The frag shader in x3dom does encode gamma at the end:<br>
<br>
<a href="https://github.com/x3dom/x3dom/blob/master/src/shader/ShaderDynamic.js#L1270" rel="noreferrer" target="_blank">https://github.com/x3dom/x3dom/blob/master/src/shader/ShaderDynamic.js#L1270</a><br>
<br>
which means unapplying gamma correction after it has been applied for<br>
color computation in the shader:<br>
<br>
<a href="https://github.com/x3dom/x3dom/blob/master/src/shader/ShaderParts.js#L173" rel="noreferrer" target="_blank">https://github.com/x3dom/x3dom/blob/master/src/shader/ShaderParts.js#L173</a><br>
<br>
-Andreas<br>
<br>
> Date: Sun, 19 Apr 2020 06:47:19 -0600<br>
> From: GPU Group <<a href="mailto:gpugroup@gmail.com" target="_blank">gpugroup@gmail.com</a>><br>
> To: John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>><br>
> Cc: X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>><br>
> Subject: Re: [x3d-public] Color differences between X3DOM and X_ITE<br>
><br>
> H: (inverse) gamma correction applied (at end of frag shader) in x3dom?<br>
> In freewrl if I apply gamma like a khronos sample does for physical<br>
> material, I get washed-out look.<br>
> -Dioug Sanden<br>
><br>
> On Sun, Apr 19, 2020 at 1:19 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br>
><br>
> > [image: image.png]<br>
> > I believe this is the most recent dev version of X3DOM,<br>
> > and latest X_ITE build.   I will try to get an online version.<br>
> ><br>
> > See color difference between X3DOM (upper) and X_ITE (lower) for both JSON<br>
> > and XML encodings.<br>
> > _______________________________________________<br>
> > x3d-public mailing list<br>
> > <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
> > <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
> ><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<a href="http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200419/7c3e0ceb/attachment.html" rel="noreferrer" target="_blank">http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200419/7c3e0ceb/attachment.html</a>><br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: image.png<br>
> Type: image/png<br>
> Size: 81994 bytes<br>
> Desc: not available<br>
> URL: <<a href="http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200419/7c3e0ceb/attachment.png" rel="noreferrer" target="_blank">http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200419/7c3e0ceb/attachment.png</a>><br>
><br>
> ------------------------------<br>
><br>
> Subject: Digest Footer<br>
><br>
> _______________________________________________<br>
> x3d-public mailing list<br>
> <a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
><br>
><br>
> ------------------------------<br>
><br>
> End of x3d-public Digest, Vol 133, Issue 75<br>
> *******************************************<br>
<br>
<br>
<br>
-- <br>
Andreas Plesch<br>
Waltham, MA 02453<br>
<br>
_______________________________________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div>