Re: Instacing a model with different material

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Mon, 11 Aug 1997 15:21:05 -0400


On Aug 9, 10:33am, Byungsung Cho wrote:
> Subject: Instacing a model with different material
> Dear performers,
>
> I am trying to make several instances of the same model, but assign
> different colors on
> each instance. I want a model file loaded only one and make instances of
> the model node
> with different material. However, pfClone share geometry and thus does
> not work
> for my purpose. Since cloning do not work, I think I should copy the
> whole node.
> I looked up pfCopy on reference manual and it seems copy only the first
> level of references
> in addition to unabling to figure out how use the function in C++.
> Is there an easier way to copy a node including geometry?
>
>-- End of excerpt from Byungsung Cho

Try calling pfFlatten on a top parent node that has multiple instances as
children. pfFlatten will make multiple copies of instanced geometries for you.

-- 
Nicolas Gauvin              CAE Electronics Ltd., 8585 Cote De Liesse
3D Graphics Software        Saint-Laurent, Quebec, Canada, H4L-4X4
nicolas++at++cae.ca              Tel: (514) 341-2000 x2275, Fax: (514) 340-5496 
=======================================================================
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:43 PDT

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