-
Notifications
You must be signed in to change notification settings - Fork 0
Overview
This scripts loads a graph from a specified JSON file and sets up all of the game objects in Unity.
Bulk of the work is done in LoadJSON(). Currently, all Unity game objects are instanced in LoadJSON(), right after reading the entire JSON file into memory.
Contains most of the UI functions (loading graphs, setting color modes, etc). Function to generate LOD is called from here.
Contains the per-node metadata, attached to each node GameObject.
Data per edge (color and head/tail node).
General global settings. Currently handles toggling between the VR and non-VR camera.
Container class for handling object pools, moved out of its original spot in GraphLoader.cs
Handles all of the input from the VR device, can easily check the state of something in other scripts.
Controls the VR Rig and the camera connected to it. Mainly controls for movement of the VR rig.
Handles everything related to GameObject manipulation in VR. Checks LOD visibility every physics frame.
Contains external libraries brought in. Currently only the octree library.
Contains the encapsulating data for the LOD octree. Any functions managing the octree should only use function in this file.
Defines for each octree node. These are added recursively to PointOctree.cs
Unused.
Deprecated, used only if using original Unity MeshRenderer nodes.
Current implementation of a node, uses the Shapes library to render the node. Contains node data and a sphere collider.
Deprecated, same as node.
Edge implemented with the Shapes library, contains edge data.
All unused. Currently setting colors directly with Shapes properties.
Contains all of the local .json graphs. All other graphs are loaded from an external server.