Re: Calling pfGeoSet::setAttr Twice

New Message Reply Date view Thread view Subject view Author view

From: c.mottram (ucftchr++at++ucl.ac.uk)
Date: 10/19/2000 01:31:54


I found something vaguely similar when repositioning vertices on an Onyx2
machine.
Try using geoset->setDrawMode( PFGS_COMPILE_GL, PF_OFF); after you change
the colour,
and check the man page for detail, I might be completely barking up the
wrong tree.
Chiron
At 03:07 PM 10/18/00 -0400, you wrote:
>I am trying to change the color of an object. The object was a
>Wavefront (.obj) file loaded with pfdLoadFile and when I do the
>following, it does not redraw as the new color. I can read back the
>data using pfGeoSet::getAttrLists and it shows that the values are set
>to the new color.
>
>pfGeode *t;
>pfGeoSet *tt;
>pfVec4 *color;
>
>t = (pfGeode*)obj;
>tt = t->getGSet(0);
>color = new pfVec4(1.0,0.0,0.0,1.0);
>tt->setAttr(PFGS_COLOR4,PFGS_OVERALL,(void*)color,NULL);
>
>Also, I get the same thing with pfGeoSet::setDrawMode setting the
>wireframe mode and it then not being able to turn off.
>
>What am I doing that does not allow the shape to realize that it has
>been changed and need to redo its color?
>
> -chad
>
>-----------------------------------------------------------------------
>List Archives, FAQ, FTP: http://www.sgi.com/software/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 2b29 : Thu Oct 19 2000 - 01:32:24 PDT

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