From: christopher.g.dorosky++at++lmco.com
Date: 11/09/2000 06:38:55
Your geoset has four direct appearance attributes (at least) not defined by the geostate. Texture coordinates, vertex coordinates, normals coordinates and colors.
Try setting the PFGS_COLOR3 in PFGS_PRIM mode to (1.0,1.0,1.0)
Look at the pfGeoSet man page for this. The command is setAttr.
It might be color4, in that case, use a 1.0 for alpha.
Christopher Dorosky
Lead Electronic Systems Engineer - Real Time Simulation
Lockheed Martin Missiles and Fire Control - Dallas
christopher.g.dorosky++at++lmco.com
972-603-2349
-----Original Message-----
From: Roy Ruddle [mailto:Ruddle++at++Cardiff.ac.uk]
Sent: Thursday, November 09, 2000 3:17 AM
To: info-performer++at++sgi.com
Subject: Setting colour of lines to full white
Hi there,
I'm trying to set the colour of some PFGS_LINESTRIPS to 100% white,
irrespective of their orientation and normal (which I've defined as
[0,0,1]).
I've tried applying a pfGeoState to the lines, with the following material
properties, but it has no effect:
gstate_wireline = new pfGeoState();
pfMaterial *mtl = new pfMaterial;
mtl->setColor( PFMTL_AMBIENT, 1.0, 1.0, 1.0 );
mtl->setColor( PFMTL_DIFFUSE, 1.0, 1.0, 1.0 );
gstate_wireline->setAttr( PFSTATE_FRONTMTL, mtl );
gstate_wireline->setAttr( PFSTATE_BACKMTL, mtl );
gset->setGState( gstate_wireline );
Are lines 'special' in this respect?
suggestions gratefully received
roy
-----------------------------------------------------------------------
List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2b29 : Thu Nov 09 2000 - 06:59:58 PST