[Ves] Transparency

Aashish Chaudhary aashish.chaudhary at kitware.com
Sat Mar 2 01:19:48 EST 2013


On Fri, Mar 1, 2013 at 6:18 PM, David Thompson
<david.thompson at kitware.com>wrote:

> Thanks, Joachim. That fixed it.
>
> Is there a good place for me to document this? (Would a doxygen comment
> for vesKiwiPolyDataRepresentation::setColor() and/or vesMapper::setColor()
> be appropriate?)
>

Thanks Joachim. Putting this note right in the code would be ideal I think.



>         David
>
> > Set the render bin of your representation/actor to transparent so it
> > will be rendered after opaque objects.
> > Then you will Need to disable the depth writing for those transparents
> actors :
> > Try something like that :
> >
> > vesSharedPtr<vesDepth> d = vesSharedPtr<vesDepth>(new vesDepth());
> > d->setWriteMask(false);
> > rep->actor()->material()->addAttribute(d);
> >
> >
> > Joachim
> >
> > Le 1 mars 2013 à 23:36, David Thompson <david.thompson at kitware.com> a
> écrit :
> >
> >> Hi all,
> >>
> >> I've got a vesKiwiPolyDataRepresentation on which I call
> setColor(1,1,1, 0.3) but VES does not appear to render the translucent
> objects last with depth testing off (although blending does appear to
> happen correctly). Is this a bug or am I responsible for doing something
> special with the scene graph (and if so, what)?
> >>
> >>   Thanks,
> >>   David
> >> _______________________________________________
> >> Ves mailing list
> >> Ves at public.kitware.com
> >> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>
> David Thompson
> R&D Engineer – Kitware, Inc.
> david.thompson at kitware.com
> (919)869-8868
> Suite G-4
> 101 E. Weaver St.
> Carrboro, NC 27510
>
> _______________________________________________
> Ves mailing list
> Ves at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>



-- 
| Aashish Chaudhary
| R&D Engineer
| Kitware Inc.
| www.kitware.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20130302/a7cb1c98/attachment-0002.html>


More information about the Ves mailing list