Hi Andrew,

You should take a look at the shader code within the skydome class as I
believe that it overrides the alpha channel and sets it to 1. This is due to
the alpha channel being used for the glare effect in osgOcean, if you wish
to use a transparent texture you should set it to the alpha of the texture.

Regards,

Kim.

2009/12/29 Trajce Nikolov <[email protected]>

> Hi Andrew,
>
> get the stateset of the skydome and:
>
> apply transparent osg::Material;
> apply Blend
> set the renderbin to Transparent
>
>
> Nick
>
> http://www.linkedin.com/in/tnick
> Sent from Devlet, Ankara, Turkey
>
> On Thu, Oct 29, 2009 at 10:51 AM, Andrew Xie <[email protected]> wrote:
>
>> Hi,
>> i am new to graphics programming.I used osgOcean's skydome in my project
>> ,it works very well.But now i want to transparency the skydome ,how to do
>> that?Any suggestions are greatly appreciated
>>
>> Thank you!
>>
>> Cheers,
>> Andrewxie
>>
>> ------------------
>> Read this topic online here:
>> http://forum.openscenegraph.org/viewtopic.php?p=18844#18844
>>
>>
>>
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> [email protected]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to