Replies: 2 comments
-
WebGL don't have direct support for NURBS, it only supports basic primitives like points, lines and triangles. Three.js just converts NURBS to lines and triangles and then render it, see webgl_geometry_nurbs.html, NURBSCurve.js, NURBSSurface.js and NURBSUtils.js in Three.js example. You can try the code in NURBSUtils.js above to calculate the coordinates of the points and draw the lines in PixiJS to form NURBS. |
Beta Was this translation helpful? Give feedback.
0 replies
-
We used a package called b-spline which works quite well |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using Pixijs for rendering in our application. We have a request to implement a large amount of nodes and edges using NURBS.
I see that webGL has some support for nurbs, and Three.js as well, but I am not really able to find anything for PixiJs. Is there support build into Pixi for calculating and drawing edges with Nurbs?
I have also found this library but it does not seem like it is being maintained: verb-nurbs-web
Beta Was this translation helpful? Give feedback.
All reactions