[x3d-public] Q. should TriangleStripSet smooth? was Towards an ACID-like test for X3D
doug sanden
highaspirations at hotmail.com
Fri Aug 12 08:21:37 PDT 2016
TriangleStripSet has no creaseAngle field.
Should browsers smooth the normals, or not smooth, or something in-between ie with an intermediate creaseAngle default?
TriangleStripSet: triangles share vertexes along the strip.
TriangleSet: each triangle has separate vertices/no shared vertices, so no smoothing by any browser
> You can see the scene at http://www.jishop.com/temp/x3d/#Castle (click Download to get the X3D file).
See the middle triangles at the top of Castle which are TriangleStripSet (end ones are TriangleSet)
octaga - smooths
vivaty - smooths
instantReality - smooths
freewrl - smooths
On 8/9/2016 1:23 PM, Alekseyev, Vsevolod (NIH/NIAID) [E] wrote:
> For my latest X3D implementation, I've put together a scene that deliberately contains all the geometries under Geometry3D and Rendering modules. You can see the scene at http://www.jishop.com/temp/x3d/#Castle (click Download to get the X3D file).
>
> It demonstrates the following geometry nodes:
> - Box
> - Cone
> - Cylinder
> - Sphere
> - ElevationGrid
> - Extrusion
> - IndexedFaceSet
> - IndexedTriangleFanSet (x2)
> - IndexedTriangleSet (x2)
> - IndexedTriangleStripSet (x2)
> - TriangleFanSet (x2)
> - TriangleSet (x2)
> - TriangleStripSet (x2)
>
> The only widely available browser that renders it as intended is Cobweb, with InstantPlayer as a close second, some shading looking weird. X3DOM misses half the merlons, and misshades the CW ones. Xj3D badly misrenders the balcony extrusion (which is *not* pathological). Meshlab skips all primitives but Cylinder.
>
> Triangle set geometries are present twice, once as CCW and once as CW, to test the correctness of vertex flipping.
>
> The following polygonal geometries are *not* present in the file:
>
> - Disk2D
> - Rectangle2D
> - TriangleSet2D
> - Text
> - GeoElevationGrid
> - NurbsPatchSurface
> - NurbsSweptSurface
> - NurbsSwungSurface
> - NurbsTrimmedSurface
> - IndexedQuadSet
> - QuadSet
>
> Neither are the point/line ones.
>
> Enjoy.
More information about the x3d-public
mailing list