Message 1 of 1
Transparent Front Faces

Not applicable
01-16-2010
02:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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:
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( int i=0; i < nEles; ++i ){
IRenderElement* pEle = sc.GetRenderElement(i)
if( pEle ) {
MaxRenderElement* pMaxEle = (MaxRenderElement*)(pEle->GetInterface( MaxRenderElement::IID ))
if( pMaxEle && pMaxEle->IsEnabled() ){
pMaxEle->PostIllum( sc, ip )
}
}
}
sc.out.c = ip.finalC;
sc.out.t = ip.finalT;