Hello, >> >> Thanks! Looking at the log I've noticed that at one point this changes: >> >> from: glClearDepth(1.000000) to: glClearDepth(0.000000) >> >> >> >> So the problem is that you are clearing the depth buffer with the value >> >> for >> >> objects 'in' the near plane and nothing will pass the depth test >> >> afterward. >> >> Do you at some point change the clear depth of a background perhaps? >> >> >> > >> > Yes, I changed the clear Depth. But this does just effects, that the values >> > after the near-plane is behind the geometry are not '0' but '255'. >> > >> > It does not affect, that the image values are not changing after that. >> >> Hm, not sure I follow on this one. ClearDepth will change the value the depth >> buffer is cleared to. If you set it to 0, with the usual GL_LEQUAL depth >> test, >> only the pixels on the near plane will be drawn, everything else will be >> invisible. >
I guess that the packed depth-/stencilbuffer does not yet clear the depth and stencil buffer with their specific clear values seperated. Right now it might clear the entire buffer with the depthvalue. This is not the solution for my problem, but it could be another problem for my rendering. I didn't find the code for the buffer-clearing, but I think the functionality for the packed buffer might be missing. Would you tell me where the code is, or take a look at the part? >> > Perhaps I might describe the behaviour again, I could have made it not >> > clear >> > enough. >> > >> > I start my program and setup the scenegraph. Then I render the scene 4 >> > times >> > in one function, with different states. After the 3rd rendering I print out >> > the stencil values. >> > >> > When I first start the rendering the image shows, what I expect. Then I >> > render more times with different near plane values and the image does not >> > change (but it should) until i reach the point, where the nearplane is >> > beyond >> > the geometry. Then the buffer shows just '255'. >> > >> > After that I change the nearplane value back to where the geometry should >> > be >> > visible, but nothing happens with the image. >> > >> > I hope this helps a bit to understand what I mean. >> > >> > I thougt it could be, that I forget to change the States to the standard >> > values after rendering my 4 times, but I can't explain the sudden change, >> > when the nearplane gets behind the geometry, with that explanation. >> >> Do you think there is a way for us to get something that demonstrates this >> algorithm? A cur-down version of your program, or maybe you can just >> cut-n-paste >> the core into an example program? We're really having a hard time seeing >> where >> this is supposed to go. >> > > > I uploaded my class at http://drop.io/r87kp1w > I hope it helps to understand what I want and what does not work. Thanks, Constantin ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users