Re: [Flightgear-devel] Rendering passes confusion - again

2012-08-11 Thread Frederic Bouvier
> > If you want to experiment, try to change line 668 of renderer.cxx, > and change : > > camera->setClearMask(GL_DEPTH_BUFFER_BIT); > > to : > > camera->setClearMask(GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); By the way, the far camera being rendered before the near camera, I don't see ho

Re: [Flightgear-devel] Rendering passes confusion - again

2012-08-11 Thread Frederic Bouvier
Hi Thorsten, > I still haven't given up on the idea of 'masking' the terrain pixel > shading by the cockpit, since even a very simple mask easily makes > the system 50% faster for me. Lauri has kindly given me some > instructions on how to use the stencil buffer - so the idea was to > start by fil

[Flightgear-devel] Rendering passes confusion - again

2012-08-11 Thread Renk Thorsten
I still haven't given up on the idea of 'masking' the terrain pixel shading by the cockpit, since even a very simple mask easily makes the system 50% faster for me. Lauri has kindly given me some instructions on how to use the stencil buffer - so the idea was to start by filling the stencil buff