Geophysics Setup
NEEDS UPDATE
Unity Setup
Depending on how the fbx structure is the setup can be a bit different.
- Import the fbx into Unity.
- Drag the geophysics into the scene and unpack it.
- Create a Gameobject called Geophysics.
- Add a CesiumGlobeAnchor and a SetGeophysicsValues componet to the object you just created.
- Add a child to the object called Layers add the GeoPhysics component to it.
- Open the fbx and see what layers are included and create the following as children of the Layers gameobject
- When all the layers have been created add the GeoMats component to them all the layers.
- If the names of the children under a layer is not only in number (eg. 5, 10 , 15) use the BatchRenamer tool to easily rename.
- Each layer will need a empty gameobject for the value 0, if the layer doesnt have it create one and add a MeshRenderer to it.
- Create materials for each layer. Choose the GeoPhysics shader for the material to work correcly, also create a copy of each one and enable hasing and set Depth Write to ForceDisabled on the copy. Call them for example Chg and Chg 1/Hashed.
- Asign the materials to the layers from the first 0 to last.
- On the GeoMats coponent assign the Hashed material as the Mult Mat and Base as the base one, the opacity sliders is found on the Canvases > Main > UndergroundPanel > Geophysics, if you need more or less than the layers aleardy prvodied just duplicate or remove them.
- Go to the Layer Gameobject (The one that hold all the layers) and open up the Geo To Slider, in the inspector. Go through and assign all the varialbles.
- Slider (Found at Underground Panel > Geophysics > Under the panel you are working on)
- Geo (Drag in all the gameobject on the geophysics under the layer you are working on)
- Suffix
- Min Label found on the slider assigned above
- Max Label found on the slider assigned above