How to Create a Sphere with Only Edges

Hello :slight_smile:

It’s because OpenGL is using only triangles, and the current Wireframe Shader is drawing them as is.

Then it’s a perfect match for a nice Node Material Editor game ! :grin:


Modulo on Y coordinates, applied on a LessThan boolean :



Then do the same but instead of the Y coord, take the horizontal angle.
This is acheived easily using the arctan2 function along with X and Z coordinates, applied as well on a LessThan boolean :



Finally, merge both in a MAX node :


Here is the Node Material if you want to edit
And here is the Playground loading this custom material

++
Tricotou

9 Likes