Changing Material again

New Message Reply Date view Thread view Subject view Author view

Marco Crocetta (onyx++at++datamat.it)
Tue, 14 Mar 95 12:47:16 MET


Hi,

I'm almost reach my goal...
I've been following the suggestion I had about separating GeoStates
for the various objects (thanks src) (opaque & trasparent).

The problem (sigh!) is that in order to make transparency
works I need to call
   
        ...

        pfMtlAlpha(material,1.0);
         pfMtlColorMode(material, PFMTL_BOTH, PFMTL_CMODE_COLOR);
        pfGStateAttr(state,PFSTATE_FRONTMTL,material);
        pfGSetGState(gd,state);

        ...

for my transparent node.

Now pfMtlColorMode with the mode PFMTL_CMODE_COLOR
seems to have the effect of disabling the primitive colour...
Where is my mistake?

Thanks in advance

--------------------------
Marco Crocetta
DATAMAT SpA, Rome
e-mail: onyx++at++datamat.it
-------------------------


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:04 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.