Hello Dirk,

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

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


I'm very grateful for your plenty efforts to help me.

Thank you all,
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

Reply via email to