[osg-users] How to remove the blue background color

tien dat tiendatbk at gmail.com
Thu Mar 26 15:07:22 PDT 2009


Dear Yun, Corry and Robert,
Thank you very much for your help. I tried Yun's suggestion and found that
it's the easiest way to do. Just set color to be black and alpha to be 0,
and you can have an object floating in the air with augmented display.
Best,
Dat

2009/3/26 Robert Osfield <robert.osfield at gmail.com>

> Hi Corry,
>
> 2009/3/25 Cory Riddell <cory at codeware.com>
>
>>  Yun's suggestion allows you to replace the blue color with another solid
>> color.
>>
>> If you want an image (I want a gradient), do something similar to osgHUD,
>> except draw first rather than last to put the image behind everything else.
>>
>
> The osghud or osgdistortion example are good places to start.  You
> bascially want one Camera to draw the background image, then another camera
> to draw the main 3D scene.  The first Camera will need to have it's
> RenderOrder to PRE_RENDER and for it to ClearMask so that is clears the
> depth and colour buffer, then the second Camera to have it's ClearMask set
> to just clear the depth buffer.
>
> Robert.
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090326/50f8c288/attachment-0003.htm>


More information about the osg-users mailing list