Painting nodes black

New Message Reply Date view Thread view Subject view Author view

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


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:54:11 PDT

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