Re: setting texture coordinates

New Message Reply Date view Thread view Subject view Author view

Sharon Clay (src++at++rose)
Wed, 28 Feb 1996 09:02:52 -0800


+>---- On Feb 28, 8:39am, AnitaKishore wrote:
> Subject: Re: setting texture coordinates
->From guest++at++holodeck Wed Feb 28 08:49:33 1996
->From: "AnitaKishore" <kishore++at++electrogig.com>
->Date: Wed, 28 Feb 1996 08:39:02 -0800
->In-Reply-To: Robert Webb <robertw++at++wormald.COM.AU>
-> "Re: setting texture coordinates" (Feb 28, 4:59pm)
->X-Mailer: Z-Mail (3.2.0 26oct94 MediaMail)
->To: Robert Webb <robertw++at++wormald.COM.AU>,
-> Performer mailing list <info-performer++at++sgi.sgi.com>
->Subject: Re: setting texture coordinates
->
->On Feb 28, 4:59pm, Robert Webb wrote:
->> Subject: Re: setting texture coordinates
->> AnitaKishore <kishore++at++electrogig.com> wrote:
->>

->
->Well, my simple question is:
->
-> Is it possible to update texture coordinates of a particular
->geoset from the APP process? If so, then how?
->

Yes.

You need the texture coordinates and the pfGeoSet are in shared
memory. You also have to be careful that the variables you are using
to old the pointers to these shared locations are really initialized and valid
in both processes (or put them in your shared memory area as well -- like the
perfly ViewState structure). As Rob suggested, the base pointer to your shared
memory area must be initialized before pfConfig() so that your forked
processes will have the pointer.
Performer will be simply pointing at your same shared
pfGeoSet with your shared texture coordinate array in the draw process.
Our guess is that somehow you have gotten caught with a separate copy of
texture coordinates, or possibly a bogus pfGeoSet pointer, so that
when you change data in the APP, it is not really the same memory being looked at by the
DRAW. Can you verify that after you edit an array and pfGeoSet in the APP process
that you see the changed data in the draw process and that your draw process
pfGeoSet is really pointing at the correct array?

src.

-- 
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com  (415) 933 - 1002  FAX: (415) 965 - 2658  MS 8U-590
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++

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:52:27 PDT

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