<div dir="ltr"><div dir="ltr">> Date: Thu, 27 Sep 2018 10:14:50 -0400<br>> From: "<a href="mailto:vmarchetti@kshell.com">vmarchetti@kshell.com</a>" <<a href="mailto:vmarchetti@kshell.com">vmarchetti@kshell.com</a>><br>> To: X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>><br>> Subject: Re: [x3d-public] NurbsPositionInterpolator example problem<br>><br>> An issue here is that the  NURBS specification , <a href="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/nurbs.html#CommonGeometryFieldsAndCorrectness">http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/nurbs.html#CommonGeometryFieldsAndCorrectness</a> <<a href="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/nurbs.html#CommonGeometryFieldsAndCorrectness">http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/nurbs.html#CommonGeometryFieldsAndCorrectness</a>> ,<br>> refers to "uniform knot vector" without defining this terminology.<br>><br>> Andreas proposed:<br>> > A working knot vector would be<br>> > knot='0 0 0 .25 .5 .75 1 1 1'<br>> for this example, while freewrl makes a different choice, shown below.<br>><br>> Referring to the Ancient Book Of Wisdom (i.e. "The NURBS Book", by L. Piegle and W. Tiller, 2nd ed.) there is a definition given at the end of section 2.4, which agrees with<br>> the choice that freewrl makes for the default "uniform knot vector". This makes sense, the way NURBS (splines in general) with user-specified knot values are used in practice, the complete<br>> list of knot value start with {order} values of the minimum parameter range, and end with {order} value of the maximum of the parameter range. This choice has the useful property that<br>> the curve start on the first control point and ends on the final control point. {order} is the integer value of the order of the curve, {order} = 2 for linear segments, {order} = 4 for cubic curves<br><br>My suggestion was an attempt to stay closer to the (incorrect) knot vector in the example, not a suggestion for how to compute a replacement vector. FreeWrl's replacement vector and the Nurbs books definition is actually what I had started to use for my initial nurbs work in x3dom.<div><br></div><div>This brings up another problem in the example. While the interpolator has a knot vector, the drawn NurbsCurve does not have one. This means that the Curve is using the computed vector which works out since the Interpolator is also using the computed vector, by coincidence. The example should either not use a knot vector for both, or use an identical, correct knot vector for both the Interpolator and the Curve.</div><div><br></div><div>In order to test NurbsOrientationInterpolator, I augmented the example here:</div><div><br></div><div><a href="https://raw.githubusercontent.com/andreasplesch/x3dom/Nurbs/test/functional/nurbs/NurbsPositionOrientationInterpolatorExample.x3d">https://raw.githubusercontent.com/andreasplesch/x3dom/Nurbs/test/functional/nurbs/NurbsPositionOrientationInterpolatorExample.x3d</a><br></div><div><br></div><div><div><img src="cid:ii_jmksjk3u0" alt="image.png" width="436" height="320"><br></div><div>Doing that I came across the question what rotation exactly NurbsOrientationInterpolator should provide. I think it needs to be the rotation from the X3D default orientation (0, 0, -1) to the forward orientation of the curve tangent, in the local coordinate system. Regular OrientationInterpolator does not have that issue since it is given rotations to begin with.</div><div><br></div><div>-Andreas</div><br>> > On Sep 27, 2018, at 9:40 AM, GPU Group <<a href="mailto:gpugroup@gmail.com">gpugroup@gmail.com</a>> wrote:<br>> ><br>> > CONFIRMED with freewrl, which console complains:<br>> > bad knot vector, replacing with:<br>> > [0]=0.000000<br>> > [1]=0.000000<br>> > [2]=0.000000<br>> > [3]=0.000000<br>> > [4]=0.500000<br>> > [5]=1.000000<br>> > [6]=1.000000<br>> > [7]=1.000000<br>> > [8]=1.000000<br>> > -Doug Sanden<br>> ><br>> > On Thu, Sep 27, 2018 at 7:33 AM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a> <mailto:<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>>> wrote:<br>> > The NurbsPositionInterpolator in the example at<br>> ><br>> > <a href="http://www.web3d.org/x3d/content/examples/Basic/NURBS/NurbsPositionInterpolatorExampleIndex.html">http://www.web3d.org/x3d/content/examples/Basic/NURBS/NurbsPositionInterpolatorExampleIndex.html</a> <<a href="http://www.web3d.org/x3d/content/examples/Basic/NURBS/NurbsPositionInterpolatorExampleIndex.html">http://www.web3d.org/x3d/content/examples/Basic/NURBS/NurbsPositionInterpolatorExampleIndex.html</a>><br>> ><br>> > does not have enough knots. The knot field only has 5 entries but it<br>> > needs to have number of control points plus order entries, eg. 5 + 4,<br>> > 9 entries, according to the last paragraph about the knot field in<br>> ><br>> > <a href="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/nurbs.html#CommonGeometryFieldsAndCorrectness">http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/nurbs.html#CommonGeometryFieldsAndCorrectness</a> <<a href="http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/nurbs.html#CommonGeometryFieldsAndCorrectness">http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/nurbs.html#CommonGeometryFieldsAndCorrectness</a>><br>> ><br>> > The example still works but in a limited fashion in NURBS supporting<br>> > browsers because in the case of an incorrect number of knots, the<br>> > browsers will compute a default uniform knot vector. The problem then<br>> > is that the replacement vector is not guaranteed to span the 0 to 1<br>> > range, or whatever range the original knot vector had.<br>> ><br>> > A working knot vector would be<br>> > knot='0 0 0 .25 .5 .75 1 1 1'<br>> ><br>> > -Andreas<br>> ><br>> > --<br>> > Andreas Plesch<br>> > Waltham, MA 02453<br>> ><br>> > _______________________________________________<br>> > x3d-public mailing list<br>> > <a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a> <mailto:<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>><br>> > <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a> <<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>><br>> > _______________________________________________<br>> > x3d-public mailing list<br>> > <a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a><br>> > <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">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/20180927/c409118a/attachment-0001.html">http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180927/c409118a/attachment-0001.html</a>><br>><br>> ------------------------------<br>><br>> Message: 3<br>> Date: Thu, 27 Sep 2018 15:19:03 +0000<br>> From: "Brutzman, Donald (Don) (CIV)" <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>><br>> To: Nicholas Polys <<a href="mailto:npolys@vt.edu">npolys@vt.edu</a>><br>> Cc: Web3D Communications Team <<a href="mailto:communications@web3d.org">communications@web3d.org</a>>, "Web3D<br>>         Consortium Board of Directors" <<a href="mailto:bod@web3d.org">bod@web3d.org</a>>, X3D Graphics public<br>>         mailing list <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>><br>> Subject: Re: [x3d-public] [communications] Videos and news from VT:<br>>         Wing It exhibit wins design award by SEGD<br>> Message-ID: <<a href="mailto:cc54790a-459b-9117-cd4b-c74e7bcb9cd8@nps.edu">cc54790a-459b-9117-cd4b-c74e7bcb9cd8@nps.edu</a>><br>> Content-Type: text/plain; charset="utf-8"<br>><br>> [cc: x3d-public]<br>><br>> On 9/26/2018 8:04 PM, Nicholas Polys wrote:<br>> ><br>> > 2] The Wing It! Project won an international design competition!<br>> ><br>> > <a href="https://segd.org/wing-it?-winged-insect-exhibit">https://segd.org/wing-it?-winged-insect-exhibit</a> <<a href="https://segd.org/wing-it%E2%80%94-winged-insect-exhibit">https://segd.org/wing-it%E2%80%94-winged-insect-exhibit</a>><br>> ><br>> > <a href="https://designobserver.com/feature/wing-it-testing-out-exhibit-design-using-virtual-reality/39835">https://designobserver.com/feature/wing-it-testing-out-exhibit-design-using-virtual-reality/39835</a><br>><br>> Simply awesome.  Congratulations to the entire team!  Tweets:<br>><br>>         <a href="https://twitter.com/Web3DConsortium/status/1045329625037979648">https://twitter.com/Web3DConsortium/status/1045329625037979648</a><br>><br>>         Winner of Society for Experiential Graphic Design @SEGD 2018 Merit Award for Environmental Design & New Media:<br>>         "Wing It ? The Winged Insect Exhibit" by @virginia_tech video: <a href="https://vimeo.com/261182193">https://vimeo.com/261182193</a><br>>         article: <a href="https://segd.org/wing-it?-winged-insect-exhibit">https://segd.org/wing-it?-winged-insect-exhibit</a><br>><br>>         "Wing It: Testing Out Exhibit Design Using Virtual Reality" review in Design Observer<br>>         @DesignObserver by Professional Society for Design @AIGAdesign online at<br>>         <a href="https://designobserver.com/feature/wing-it-testing-out-exhibit-design-using-virtual-reality/39835">https://designobserver.com/feature/wing-it-testing-out-exhibit-design-using-virtual-reality/39835</a><br>>         <a href="https://twitter.com/Web3DConsortium/status/1045329625037979648">https://twitter.com/Web3DConsortium/status/1045329625037979648</a><br>><br>> all the best, Don<br>> --<br>> Don Brutzman  Naval Postgraduate School, Code USW/Br       <a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a><br>> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149<br>> X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman">http://faculty.nps.edu/brutzman</a><br>><br>> ------------------------------<br>><br>> Subject: Digest Footer<br>><br>> _______________________________________________<br>> x3d-public mailing list<br>> <a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a><br>> <a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>><br>><br>> ------------------------------<br>><br>> End of x3d-public Digest, Vol 114, Issue 39<br>> *******************************************<br><br><br><br>-- <br>Andreas Plesch<br>Waltham, MA 02453</div></div></div>