[osg-users] How is this foliage artifact called and how to fix it?

Alexandre Vaillancourt alexandre.vaillancourt.list at gmail.com
Fri Apr 22 06:18:24 PDT 2016


Hello all!

As it can be seen in the screenshot, I have issues with the foliage of the
trees.

This occurs when the both the 'back' (the tree-line, or tree background)
and 'front (the trees)' items have some transparency in the texture, and
that the 'back' item is considered 'in front' because of the angle and
position of the camera.

I am wondering how is this artifact called, and how could I fix it (aside
from moving the 'front' item, i.e. the tree)?

Things I noticed or made sure of:
- The leaves texture has no semi-opaque (semi-transparent) pixels, it's
only either completely transparent, or completely opaque
- Same for the 'back' polygons (the tree-line)
- It's not the whole quad that is creating the artifact, but only the
surrounding of the opaque pixels (the leaves)

Thanks!

--
Alexandre Vaillancourt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160422/5cc95499/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: issue_foliage.png
Type: image/png
Size: 923606 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160422/5cc95499/attachment-0002.png>


More information about the osg-users mailing list