Re: Drawing a scene twice
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.
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:50:16 PDT