Felix Ronnholm

swSharkBoy_02

About Me

EXPERTISE
Developer
INDUSTRY
Gamedev

Connect

LOCATION
Sweden
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Python nodes in network loops Jan. 3, 2024, 8:55 a.m.

Hello,

So I have built myself a loop in a network and for every iteration I would like to change a parameter. I do this by adding a python node in the network that changes the parameter per iteration. But there is a problem, the parameter change takes effect only the next iteration... The way I solve this now is to have a dummy iteration to set the parameter up then start the "real" iterations.
This feels rather stupid. I could not find any topics on python nodes in network loops so here I am asking you:
How do you design your loops if you need a parameter change per iteration?

Can't dirty and cook, PDG for Unity Terrain 2020.3.34f1 April 6, 2023, 2:52 a.m.

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 April 4, 2023, 10:12 a.m.

Hello,

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:

{"message":
"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?