[Ves] Transparency

David Thompson david.thompson at kitware.com
Fri Mar 1 18:18:20 EST 2013


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?)

	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




More information about the Ves mailing list