Hi Nicholas,
This is how:
- you find the terrain extent in the inspector (select the terrain layer), edit the values in the code below.
- your heat map needs exactly the same extent as the satellite picture with this method.
- this code runs metric, maybe some things need to be adapted for feet projections.
CODE:
****************************************************
terrainExtentData(data) =
case data == "SX" : 15000
case data == "SZ" : 15000
case data == "OX" : 3224458.982
case data == "OZ" : -5016876.625
else : 1
ProjectGeorefImage -->
setupProjection(0,world.xz,
terrainExtentData("SX"),
-terrainExtentData("SZ"),
terrainExtentData("OX"),
terrainExtentData("OZ")
)
projectUV(0)
texture("maps/myMap.jpg")
*****************************************************
Cheers!
matt
------------------------------------------------------------------------------------------------------------------
matthias buehler || ceo & co-founder || msc. arch. eth zurich
------------------------------------------------------------------------------------------------------------------
vrbn AG – official esri partner || www.vrbn.io || winterthurerstrasse 53 || 8610 uster || switzerland
+41 78 930 04 07 || matthias.buehler@vrbn.io || @vrbnio @mattb3d