<div dir="ltr">Q. would it be possible to do a mathematical sphere in the fragment shader?<div>- do a box or a slightly larger rough sphere to get into the fragment shader</div><div>- send radius and center into frag shader</div><div>- in there do a mathematical test to see if you're on a perfect sphere, discard fragment if its a miss</div><div>- then (somehow) compute tangent etc -whatever frag shader normally needs to do its job</div><div>-Doug</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 27, 2020 at 11:18 PM J. Scheurich <<a href="mailto:mufti11@web.de">mufti11@web.de</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">| Can i get help putting subdivision as found here:<br>
<br>
| <a href="https://doc.x3dom.org/author/Geometry3D/Sphere.html" rel="noreferrer" target="_blank">https://doc.x3dom.org/author/Geometry3D/Sphere.html</a><br>
<<a href="https://doc.x3dom.org/author/Geometry3D/Sphere.html" rel="noreferrer" target="_blank">https://doc.x3dom.org/author/Geometry3D/Sphere.html</a>><br>
<br>
| into the X3DV4 (perhaps HTML version only) specification?<br>
<br>
There are different algorithms to render a Sphere, not only subdivision<br>
(<a href="https://en.wikipedia.org/wiki/Subdivision_surface" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/Subdivision_surface</a>)<br>
<br>
for example in white_dune spheres are rendered as triangles...<br>
<br>
What is needed is a away to define the number of polygons of a sphere,<br>
to define a chiseled or a smooth sphere, but you would need to<br>
define a render algorithm....<br>
<br>
so long<br>
MUFTI<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>