[PD] gem : using texture for vertex position

cyrille henry cyrille.henry at la-kitchen.fr
Sun Sep 9 17:56:03 CEST 2007


hello,

i'm tring to do more physics on the GPU, and i'm facing some problems.
simulation results can be compute on texture (just like the wave example i send month ago), so now i'd like to use this texture to move vertex.

if i acces to a texture with a vertex shader just like on a fragment shader, then it's very slow.
(cpu is at 100%)

i found that : 
"vertex textures must be 32-bit-per-component textures, floating point, and they can't use any filtering mode except nearest filtering."

i tryed "quality 0" to pix_texture in order to have the nearest filtering mode, but i'm not sure about the 32 bit per component texture.
is it the default on Gem?
if no, is it possible to change it?

anyone already have an exemple how to use a texture to displace vertex?


thanks

cyrille




More information about the Pd-list mailing list