Hi all
I noticed [pix_coordinate] behaves different in os x and linux. In patch 02.TexCoord, the texture is repeated in Linux and in osx it looks clipped. I wonder if this object is broken or there is a new syntax for the values ?
Saludos
Mirko
Rectangle textures do not have the option to repeat only clamp. You can force power-of-two textures by sending a 'mode 0' to pix_texture, but be aware of the performance hit when using power-of-two textures.
cgc
On Oct 19, 2004, at 2:47 AM, Mirko Petrovich wrote:
Hi all
I noticed [pix_coordinate] behaves different in os x and linux. In patch 02.TexCoord, the texture is repeated in Linux and in osx it looks clipped. I wonder if this object is broken or there is a new syntax for the values ?
Saludos
Mirko
GEM-dev mailing list GEM-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/gem-dev
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.
Thanks, that did the trick. One thing I didn't understand is what do you mean when you say "rectangle textures" ? And which textures can be repeated ?Is this documented somewhere ? Thanks again for your answer, and congratulations, gem works great in osx.
saludos
Mirko
On Oct 19, 2004, at 10:24 AM, chris clepper wrote:
Rectangle textures do not have the option to repeat only clamp. You can force power-of-two textures by sending a 'mode 0' to pix_texture, but be aware of the performance hit when using power-of-two textures.
cgc
On Oct 19, 2004, at 2:47 AM, Mirko Petrovich wrote:
Hi all
I noticed [pix_coordinate] behaves different in os x and linux. In patch 02.TexCoord, the texture is repeated in Linux and in osx it looks clipped. I wonder if this object is broken or there is a new syntax for the values ?
Saludos
Mirko
Mirko Petrovich wrote:
Thanks, that did the trick. One thing I didn't understand is what do you mean when you say "rectangle textures" ? And which textures can be repeated ?Is this documented somewhere ?
originally openGL only supported textures which sizes where power-of-2. e.g.: you could texture an image with a size of 256x256 pixels; but when you tried to texture an image that was 100x100 (or 320x240) this would not work.
this limitation is very unpractical, especially when working with videos (which tend to have dimensions like 320x240); therefore the openGL-standard has been extended to support textures of any dimension: these are called "rectangle textures" in openGL-speak. unfortunately they do not perform exactly like the old 2^n-textures ("normalized" you call them); e.g. "repeat" does not work, only "clamp", texture coordinates are completely different,...
documentation can be found in the openGL-standard ;-) seriously, the help-patch for [pix_texture] mentions this limitation.
Thanks again for your answer, and congratulations, gem works great in osx.
good to hear.
mfg.as.dr IOhannes
On Oct 20, 2004, at 4:06 AM, IOhannes m zmoelnig wrote:
Mirko Petrovich wrote:
Thanks, that did the trick. One thing I didn't understand is what do you mean when you say "rectangle textures" ? And which textures can be repeated ?Is this documented somewhere ?
originally openGL only supported textures which sizes where power-of-2. e.g.: you could texture an image with a size of 256x256 pixels; but when you tried to texture an image that was 100x100 (or 320x240) this would not work.
this limitation is very unpractical, especially when working with videos (which tend to have dimensions like 320x240); therefore the openGL-standard has been extended to support textures of any dimension: these are called "rectangle textures" in openGL-speak. unfortunately they do not perform exactly like the old 2^n-textures ("normalized" you call them); e.g. "repeat" does not work, only "clamp", texture coordinates are completely different,...
documentation can be found in the openGL-standard ;-) seriously, the help-patch for [pix_texture] mentions this limitation.
OK, now I understand, thanks for your explanation. But in Linux repeat "works" for rectangle textures (I guess [pix_texture] resizes automatically), and there's no difference with "mode" messages (there's only mention of "quality" messages in help-patches, that's why I was asking for documentation).
Thanks again for your answer, and congratulations, gem works great in osx.
good to hear.
well, it works great in Linux too ;-)
saludos from Chile
Mirko
Mirko Petrovich wrote:
On Oct 20, 2004, at 4:06 AM, IOhannes m zmoelnig wrote:
OK, now I understand, thanks for your explanation. But in Linux repeat "works" for rectangle textures (I guess [pix_texture] resizes automatically), and there's no difference with "mode" messages (there's only mention of "quality" messages in help-patches, that's why I was asking for documentation).
are you sure you are using the help-patches from 0.90 ?? there should be a lot in there (like mentioning the rectangle stuff)
even under linux rectangle textures work as they should (e.g.: no repetition) BUT: if your gfx-card does support rectangle-textures AND gem has been compiled apropriately (e.g. by using nvidia's openGL-header files) rectangle-textures will be used for non-2^n images. (meaning: no "repeat", ...) if one of these conditions is not true, a tricky hack is used to display the non-2^n images as if they were 2^n-sized (the trick is using sub-textures) which gives some other problems (esp. performance penalties); as this is basically "normalized" textures, wrapping will work.
easy, isn't it ?
well, it works great in Linux too ;-)
mfg.as.dr IOhannes