<div dir="ltr"><div dir="ltr">On Thu, Aug 7, 2025 at 11:42 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Okay. I tried setting the magnfiicationFilter to FASTEST, then NEAREST_PIXEL (for each .x3d file), and the latter had the best results, but there's still some things to be desired.</div></div></blockquote><div><br></div><div>These options are just instructions how the browser should fill in color between pixels when the texture is small. FASTEST could still mean different things to different browsers.but I think now usually means linear interpolation between vertices which on GPUs may be faster than the logic required by NEAREST. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div></div><div>Since <Environment> was not included in .json, iI switched to using .x3d. X_ITE had no issues, but I'm guessing other validation tools will have issues, I'm not sure.</div></div></div></blockquote><div><br></div><div>Yes, Environment is a non-standard x3dom extension, a bit like browser settings.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div><br></div><div>These two still have significant differences between X3DOM and X_ITE. I haven't tested other browsers.</div><div><br></div><div><ul style="list-style-type:none;padding-left:20px;color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:12px;background-color:rgb(240,240,240)"><li title="../data/indexedfaceset_pixeltexture_plus.x3d" style="padding:2px 0px;color:blue;text-decoration-line:underline">indexedfaceset_pixeltexture_plus.x3d</li><li title="../data/indexedfaceset_pixeltexture_whole.x3d" style="padding:2px 0px;color:blue;text-decoration-line:underline">indexedfaceset_pixeltexture_whole.x3d</li></ul></div></div><br></div></blockquote><div><br></div><div>I see it. Not sure what is going on.</div><div><br></div><div><a href="https://www.web3d.org/x3d/content/examples/ConformanceNist/Geometry/IndexedFaceSet/empty_textureIndexIndex.html">https://www.web3d.org/x3d/content/examples/ConformanceNist/Geometry/IndexedFaceSet/empty_textureIndexIndex.html</a></div><div><br></div><div>has similar differences with a jpg texture. It probably should not appear just green.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">are you saying put a magnficationFIlter as FASTEST for one, and NEAREST_PIXEL on the other to make them match?</div></div></div></blockquote><div><br></div><div>No, these are just the settings for the 'DEFAULT' field value. Matching values would be required for matching results, just like what you did.</div><div><br></div><div>Andreas</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Thanks,</div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr">John</div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr">On Thu, Aug 7, 2025 at 9:05 PM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" target="_blank">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"><div dir="ltr">Hi John,<div><br></div><div>after some attempts, I could get the pixeltexture examples to load in both viewers.</div><div><br></div><div>The difference is due to the 'DEFAULT' value of magnificationFilter in TextureProperties: <a href="https://www.web3d.org/documents/specifications/19775-1/V4.0/Part01/components/texturing.html#TextureProperties" target="_blank">https://www.web3d.org/documents/specifications/19775-1/V4.0/Part01/components/texturing.html#TextureProperties</a></div><div><br></div><div>x3dom has the webgl default (I think 'FASTEST') and x_ite probably has "NEAREST_PIXEL" which was probably the traditional default.</div><div><br></div><div>For a more specific prescription of desired rendering an author has to explicitly set magnificationFilter to a value other than 'DEFAULT'.</div><div><br></div><div>Cheers, -Andreas</div><div><br></div><div>PS: for better color correspondence, switch off gamma correction in x3dom with</div><div><br></div><div><a href="https://doc.x3dom.org/tutorials/lighting/gamma/index.html" target="_blank">https://doc.x3dom.org/tutorials/lighting/gamma/index.html</a></div><div><br></div><div>eg.,</div><div><br></div><div><pre style="box-sizing:border-box;overflow:auto;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:14px;padding:16px;margin:16px 0px;line-height:1.42857;word-break:break-all;color:rgb(51,51,51);background-color:rgb(245,245,245);border:1px solid rgb(170,170,170);border-radius:0px"><code style="box-sizing:border-box;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:inherit;padding:0px;color:inherit;background-color:transparent;border-radius:0px"><span style="box-sizing:border-box"> </span><span style="box-sizing:border-box"><Environment</span><span style="box-sizing:border-box"> </span><span style="box-sizing:border-box">id</span><span style="box-sizing:border-box">=</span><span style="box-sizing:border-box">"gamma"</span><span style="box-sizing:border-box"> </span><span style="box-sizing:border-box">gammaCorrectionDefault</span><span style="box-sizing:border-box">=</span><span style="box-sizing:border-box">"none"</span><span style="box-sizing:border-box">></Environment></span><span style="box-sizing:border-box">
</span></code></pre>Cheers, -Andreas</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 7, 2025 at 9:16 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@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"><div dir="auto">It occurred to me that you can pick up data files here: <div><a href="https://coderextreme.net/X3DJSONLD/src/main/data/" target="_blank">https://coderextreme.net/X3DJSONLD/src/main/data/</a></div><div dir="auto"><br></div><div dir="auto">Mouse over a link to get the filename, I think.</div><div dir="auto"><br></div><div dir="auto">I know it’s clunky.</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto"><br></div><div dir="auto">John</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 7, 2025 at 7:59 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@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"><div><div dir="auto">Please look at these examples on <div dir="auto"><a href="https://coderextreme.net/X3DJSONLD/src/main/html/main_viewer.html" target="_blank">https://coderextreme.net/X3DJSONLD/src/main/html/main_viewer.html</a> under NavigationInfo type menu at right. There’s a difference between X3DOM and X_ITE, but I don’t know which is correct yet. If needed, I can track down the .x3d files. They’re in this folder which is huge: <div><a href="https://github.com/coderextreme/X3DJSONLD/tree/master/src/main/data" target="_blank">https://github.com/coderextreme/X3DJSONLD/tree/master/src/main/data</a></div></div></div><ul style="list-style-type:none;padding-left:20px;display:block;font-family:arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;color:rgb(0,0,0)" dir="auto"><li style="padding:2px 0px;text-decoration:underline;font-family:arial,sans-serif;color:blue"><br></li><li style="padding:2px 0px;text-decoration:underline;font-family:arial,sans-serif;color:blue">indexedfaceset_pixeltexture_entire.json</li><li style="padding:2px 0px;text-decoration:underline;font-family:arial,sans-serif;color:blue">indexedfaceset_pixeltexture_part.json</li><li style="padding:2px 0px;text-decoration:underline;font-family:arial,sans-serif;color:blue">indexedfaceset_pixeltexture_plus.json</li><li style="padding:2px 0px;text-decoration:underline;font-family:arial,sans-serif;color:blue">indexedfaceset_pixeltexture_whole.json</li></ul><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto"><br></div><div dir="auto">John</div><div dir="auto"><br></div><div dir="auto">P.S.: if all else fails, I will attach them.</div>
</div>
</blockquote></div></div>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div>
</blockquote></div></div>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Andreas Plesch<br>Waltham, MA 02453</div></div></div></div>