Table of Contents

Geophysics Setup


NEEDS UPDATE

Unity Setup

Depending on how the fbx structure is the setup can be a bit different.

  1. Import the fbx into Unity.
  2. Drag the geophysics into the scene and unpack it.
  3. Create a Gameobject called Geophysics.
    • Add a CesiumGlobeAnchor and a SetGeophysicsValues componet to the object you just created.
  4. Add a child to the object called Layers add the GeoPhysics component to it.
  5. Open the fbx and see what layers are included and create the following as children of the Layers gameobject
  6. When all the layers have been created add the GeoMats component to them all the layers.
  7. 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.
  8. 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.
  9. 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.
  10. Asign the materials to the layers from the first 0 to last.
  11. 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.
  12. 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