Re: Color with PFGS_OFF

New Message Reply Date view Thread view Subject view Author view

Allan Schaffer (aschaffe++at++shark.paris.sgi.com)
Mon, 13 Feb 1995 10:49:22 +0100


On Feb 10, 10:46am, Nathaniel Bletter wrote:
>
> When I load 'things.sv' from the demo models
> (~Performer/data/things.sv) directory that comes with Performer, the
> model has a lot of color. But when I traverse the scene graph, all
> the GeoSet's have color binding set to PFGS_OFF. The man pages says
> this means that the color is inherited, but where is it inherited
> from if I'm checking every GEODE with a pfuTraverser function?

I believe that the things.sv model gets its colors from lighting; I
notice that the colors become all green (which happens to be the
color of the ground plane) if I turn lighting off from within
perfly. A quick check of the file itself confirms that a number of
materials are defined:

[...]
material 53 0 0 0.2 0 0 0.333333 0.0666667 0.4 1 7.29927 0 0 0
[...]
model torus1
material 53
backface on
tmeshn 40
76.6932 7.04803 -7.19339 0.644833 0.691513 0.325577
76.2781 7.33482 -7.22319 0.388037 0.868971 0.307109
[...]

> Can pfDCS nodes have color? How can I access it?

No, libpf objects (DCS's, Layers, Geodes, and so on) do not have
color or other "rendering state" attributes like texture, material,
etc. Rendering & state elements are encapsulated into the GeoSet
and GeoState.

Allan

-- 
Allan Schaffer
Silicon Graphics
aschaffe++at++sgi.com
http://reality.sgi.com/employees/aschaffe

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:50:57 PDT

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