News for hackers. Stuff that matters.
Re:3D Comics by dualogy on Monday February 20, 2017 @03:10AM (#13685394)
Certainly is "possible" (and if you search you'll likely find some "3D renderers" for 2d canvas) but that'd need a rasterizer implemented in JavaScript and if you want anything more than 1-colored triangles, some notion (even if haphazard, custom and callback-or-so based) of "shading" --- should screech to a crawl quickly.
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 ;)
Re:3D Comics by jkcxn on Monday February 20, 2017 @11:02AM (#13688316)
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/

Re:3D Comics by cr0sh on Monday February 20, 2017 @01:02PM (#13689396)
That's a great little demo - thanks for posting it!