Re: materials in Performer 2.0

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++plague.reading.sgi.com)
Thu, 15 Jun 1995 21:23:47 +0100


> Will Performer 2.0 allow for different material properties
> in triangular meshes? I.e., can one vertex be on type 1
> material and another vertex be of type 2 material? It seems
> like this would be a really great feature to have...

The binding of a material is fairly expensive making this an unplesant
prospect, but some of the functionality you require exists at the moment.
You can modify a selected material property on a per vertex basis. Simply
make set the performer material mode to the material component you want
to modify by calling:

pfMtlColorMode()

and add colour per vertex information to your geosets, for example to modify
material diffuse (& alpha)per vertex call:

pfMtlColorMode(perf_mat, PFMTL_BOTH, PFMTL_DIFFUSE);

-- 
Angus Dorbie,
The Reality Centre,
Silicon Graphics Ltd, UK
dorbie++at++reading.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:51:35 PDT

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