You can use the stencilbuffer to do that.

Google knows everything:

Visualizing overdraw via stencil in OpenGL:

http://www.excamera.com/articles/2/index.html

/Anders



On 4/18/07, Ovidiu Sabou <[EMAIL PROTECTED]> wrote:
I mean overdraw as in the fillrate killer. I want to visualize how many 
triangles are rasterized for each pixel.
It can be done   by enabling blending and drawing with a dark color but I was 
hoping for some magic(I think this would be a very useful tool for performance 
analysis) :)

Ovidiu



On 4/18/07, Gordon Tomlinson <[EMAIL PROTECTED]> wrote:
>
>
>
> HI
>
> Depends on what you mean by overdraw, but for starts look  at osgHud and 
examples this overlay many elements etc...
>
>
>
>
>
>
>  __________________________________________________________
> Gordon Tomlinson
>
> Email   :   [EMAIL PROTECTED]
> Website :  www.vis-sim.com  www.gordontomlinson.com
>
> __________________________________________________________
>
> "Self defence is not a  function of learning tricks
> but is a function of how quickly and intensely  one
> can arouse one's instinct for survival"
>  -Master  Tambo Tetsura
>
>
>
>
> ________________________________
From:  [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of  Ovidiu
Sabou
> Sent: 18 April 2007 11:51
> To: osg  users
> Subject: [osg-users] overdraw
>
> Hi everyone!
>
> Do you know an easy  way to visualize overdraw for a scene ?
>
>
> Ovidiu
>
>
> _______________________________________________
> osg-users mailing list
>  [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/




--


________________________________________________________________
Anders Backman               Email:    [EMAIL PROTECTED]
HPC2N/VRlab                  Phone:    +46 (0)90-786 9936
Umea university              Cellular: +46 (0)70-392 64 67
S-901 87 UMEA SWEDEN         Fax:      +46 90-786 6126
                              http://www.cs.umu.se/~andersb
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to