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

Chapter 6 - Dissolve - won't load the texture. #33

Open
GoogleCodeExporter opened this issue Jul 15, 2015 · 0 comments
Open

Chapter 6 - Dissolve - won't load the texture. #33

GoogleCodeExporter opened this issue Jul 15, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Compile the program (Dissolve - Chapter 6)
2. Run the program
3.

What is the expected output? What do you see instead?
I should see a "melting torus". I see a black window.


What version of the product are you using? On what operating system?
revision 193. Running Linux Ubuntu 11.04 desktop 64bit.


Please provide any additional information below.

The problem is that the program doesn't use the texture. The problem is in the 
line 143 of Dissolve.cpp file. It should be
                glUniform1i(locTexture, 0);
instead is
                glUniform1i(locTexture, 1);

So the fragment shader cannot use the texture and uses instead a null vector 
all the time. When comparing the texture color value (that is 0 0 0 0) to the 
dissolveFactor, the comparison is always false, so the fragment goes on discard 
for every pixel all the time. The result is a black window.


Original issue reported on code.google.com by matteo....@gmail.com on 22 Aug 2011 at 12:43

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

No branches or pull requests

1 participant