You are "missing" that the old PTB was implemented using M$-DirectX,
whereas the new one is based on OpenGL, and that the new operating
systems are phasing out clut support.
DirectX has an interface to do clut animation, but you can't use the
DirectX interface to change the clut of OpenGL windows. OpenGL itself
used to have a mode of operation called Index color mode which allows
to do clut animation. However, PTB-3 doesn't implement support for
this mode and it would be lots of work to implement it. OS-X doesn't
support this mode either, but on OS-X you can do clut animation by use
of the gamma tables, same for Linux. Only M$ decided to
implement a
few completely brain-dead restrictions into their gamma table
interface. However they seem to support the OpenGL way of clut
animation, but i would have to spend lots of time to implement a
feature that is only supported or needed on M$-Windows, incompatible
to the other OSes implementation and pretty pointless for most
applications anyway because you can do pretty well without cluts on
the new PTB. Also we wouldn't know how well it would work on Windows
and we don't know about the surprises that Windows Vista will bring.
It is not impossible, not even too difficult (i think) to reimplement
the functionality of cluts on modern graphics hardware by use of pixel
shaders, but the interface would be different from the current one so
you would have to rewrite your code significantly to use it.
In the end if your code heavily relies on clut animation, there is no
good reason to switch from PTB-2 to PTB-3, because with
clut
animation, nearly all of the interesting new features of PTB-3 would
be disabled anyway.
best,
-mario
--- In
psychtoolbox@ yahoogroups. com, "rdbeer" <rdbeer@...> wrote:
>
> --- In
psychtoolbox@ yahoogroups. com, "Mario Kleiner"
> <mario.kleiner@ > wrote:
> >
> > None. There is no known workaround for this on M$-Windows at the
> > moment and nobody is working on any workaround. You can either try to
> > rewrite your code to work without lookup table animation or stick to
> > the old Windows PTB 2.54 for now.
> Hi Mario,
> thanks for the reply. I don't understand, though...
>
> Screen('SetClut' ) _did_ work on ms windows. Maybe there are reasons
> why it was not ideal, but the fact that it worked means there must
be
> some workaround possible.
>
> What am I missing?
>
> Regards,
> Dirk
> >
> > -mario
> >
> > --- In
psychtoolbox@ yahoogroups. com, "rdbeer" <rdbeer@> wrote:
> > >
> > > Hello,
> > >
> > > much of our code uses lookup table animation. With the older version
> > > of psychtoolbox, we did that using Screen('SetClut' ).
> > >
> > > I am trying to upgrade our code. My experiments with 'LoadCLUT' and
> > > 'LoadNormalizedGamm aTable', as well as the documentation, make it
> > > clear that these cannot be used for lookup table animation on ms
> > > windows machines.
> > >
> > > What functions should we use?
> > >
> > > thanks,
> > > Dirk
B.
> > >
> >
>