pfPrint reporting vertex colors

New Message Reply Date view Thread view Subject view Author view

Scott Herod (herod++at++evt.com)
Wed, 15 Jul 1998 14:06:07 -0600


I was playing with making database loaders using pfdBuilder
and found what I think might be a minor problem with pfPrint's
reporting of node colors. I'm drawing a square with red
on one corner, green on the opposite corner and a blend
between the two (exactly as is done in pfsponge.c). I'm
also setting the alpha to 0.6 (and the blue value is fixed
at 0.1). The square is drawn correctly but pfPrint(node...)
provides the following output:

Prim Normal 0: NX: 0.000000 NY: 0.000000 NZ: 1.000000
Coord 0: X: 3.000000 Y: 3.000000 Z: 0.000000
Color 0: R: 0.900000 G: 0.900000 B: 0.100000 A:
0.600000
Coord 1: X: 0.000000 Y: 3.000000 Z: 0.000000
Color 1: R: 0.600000 G: 0.100000 B: 0.900000 A:
0.100000
Coord 2: X: 0.000000 Y: 0.000000 Z: 0.000000
Color 2: R: 0.100000 G: 0.600000 B: 0.100000 A:
0.100000
Coord 3: X: 3.000000 Y: 0.000000 Z: 0.000000
Color 3: R: 0.100000 G: 0.100000 B: 0.600000 A:
0.900000

It appears that the pointer to the color array is only incremented
by 3 rather than 4 for each vertex. Color 1's red value is actually
the alpha value of color 0 and so on.

This is with performer 2.2 on O2.

Scott Herod
herod++at++evt.com
=======================================================================
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:57:42 PDT

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