Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Transparent Front Faces

Transparent Front Faces

Anonymous
Not applicable
217 Views
0 Replies
Message 1 of 1

Transparent Front Faces

Anonymous
Not applicable
How I can render the front faces of an object transparent?
I tried to set sc.out.t to Black but it acts like matte...
How can I get the color of the rendered fragment behind my object?

I tried:

IllumParams ip;
ip.hasComponents != HAS_OPACITY;
//sc.out.t = tmp;
int nEles = sc.NRenderElements()
for&#40; int i=0; i < nEles; ++i &#41;{
IRenderElement* pEle = sc.GetRenderElement&#40;i&#41;
if&#40; pEle &#41; {
MaxRenderElement* pMaxEle = &#40;MaxRenderElement*&#41;&#40;pEle->GetInterface&#40; MaxRenderElement::IID &#41;&#41;
if&#40; pMaxEle && pMaxEle->IsEnabled&#40;&#41; &#41;{

pMaxEle->PostIllum&#40; sc, ip &#41;
}

}
}

sc.out.c = ip.finalC;
sc.out.t = ip.finalT;
0 Likes
218 Views
0 Replies
Replies (0)