Bad timing, I just saw the answers for my questions....
----- Original Message -----
From: "Wojciech Lewandowski" <[EMAIL PROTECTED]>
To: "osg users" <[EMAIL PROTECTED]>
Sent: Thursday, April 12, 2007 12:09 PM
Subject: Re: [osg-users] obscure state bug
I will join this discussion because it looks like we struggle with the same
problem. We are seeing similar issue with tree sprites placed in opaque
bin. We are using alpha ref to remove tree background from texture but
these backgrounds show up. Trees are then drawn as rectangles with black
areas around tree coronas.
Does it means the opaque bin rendering overrides AlphaFunc StateAttributes
? If so can we force use AlphaFunc for opaque objects ?
Cheers,
Wojtek Lewandowski
----- Original Message -----
From: "Robert Osfield" <[EMAIL PROTECTED]>
To: "osg users" <[EMAIL PROTECTED]>
Sent: Thursday, April 12, 2007 10:40 AM
Subject: Re: [osg-users] obscure state bug
Hi Marc,
This isn't a bug, rather it looked like it was working before because
the problem was masked out, quite literally. Originally the OSG set
turned on glAlphaFunc (osg::AlphaFunc) for both transparent and opaque
bins, this allow objects dropped into the opaque bin to clip out
fragments that had an alpha of 0.0.
According to NVidia docs on making effective use of early z culling of
fragments one shouildn't use AlphaFunc for opaque objects, so I
changed the OSG across to only enable AlphaFunc for the transparent
bin. For a well conditioned database this won't result in any
artifacts.
However, if objects that shouldn't have been placed in the transparent
bin, but instead were dropped in the opaque bin, the not only will the
sort order be different but the AlphaFunc will be switched off, both
of which you might be noticing.
Robert.
On 4/11/07, Marc Bernatchez <[EMAIL PROTECTED]> wrote:
Any progress on this bug? I don't know if it is the bug I'm seeing but
it roughly started when I went to OSG 1.2 and appears to only show up
with OpenFlight models. I noticed some strange transparency bugs as I
went 1.2. Some objects that were totally transparent got half visible
while other opaque objects would completely be culled off when they were
going in the left most region of the FOV.
Recently, I did some tests on another FLT model and some opaque objects
would suddenly disappear when a transparent object would be in front of
them. Here again, the opaque object disappearance is Dependant on its
position in the field of view. If it is on the left of the FOV, it bugs,
but will be fine other wise.
Any thoughts and updates on the previously mentioned bug?
Thanks,
--
=====================================
Marc Bernatchez
Candidat au Ph.D.
Ecole Polytechnique de Montreal
Montreal, QC, CANADA
=====================================
Virtual Reality web site, VResources:
http://vresources.org
=====================================
_______________________________________________
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/
-------------------------------------------------------------
This mail was scanned by BitDefender
For more informations please visit http://www.bitdefender.com
-------------------------------------------------------------
-------------------------------------------------------------
This mail was scanned by BitDefender
For more informations please visit http://www.bitdefender.com
-------------------------------------------------------------
_______________________________________________
osg-users mailing list
[EMAIL PROTECTED]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
-------------------------------------------------------------
This mail was scanned by BitDefender
For more informations please visit http://www.bitdefender.com
-------------------------------------------------------------
-------------------------------------------------------------
This mail was scanned by BitDefender
For more informations please visit http://www.bitdefender.com
-------------------------------------------------------------
_______________________________________________
osg-users mailing list
[EMAIL PROTECTED]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/