NetworkGraphs / graphysics

Graph with Physics, No nodes overlap, morph nodes to properties and groups
https://networkgraphs.github.io/graphysics/
MIT License
23 stars 1 forks source link

adding 3D shadows and lighting #3

Open trusktr opened 4 years ago

trusktr commented 4 years ago

Let's try a 3D shadow/lighting effect with Lume. I'll give it a shot if you haven't already by the time I swing back here.

wassfila commented 4 years ago

Sure that'd be awesome. I'll analyse what are the possible integration options, as I mentioned in the forum, the vertices here are SVG elements, but I'm trying to work on a very decoupled rendering systems where it's either possible to toggle between them or combine them. as showcase, I even started a graph3d repo, but I'm not sure I'll follow it up simply because I don't think vertices should be fully defined 3d meshes that might impact performance, but I'm really not sure. https://github.com/NetworkGraphs/graph3d

My favorite approach at the moment is the usage of classList.add and classList.remove and let CSS or any other Rendering engine take advantage of that.

But I let you completely free in your suggestions as I might learn things I did not knew, so be it a fork or suggestion, I'll try things out.