Painting nodes black
Bryan Wasileski (bwasileski++at++mdc.com)
Wed, 18 Dec 1996 07:00:50 -0600
Thanks to all those who responded to the issue rendering nodes
black....
The problem turned out to be rather simple and about 4
lines of code. For the views/channels I was concerned about, since I
cannot tolerate a lit background I never turned the lighting on. Since
the lighting was not turned on, setting the material properties to black had
no effect. The solution was just to turn on the lighting, call pfClear to
black (in lieu of a pfChannel::clear). In the pre draw for each node to be
rendered black, assign a black pfMaterial and then pfOverride. When the
node comes around which needs to be rendered normally, then just set it
back (i.e. turn off the pfOverride).
Thanks again.
- Bryan Wasileski
McDonnell Douglas Training Systems
St. Louis, MO
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:54:11 PDT