Re:3D Comics
by bananicorn on Monday February 20, 2017 @06:07AM
(#13686322)
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 ;)
[ Parent
| on HN ]
Maybe 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/