Felix Ronnholm


About Me



Recent Forum Posts

Can't dirty and cook, PDG for Unity Terrain 2020.3.34f1 2023年4月6日2:52

Ill answer my own post, this was because the splatmap layers was not power of two. It's only the height that needs power of 2 +1

Houdini 19 Mapbox not functioning 2023年4月4日10:12


I think the mapbox api for downloading heightmaps has hanged. when I type in the 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

into my browser I get:

"Legacy Static Image requests are no longer supported. To continue
making Static Image requests, please use the modern Static Images API.
See https://docs.mapbox.com/api/maps/static-images/ [docs.mapbox.com]
for more information"}

when I check the: https://docs.mapbox.com/data/tilesets/guides/access-elevation-data/ [docs.mapbox.com]
(which is where I assume the node wants to retrieve height data based on it calling "mapbox.terrain-rgb")
It says the tile can now only be 256 or 512 "request 512×512 tiles instead of the default 256×256 tiles."

The api also now wants to have a tile number instead of long/lat in the heightmap call.

"{x} and {y} are tilename values, not geographic longitude and latitude coordinates. If you need to convert geographic coordinates to the tile coordinate names used in Slippy Map tilenames, you can use one of the libraries listed here."

so a new call looks like this:

https://api.mapbox.com/v4/mapbox.terrain-rgb/10/165/400,1024@2x.pngraw?access_token= + API_KEY

I install the mercantile package, convert long/lat to "tilename values" and add it to the call. But no.. I can only get 512X512 heightmaps to download just like the documentation said...

I feel lost. Has anyone gotten this to work? The color and OSM data works just fine. The api for heightmaps must have changed between today and March 26, 2023 based on previous posts. What the heck is going on?

Unable to open a single channel tif in photoshop 2023年3月21日6:17

Did you get it to work? I have the same issue.

This is my settings: