logicbaby / oglsuperbible5

Automatically exported from code.google.com/p/oglsuperbible5
0 stars 0 forks source link

hdr_bloom sample doesn't produce bloom output because it doesn't generate mipmaps for textures with parameter GL_LINEAR_MIPMAP_LINEAR #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a Makefile if there isn't one
2. Compile the sample program

What is the expected output? What do you see instead?
The sample is expected to show a bloom on bright areas of the image, there is 
no bloom instead.

What version of the product are you using? On what operating system?
Ubuntu 10.10 x86_64 / GeForce GT220 / 260.19.12

Please provide any additional information below.
The textures "hdrTextures" and "brightBlurTextures" are setup with the 
GL_LINEAR_MIPMAP_LINEAR parameter, implying the required mipmap levels are 
generated somewhere before their use, but that isn't happening.
I think the sample should be corrected to ask OpenGL to generate mipmaps 
whenever this is needed: ie, in the "SetupHDRProg" method binding the textures 
for shaders usage.

Attached here is my Makefile and the patched hdr_bloom sample program with some 
other minor fixes (filename casing, GL/GLU paths..): i'm not going to attach a 
patch file since svn is mangling all the output with useless line-ending stuff 
(-x --ignore-eol-style doesn't ignore eol style).

Original issue reported on code.google.com by manuel....@gmail.com on 17 Oct 2010 at 1:13

Attachments: