Importing and Creating Drillholes
This guide explains how to import drillhole data into Unity and set up drillholes in a scene.
Creating Drillholes from Data
Go to the TerraTools website.
Upload the three required CSV files:
- Collar
- Survey
- Assay
Once the files are processed, download the generated
.fbxand.jsonfiles.Rename the files using the required naming format:
DH_M_<DrillholeName>.fbx DH_J_<DrillholeName>.jsonExample:
DH_M_FiloDrillholes.fbx DH_J_FiloDrillholes.jsonThe
<DrillholeName>must be exactly the same for both files.
Importing into Unity
Place both the
.fbxand.jsonfiles in the same folder in the Unity project.Unity will automatically create a
DrillholeDataAssetnamed:DH_<DrillholeName>.assetSelect the created asset and confirm that it is complete. A complete asset requires:
- A valid FBX model
- A valid JSON file
- Mineral channel data from the JSON
Scene Setup
- Create a new empty GameObject in the scene.
- Place it under the
CesiumGeoreferenceobject. - Add the
Geology Data Managercomponent to the GameObject. - Assign the generated
DrillholeDataAssetto the Data Asset field. - Assign the drillhole material to the Material field.
- Click Setup Drillholes.
The drillhole model will be instantiated as a child of the GameObject. Each drillhole child will be positioned using the longitude, latitude, and elevation values from the JSON data.
Configuring Mineral Channels
After assigning a valid DrillholeDataAsset, the Geology Data Manager inspector will display the available mineral channels from the JSON data.
For each mineral channel, you can:
- Add cutoff entries.
- Set colors for each value range.
- Choose whether each range is active by default.
- Apply threshold presets.
- Apply color presets.
Each channel supports up to 8 entries.
Ignore Lowest Value
When Ignore Lowest Value is enabled, the first entry is treated as ignored data:
- Its color is locked to black.
- It starts disabled.
- It is not shown as an active mineral range by default.
This is useful when the lowest value represents empty, missing, or background data.
Clearing Drillholes
If drillholes have already been set up, the inspector will show a Clear Drillholes button instead of Setup Drillholes.
Click Clear Drillholes to remove the generated drillhole prefab from the scene. You can then run Setup Drillholes again.
Focus Groups
Focus groups can be configured in the Geology Data Manager inspector.
A focus group contains a list of drillhole GameObjects. Calling a focus group will highlight those objects and de-emphasize the others.
Depending on the manager settings, focus groups can either:
- Change object alpha values, or
- Set non-focused objects inactive
Use Reset Focus Groups to restore all drillholes to their default visible state.