Error with Heightmaps #512
Unanswered
abhi-arya1
asked this question in
Q&A
Replies: 1 comment
-
Make sure the heightmap is RGBA |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, Im trying to generate ground entities with Terrain(heightmap) as the model.
Ex: ground = Entity(model=Terrain(heightmap=[PATH]))
I keep getting an error, but only with certain heightmaps, that for line 38 in init for ursina\models\procedural\terrain.py, self.width=len(self.height_values) returns a TypeError: object of type 'NoneType' has no len()
Any ideas how to fix? I can provide more examples if needed.
Thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions