4 ms·
I think I'd have to move away from the concept of using polygons for such an approach - I had thought about just using a simple 2d projection of a 3d path, but
by bananicorn 10y ago
I think I'd have to move away from the concept of using polygons for such an approach - I had thought about just using a simple 2d projection of a 3d path, but I'd obviously run into quite a few problems regarding occlusion and a bunch of other things with that.
But I'll be having a lot of fun trying out some different approaches to 3d rendering ;)
- jkcxn 10y agoMaybe you'd be interested in this experiment I did with straight lines a while ago. I project 3d points onto 2d and make lines out of rotated divs. But I don't use css 3d rotation because I want to keep the fixed width of the lines themselves. There isn't proper occlusion but I fake it by applying a different style to edges that are facing away from the camera. You could also do like the OP and draw white polygons in the space between lines. Have a look here https://jsfiddle.net/cyt0o7m9/ https://jsfiddle.net/cyt0o7m9/
- cr0sh 10y agoThat's a great little demo - thanks for posting it!