Re: Drawing a scene twice

New Message Reply Date view Thread view Subject view Author view

John Rohlf (jrohlf++at++tubes)
Fri, 6 May 94 12:13:59 PDT


>
> Hi All
>
>
> How does one replace current vertices' colors with new colors?
> (The database is originally in Flight format).
> I succeeded unbinding the texture coords, however binding new
> colours using the command
>
> pfGSetAttr(gd, PFGS_COLOR4, PFGS_OVERALL, Colour, NULL);
>
> where Colour is
>
> pfVec4 Colour = {rrr.rrr, ggg.ggg, bbb.bbb, aaa.aaa}
>
> (called through a db traversal using has pfuTraverse) resulted
> in a coloured scene which is a mixture of the previous color and
> the newly binded colour.
>
>

        I need more information. What does your traversal routine look
like? Maybe you're not finding all the pfGeoSets in your scene.
One concern is that "Colour" is not allocated out of shared memory
so that if you multiprocess you might have problems.


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:16 PDT

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