ozikazina / Hydra

Blender hydraulic erosion addon using OpenGL.
MIT License
19 stars 2 forks source link

Issue with the erosion solver(I think it is the erosion image) #12

Open joelRVC opened 3 days ago

joelRVC commented 3 days ago

Hi. First of all I want to thank you for creating this, it looks very interesting. I tried it with a mountain model and when the geonodes preview appears, certain parts of geometry jump to infinite locations. I thought it was because of my model so I tried with Suzanne but I get similar behavior, I looked for the image generated by the erosion and in both scenarios it has certain pixels with errors.

I tried with blender 4.3 beta and also with 4.0, in the latter I show the image generated by the erosion:

Blender 4.3b:

https://github.com/user-attachments/assets/ce16a1c3-35e9-4612-84b3-8a70fb540959

Blender 4.0.2:

https://github.com/user-attachments/assets/41a1f346-4367-484a-b89e-61587804c90c

{B6EF1716-D05B-4535-9C49-66712A1339FD}

ozikazina commented 2 days ago

Hello. The latest release doesn't yet support overlapping geometry (planets, Susanne and so on), but I've never seen it fail like that. What GPU do you have and what operating system are you using?

I'll try it with the release version tommorow, it's possible I fixed the issue since then: obrazek

joelRVC commented 2 days ago

Thanks for the response. I have an Intel UHD 620 integrated GPU and a Radeon RX 560 discrete GPU.

I'll try it with the release version tommorow, it's possible I fixed the issue since then:

Thanks, I'll wait for that release then.

ozikazina commented 1 day ago

Could you please send a heightmap generated by the Hydra - Heightmaps panel and a heightmap after thermal erosion? The heightmap for susanne seems to generate correctly on your machine but then something goes very wrong during erosion.

joelRVC commented 1 day ago

I'll share an example with the mountain I mentioned before. It seems that the heighmap is generated without problems.

{0C99583A-0F29-41B4-8EFC-CCBE963CAF74}

With the heightmap after erosion, do you mean the image called displacement?

{7E0C6883-EA20-4579-8F81-24A55AD80899}

ozikazina commented 1 day ago

I meant the heightmap result - you can export it using the image button in the Result section (next to the geometry nodes symbol).

My only guess right now is that the erosion shaders launch too many threads for older GPUs. Check the console after launch for any errors, but if it runs, then the shaders probably compile fine. I'll try to send you a development version next week with modified shaders.