[osg-users] Compositing multiple osg::Image w/ alpha channels

Daniel Martin daniel.martin at gd-ms.com
Wed Jul 13 04:32:15 PDT 2016


Hi,

I have multiple osg::Images, each one has a transparent background. When compositing them onto a background image(using copySubImage), this transparent background is not respected and is instead filled in with white, looking fairly ugly. 

I do not see any other methods related to compositing images, other than mix(). But, because the images are not the same size, mix() will not work. 

Does some method exist that would respect the transparent backgrounds, or will I have to roll my own (not that it would be difficult, but I also don't want to reinvent the wheel)

Thank you!

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68113#68113








More information about the osg-users mailing list