fede-vaccaro/TerrainEngine-OpenGL

Noise compute shader generate black images

Opened this issue · 2 comments

Hey,
I am currently trying to implement a rendering system for realistic clouds and came across your Terrain Engine which is really amazing. I wanted to use your compute shaders to generate my noise textures. Generating the weather texture works great but the other two 3d textures are just black when I try to debug it with Nsight. Do you have an idea what the reason could be? I also saw that you pass uniform variables to your shaders. But they actually don't have a uniform variable for the resolution. Is there something missing?
Thank you for your help and keep on working on your project :).

Copy my reply from youtube:

Hi, actually the compute shaders used in the code to the noise isn't mine, I took from another repo who is currently offline but you can see here https://youtu.be/U1VEJsVS7eE . I tried my code on three PC, two with GTX 960 and GTX 1080 Ti, where it runs correctly, and on another with a 750M where I had the issue you pointed out, but I really couldn't figure out anything to fix it. Maybe it's driver related, it could be that different hardware needs a different set up on OpenGL. About the uniforms yeah, are a bit dummy there since in the actual code had the resolutions hardcoded in, by the value suggested in the tutorial of Andrew Schneider. The code is a bit of a mess and has other mistakes like this, also currently I haven't much time to mantain it, since it is mainly for fun... By the way, perhaps in the future I will switch to a pre computed/cpu computed noise.

Hey there,
I know it's been months since my reply and the opening of the issue, but I may have fixed this. Unfortunately I don't have any method to test, can you?