Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Noise compute shader generate black images #3

Open
vanessaschueller opened this issue Oct 18, 2018 · 2 comments
Open

Noise compute shader generate black images #3

vanessaschueller opened this issue Oct 18, 2018 · 2 comments

Comments

@vanessaschueller
Copy link

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 :).

@fede-vaccaro
Copy link
Owner

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.

@fede-vaccaro
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants