hi! take a look at my last thread: http://www.opengl.org/discussion_boards/showthread.php/180940-Deferred-shading-and-light-volumes?p=1248303#post1248303
regards
saski
Type: Posts; User: saski
hi! take a look at my last thread: http://www.opengl.org/discussion_boards/showthread.php/180940-Deferred-shading-and-light-volumes?p=1248303#post1248303
regards
saski
Hello,
I've hit a problem during my attempt to write a deferred light shader using stencil light volumes. The combined depth/dtencilbuffer setup looks like this:
glGenTextures(1,...
Never mind! Found the solution. It is always a good Idea to watch the stencil buffer ranges when incrementing/decrementing :whistle:
Doing:
glStencilOpSeparate(GL_FRONT, GL_KEEP,...
Hello,
I'm still struggeling with the light volume artifacts described in my last post. stupid question: Why is the light volume only being culled by the depth-test? This seems to be the problem...
Hi,
I've made some progress using the stencil culling and it amlost works :). There is however one more issue: Depending on the view of the camera the stencilbuffer seems to have trouble culling...
Hi Dark Photon,
again thanks a bunch for your patience and your effort. and this time I believe I finally got it :)
Image below shows basically the sphere after some code tweaks. There is a...
Hi,
@thokra: You're probably right that tiled shading is the best way to go. I'm kinda new to Shading and don't know too much about OpenCL so I'll give it a shot after I've got the oldstyle light...
Hi Dark Photon,
first I'd like to thank you for your time explaining to me the details. But I still don't get the whole picture.
Let me see if I got this: What you mean exactly with on top...
Hello,
currently I'm trying to optimize my deferred shading by using lightvolumes to process only those fragments that are affected by the lightsource. I've read many tutorials and I'm very confused...
oh yeah now I see my mistake! the GL_BLEND totally slipped me.
Thanks very guys much for the quick help!!!!
hi,
well I assume that the shader compiles correctly. glGetShaderiv() always returns a good status and there are no warnings whatsoever. And there is no random "jittering" in the scene. the depth...
Hello,
I've played around with deferred shading recently and during several optimization approaches I've tried to pack additional values like specular or ambient factors in already existing...
problem solved! explicitly calling glDisable(GL_ALPHA_TEST) before rendering the geometry to MRTs did the job :)
Saski
Hi,
Because objects appear to be partial tranaparent as if the alpha channels of the MRTs are being mixed somehow. Maybe I'm confusing this with a depth test fail.
Saski
Hello,
I'm currently implementing a deferred shader with multiple render targets for albedo, normal and position. The depth test fails as soon as I set the "alpha" value for the normal or position...
well it's a project targeted for opengl ES 2.0 embedded systems with ~32MB texture memory availble.
and btw. enemy sprites in doom are composed of multiple frames with 8 different view angles. thas...
hi!
thanks for your input. is there any sample shader code for the texel lookup availble? I'm pretty new to glsl and could use a little heads up ;-). you're absolutely right regarding texture...
hello,
I would like to use paletted textures for my sprite engine to save texture memory. doing the palette lookup is easily done in the fragment program. however I need bilinear filtering enabled...
The Intel 945G does not support any shaders AFAIK. any opengl application intending to use shaders should check the opengl extension string for "GL_ARB_vertex_shader" wich is probably not availble on...
thanks a lot to you both. now I see my mistakes - silly me ;)
btw. the opengl samples git has some really interesting demos, great resource!
hi,
thanks for your fast reply! I did try to pass the color and texcoord through the shader but glDrawElements() didn't like that. And yes the nvidia compiler compiles and links without any...
howdy folks,
very basic question: do I have to pass color values and texture coordinates through a geometry shader?
I wrote a simple passthough GS that renders the geometry fine but OpenGL fails...
Ok, I see your point. However this is not what some coders would have expected - especially such a huge performance impact under CPU stress since IBOs should be handled by the GPU.
Btw. what about...
Hi folks,
I've experienced some odd behaviour using glMapBufferRange() on GF9600GT (GL 3.3) hardware with recent drivers.
I've created a pretty large IBO (approx 30000 elements).
to speed...
eeehm....oh yeah that one slipped me totally ;)
thx a lot for pointing that out! :)