Setting colour of lines to full white

New Message Reply Date view Thread view Subject view Author view

From: Roy Ruddle (Ruddle++at++Cardiff.ac.uk)
Date: 11/09/2000 01:17:27


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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Nov 09 2000 - 01:17:44 PST

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