On Sun, 2009-03-08 at 23:22 +0000, evan.raskob [lists] wrote: > Hi guys, > > Trying to get sorted for my performance tomorrow - running into an > issue with textures. > > I'm trying to get the texture to shift by rows, without > interpolating, but can't seem to set the texture params properly. > What I want is each row in the texture image to shift a certain > amount, cleanly. Hard to describe, here's some code to show what I > mean, hopefully. (Also, I'm having a hard time getting the nurbs > plane on the screen properly... its geometry/location/scale is > different from a standard plane built using (build-plane)?) > > > (clear) > > (clear-colour (vector 0 0 0)) > (hint-unlit) > > ;----- load some texture > (define tex (load-texture "/Users/evan/cvs/tmpflx/fluxus/textures/ > tv.png")) > > ;--- set params to nearest - should give pixelization instead of > smooth interpolating? > (texture-params tex (list 'min 'nearest 'mag 'nearest 'wrap-t 'clamp)) > (clear-texture-cache) >
The first parameter to (texture-params) is the texture unit, not the texture id - if you're not doing multitexturing, just set it to 0 - which is the default texture unit. cheers, dave
