<div dir="ltr"><div><div><div><div><div><div>Hello Philipp:<br><br></div>Yes, I feel your pain.<br><br></div>I implemented X3D NURBS in Vivaty Player/Vivaty Studio many years ago, and recall running into that problem.<br></div>
The spec clearly says that fourth parameter is "weight", and references the NURBS book, that tells you exactly how to implement it.  The Spec and the NURBS book do NOT refer to "weight" as being "w", the forth homogenous coordinate.  weight is weight.  It does however, start with the letter "w".  <br>
</div><br>But, Contact and others used the "weight" as "w", the fourth homogenous coordinate.  Since that is the gold standard, the bug propagates. <br></div><div><br>FWIW, Vivaty used the proper interpretation of the NURBS weight field  :)<br>
</div><br></div>So, to answer your question, IMHO, the only benefit of choosing the Homogenous coordinate interpretation is that it is consistent with the other X3D players.  Consistent with the spec... not so much.<br><div>
<div><br></div><div>Keith Victor<br></div>Apple<br><div><font size="1">(these are my opinions, and not those of my employer)<br></font></div><br><div><br><div><div><div><div><br><br><br></div></div></div></div></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 26, 2013 at 12:04 AM, Philipp Serfling <span dir="ltr"><<a href="mailto:Philipp.Serfling@t-systems-mms.com" target="_blank">Philipp.Serfling@t-systems-mms.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
i´m sorry to bother you again with my problems, but if anyone know some<br>
resources or reasons for my problem written underneath, i would be very<br>
thankful.<br>
<br>
thx<br>
.philipp<br>
<br>
<br>
-----Ursprüngliche Nachricht-----<br>
Von: Philipp Serfling [mailto:<a href="mailto:Philipp.Serfling@t-systems-mms.com">Philipp.Serfling@t-systems-mms.com</a>]<br>
Gesendet: Mittwoch, 14. August 2013 15:09<br>
An: '<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>'<br>
Betreff: reason / benefits of homogeneous coordinates in NURBS?<br>
<br>
hello,<br>
<br>
I´ve noticed that in x3d the control points of a nurbs surface are<br>
represented in homogeneous coordinates<br>
see:<br>
<a href="http://castle-engine.sourceforge.net/x3d_implementation_nurbs.php#section_ho" target="_blank">http://castle-engine.sourceforge.net/x3d_implementation_nurbs.php#section_ho</a><br>
mogeneous_coordinates<br>
<br>
Is there any benefit in doing it that way compared to the "normal /<br>
intuitive way" (also explained in the link) ?<br>
<br>
I´m asking for two reasons:<br>
<br>
1. White_dune, Instant Reality & BSContact  Player are using the homogeneous<br>
way.<br>
    But Octaga Player uses the "normal" way.<br>
<br>
2. I´m currently implementing NURBS Curves and PatchSurfaces in X3DOM and<br>
i´m not sure if i should implement the homogeneous<br>
  or the "normal way". Currently i´m developing both, but the homogeneous<br>
way is unintuitive and more complex and i really don´t see any advance.<br>
<br>
thx for your help<br>
.philipp<br>
<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" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div><br></div></div>