cidgoh / ontotrek

A 3d ontology visualizer focusing on OBOFoundry.org ontologies
GNU General Public License v3.0
6 stars 0 forks source link

Added snapshoting feature #22

Closed matnguyen closed 3 years ago

matnguyen commented 3 years ago

Closes #12

ddooley commented 3 years ago

Hey Matthew, I finally got to seeing this. So It looks like progress, and really neat to see how fast the larger graph like AGRO loads. However there is way too much information stored from each 3d graph. The cached info should only be the minimal (x,y,z) node info necessary to feed into the rendering machine. So for AGRO for example basically what should be saved is a single agro.json containing the xyz coordinates that the renderer generated alongside each node. Its a lookup table from node -> (x,y,z) coordinate. The only thing ForceGraph3D is doing is messing with (x,y,z) so that's all we need to cache.

On the original development.js line 69 do_graph() the top.BUILT_DATA.nodes gets loaded up with all the ontology bits and pieces. At end of do_graph(), before force 3d is activated, each node's cached (x,y,z) could be loaded in.

We can chat about that when you have time?