Hi again,
Well I think this is probably another OSX bug specific to my Nvidia Geforce2MX card. I when I try and texture a sphere using pix_videoDarwin the texture seems to consist of a single pixel (the 0,0 pixel actually) And that value is applied to the whole object. I've tried it with pix_texture and pix_texture2 without any changes. It also happens with the cone geo. Note that this does not happen with pix_film. I tried tinkering with pix_coordinates without any luck.
[gemhead] | [pix_videoDarwin] | [pix_texture2] | [sphere]
Ben
pix_texture and pix_texture2 are in fact the same object now, and pix_videoDarwin is now aliased to pix_video. you need to tell pix_texture if you are using power of 2 and subtexturing by sending it a 'mode 0/1' message. this should probably be more descriptive. the problem you now have with the subtextured images is that it won't fully wrap around the sphere. i think the texture unit is subject to matrix transforms so you might be able to scale it with those.
cgc
Quoting ben@ekran.org:
Hi again,
Well I think this is probably another OSX bug specific to my Nvidia Geforce2MX card. I when I try and texture a sphere using pix_videoDarwin the texture seems to consist of a single pixel (the 0,0 pixel actually) And that value is applied to the whole object. I've tried it with pix_texture and pix_texture2 without any changes. It also happens with the cone geo. Note that this does not happen with pix_film. I tried tinkering with pix_coordinates without any luck.
[gemhead] | [pix_videoDarwin] | [pix_texture2] | [sphere]
Ben
GEM-dev mailing list GEM-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/gem-dev
"mode 0" to pix_texture did the trick.
The video image is wraped on the sphere now, but the surface is not completely covered, there is still about 1/3 of the surface left black. (note that this does not happen with power of 2 textures, which totally cover the sphere surface)
Is there a way of pix_texture checking if the texture is power of 2 and changing the mode on the fly?
I still do all my images/video as power of 2 anyhow (mostely because I prefer aspect ratios such as 1:1 and 2:1 rather than 16:9 and 4:3.)
Thanks Ben
pix_texture and pix_texture2 are in fact the same object now, and pix_videoDarwin is now aliased to pix_video. you need to tell pix_texture if you are using power of 2 and subtexturing by sending it a 'mode 0/1' message. this should probably be more descriptive. the problem you now have with the subtextured images is that it won't fully wrap around the sphere. i think the texture unit is subject to matrix transforms so you might be able to scale it with those.
cgc
Quoting ben@ekran.org:
Hi again,
Well I think this is probably another OSX bug specific to my Nvidia Geforce2MX card. I when I try and texture a sphere using pix_videoDarwin the texture seems to consist of a single pixel (the 0,0 pixel actually) And that value is applied to the whole object. I've tried it with pix_texture and pix_texture2 without any changes. It also happens with the cone geo. Note that this does not happen with pix_film. I tried tinkering with pix_coordinates without any luck.
[gemhead] | [pix_videoDarwin] | [pix_texture2] | [sphere]
Ben
GEM-dev mailing list GEM-dev@iem.at http://iem.at/cgi-bin/mailman/listinfo/gem-dev