Re: IV-Loader and transparency

New Message Reply Date view Thread view Subject view Author view

Mark Lasersohn (laser++at++cowhouse.com)
Thu, 24 Jul 1997 17:46:28 -0400


Dirk Reiners wrote:
>
> Hi pfFolks,
>
> I have a problem using the IV-loader and transparent materials. Attached is a
> little file that illustrates the problem.
>
> It contains two objects, one of which (the red one) is transparent, the other
> (blue) one is opaque. Using ivview, that is. When using perfly both are
> transparent (remember to switch off antialiasing, otherwise multisample
> transparency using the same transparency value might hit you).
>
> Apparently for some reason the transparency value cannot be reset to 0 after it
> was set to another value. If I put the Cyl1 node before the Mat2 node
> everything works fine. But as I'm writing an export option for another biggish
> system I'd rather fix the import problem taht try to rearrange all my files.
>
> I'm using the libpfiv that was posted by Eric Chauvineau. Is there a later
> version or has anybody else encountered this problem and maybe fixed it?
>
> Thanks a lot
>
> Dirk
>
> --
> -- Dirk Reiners reiners++at++ecrc.de, reiners++at++igd.fhg.de
> -- ZGDV - AR Group http://www.igd.fhg.de/~reiners
> -- Arabellastr. 17 (ECRC)
> -- D-81925 Muenchen All standard disclaimers apply.
> -- Truth is stranger than fiction because fiction has to make sense.
>
> ---------------------------------------------------------------
-- 

Yup, it works as you described (Crimson VGXT) running Performer 2.0 - but I fixed it by using a explicit Material statement, instead of referencing a material declared earlier.

#Inventor V2.0 ascii

DEF ROOT Separator { Coordinate3 { point [ 1.0000000000 0.0000000000 -1.0000000000, -0.0000000437 1.0000000000 -1.0000000000, -1.0000000000 -0.0000000874 -1.0000000000, 0.0000000119 -1.0000000000 -1.0000000000, 1.0000000000 0.0000000000 1.0000000000, -0.0000000437 1.0000000000 1.0000000000, -1.0000000000 -0.0000000874 1.0000000000, 0.0000000119 -1.0000000000 1.0000000000, ] } DEF Mat1 Material { ambientColor 0.000 0.000 1.000 diffuseColor 0.000 0.000 1.000 specularColor 0.000 0.000 0.000 shininess 0.156 transparency 0.0 } DEF Cyl1 Separator { USE Mat1 IndexedFaceSet { coordIndex [ 3, 2, 1, 0, -1, 2, 3, 7, 6, -1, 3, 0, 4, 7, -1, 1, 2, 6, 5, -1, 0, 1, 5, 4, -1, 4, 5, 6, 7, -1, ] } } DEF Cyl2 Separator { Material { ambientColor 1.000 0.000 0.000 diffuseColor 1.000 0.000 0.000 specularColor 0.000 0.000 0.000 shininess 0.156 transparency 0.5 } MatrixTransform { matrix 1.00000 0.00000 0.00000 0.00000 0.00000 0.00000 1.00000 0.00000 0.00000 1.00000 0.00000 0.00000 2.00000 0.00000 0.00000 1.00000 } IndexedFaceSet { coordIndex [ 3, 2, 1, 0, -1, 2, 3, 7, 6, -1, 3, 0, 4, 7, -1, 1, 2, 6, 5, -1, 0, 1, 5, 4, -1, 4, 5, 6, 7, -1, ] } } }

Mark Lasersohn Cow House Productions laser++at++cowhouse.com http://www.cowhouse.com 330-569-7492 ======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


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:55:39 PDT

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