monci Hu
monci
About Me
FX Lead / Senior FX Artist
専門知識
VFX Artist
業界:
Film/TV
Connect
LOCATION
Canada
ウェブサイト
Houdini Engine
Availability
Not Specified
Recent Forum Posts
Houdini 19 Mapbox not functioning 2023年4月12日9:04
Following swSharkBoy_02's findings, I did these steps to make it work (512res) while waiting for the official update.
1. pip install mercantile
2. import mercantile in the Mapbox scripts. Remember to append the path first.
3. find this line `terrain_url = "https://api.mapbox.com/v4/mapbox.terrain-rgb/ [api.mapbox.com]" + str(lon) +"," + str(lat) + "," + str((zoom+1)) + "/1024x1024@2x.png?access_token=" + API_KEY `
4. and replaced it with
Now it should be working.
@MaiAo Any ideas of using 1024 or higher resolution for heightmap?
1. pip install mercantile
2. import mercantile in the Mapbox scripts. Remember to append the path first.
3. find this line `terrain_url = "https://api.mapbox.com/v4/mapbox.terrain-rgb/ [api.mapbox.com]" + str(lon) +"," + str(lat) + "," + str((zoom+1)) + "/1024x1024@2x.png?access_token=" + API_KEY `
4. and replaced it with
x, y, z = mercantile.tile(lon, lat, zoom) terrain_url = f"https://api.mapbox.com/v4/mapbox.terrain-rgb/{z}/{x}/{y},512@2x.pngraw?access_token={API_KEY}"
Now it should be working.
@MaiAo Any ideas of using 1024 or higher resolution for heightmap?