Leadwerks Gets Balls
The subject of spheres in 3D World Studio has been one of great levity (see here and here) around the Leadwerks community. I spent today finally implementing a CSG sphere primitive. This is a little different from creating a conventional triangle mesh sphere because each face is a single polygon with either three or four sides. Here's my scratch paper that got me through this process:
I'll spare you the mathematics and get right to the good stuff:
This completes the basic primitives, which include boxes, cylinders, cones, wedges, and now spheres. Tomorrow I will get started on compound primitives (arch and tube) as well as smoothing groups.
Let the hilarities ensue in the comments below.
- 1
6 Comments
Recommended Comments