Re: setting texture coordinates

New Message Reply Date view Thread view Subject view Author view

AnitaKishore (kishore++at++electrogig.com)
Wed, 28 Feb 1996 08:39:02 -0800


On Feb 28, 4:59pm, Robert Webb wrote:
> Subject: Re: setting texture coordinates
> AnitaKishore <kishore++at++electrogig.com> wrote:
>
> > I am doing texture coordinate translation in the DRAW process by obtaining
> > the current coordinates, updating them as needed and setting it back again
> > on to its geoset. I want to know if there is a way to do this from the APP
> > process too. I have tried following the same procedure in the APP process,
> > but the new coordinates do not take effect. I thought it would be possible
> > because initially all geometry is created and assigned texture coordinates
> > from the APP process. So why can't I change it later on from within the
same
> > process?
>
> Ah, your array of texture coordinates must be allocated from the shared
> arena with pfMalloc() before pfConfig(). After the processes are forked off
> with pfConfig(), they then each have their own copy of all variables, so
> arrays that are not in shared memory will be copied. So in your APP you are
> not changing the same array as the DRAW is using. You must also be sure you
> allocate the array before pfConfig() because if it is done after, only the
> APPs local copy of the pointer to the array will be set top point at the
> right place.
>
> Was this the problem?
>
> Rob.
>

Well, my simple question is:

        Is it possible to update texture coordinates of a particular
geoset from the APP process? If so, then how?

thanks

-anita

-------------------------------------------------------------------------
Anita Kishore
kishore++at++electrogig.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:52:27 PDT

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