hello,
i've got a problem using vertexbuffer attribute : dimension is set to a wrong value.
when using the example 10.glsl/16.vertexbufer_attribute, "print_attributes" gives :
vb: program 0.5 vb: position 1003_position vb: attribute LightPosition 1003_LightPosition vb: attribute BrickColor 1003_BrickColor vb: attribute MortarColor 1003_MortarColor vb: attribute BrickSize 1003_BrickSize vb: attribute BrickPct 1003_BrickPct [gemvertexbuffer]: GLSL-ProgramID: 3 [gemvertexbuffer]: Attribute1: LightPosition [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 2 [gemvertexbuffer]: program_index: 1 [gemvertexbuffer]: Attribute2: BrickColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 3 [gemvertexbuffer]: Attribute3: MortarColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 4 [gemvertexbuffer]: Attribute4: BrickSize [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 5 [gemvertexbuffer]: Attribute5: BrickPct [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 4 [gemvertexbuffer]: program_index: 6 vb: print_attributes
in the shader code : attribute vec3 LightPosition; attribute vec3 BrickColor, MortarColor; attribute vec2 BrickSize, BrickPct;
so LightPosition is declare a vec3, but dimen is 2, BrickSize is declare a vec2 and dimen is 3, BrickPct is declare as vec2 and dimen is 4.
when adding a float attribute, I have : vb: program 0.5 vb: position 1003_position vb: attribute LightPosition 1003_LightPosition vb: attribute BrickColor 1003_BrickColor vb: attribute MortarColor 1003_MortarColor vb: attribute BrickSize 1003_BrickSize vb: attribute BrickPct 1003_BrickPct vb: attribute test 1003_test [gemvertexbuffer]: GLSL-ProgramID: 3 [gemvertexbuffer]: Attribute1: LightPosition [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 2 [gemvertexbuffer]: program_index: 1 [gemvertexbuffer]: Attribute2: BrickColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 3 [gemvertexbuffer]: Attribute3: MortarColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 4 [gemvertexbuffer]: Attribute4: BrickSize [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 1 [gemvertexbuffer]: program_index: 5 [gemvertexbuffer]: Attribute5: BrickPct [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 6 [gemvertexbuffer]: Attribute6: test [gemvertexbuffer]: size: 16 [gemvertexbuffer]: dimen: 4 [gemvertexbuffer]: program_index: 7 vb: print_attributes
strange...
anyhow, the result of the example 16 is not right : texture is distorted.
- is this example working for anyone? (i test with ubuntu 14.04 / nvidia and intel gpu) - is this example used to work for anyone? - can it be fixed? (i tried, but did not understand where the m_attribute.size() was set - maybe the problem is that it's never set!!!)
my current project is halted because of this problem. any help will be appreciated.
cheers c
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello Cyrille,
You can't use color, texture or normal to pass your attributes (maybe it is not enough) ? ++
Jack
Le 05/07/2015 22:50, Cyrille Henry a écrit :
hello,
i've got a problem using vertexbuffer attribute : dimension is set to a wrong value.
when using the example 10.glsl/16.vertexbufer_attribute, "print_attributes" gives :
vb: program 0.5 vb: position 1003_position vb: attribute LightPosition 1003_LightPosition vb: attribute BrickColor 1003_BrickColor vb: attribute MortarColor 1003_MortarColor vb: attribute BrickSize 1003_BrickSize vb: attribute BrickPct 1003_BrickPct [gemvertexbuffer]: GLSL-ProgramID: 3 [gemvertexbuffer]: Attribute1: LightPosition [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 2 [gemvertexbuffer]: program_index: 1 [gemvertexbuffer]: Attribute2: BrickColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 3 [gemvertexbuffer]: Attribute3: MortarColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 4 [gemvertexbuffer]: Attribute4: BrickSize [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 5 [gemvertexbuffer]: Attribute5: BrickPct [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 4 [gemvertexbuffer]: program_index: 6 vb: print_attributes
in the shader code : attribute vec3 LightPosition; attribute vec3 BrickColor, MortarColor; attribute vec2 BrickSize, BrickPct;
so LightPosition is declare a vec3, but dimen is 2, BrickSize is declare a vec2 and dimen is 3, BrickPct is declare as vec2 and dimen is 4.
when adding a float attribute, I have : vb: program 0.5 vb: position 1003_position vb: attribute LightPosition 1003_LightPosition vb: attribute BrickColor 1003_BrickColor vb: attribute MortarColor 1003_MortarColor vb: attribute BrickSize 1003_BrickSize vb: attribute BrickPct 1003_BrickPct vb: attribute test 1003_test [gemvertexbuffer]: GLSL-ProgramID: 3 [gemvertexbuffer]: Attribute1: LightPosition [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 2 [gemvertexbuffer]: program_index: 1 [gemvertexbuffer]: Attribute2: BrickColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 3 [gemvertexbuffer]: Attribute3: MortarColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 4 [gemvertexbuffer]: Attribute4: BrickSize [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 1 [gemvertexbuffer]: program_index: 5 [gemvertexbuffer]: Attribute5: BrickPct [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 6 [gemvertexbuffer]: Attribute6: test [gemvertexbuffer]: size: 16 [gemvertexbuffer]: dimen: 4 [gemvertexbuffer]: program_index: 7 vb: print_attributes
strange...
anyhow, the result of the example 16 is not right : texture is distorted.
- is this example working for anyone? (i test with ubuntu 14.04 /
nvidia and intel gpu) - is this example used to work for anyone? - can it be fixed? (i tried, but did not understand where the m_attribute.size() was set - maybe the problem is that it's never set!!!)
my current project is halted because of this problem. any help will be appreciated.
cheers c
_______________________________________________ GEM-dev mailing list GEM-dev@lists.iem.at http://lists.puredata.info/listinfo/gem-dev
Le 05/07/2015 22:55, Jack a écrit :
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello Cyrille,
You can't use color, texture or normal to pass your attributes (maybe it is not enough) ?
i use that, and i want more! since there is an example describing how to do it, i would expect this functionality to work...
cheers c
++
Jack
Le 05/07/2015 22:50, Cyrille Henry a écrit :
hello,
i've got a problem using vertexbuffer attribute : dimension is set to a wrong value.
when using the example 10.glsl/16.vertexbufer_attribute, "print_attributes" gives :
vb: program 0.5 vb: position 1003_position vb: attribute LightPosition 1003_LightPosition vb: attribute BrickColor 1003_BrickColor vb: attribute MortarColor 1003_MortarColor vb: attribute BrickSize 1003_BrickSize vb: attribute BrickPct 1003_BrickPct [gemvertexbuffer]: GLSL-ProgramID: 3 [gemvertexbuffer]: Attribute1: LightPosition [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 2 [gemvertexbuffer]: program_index: 1 [gemvertexbuffer]: Attribute2: BrickColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 3 [gemvertexbuffer]: Attribute3: MortarColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 4 [gemvertexbuffer]: Attribute4: BrickSize [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 5 [gemvertexbuffer]: Attribute5: BrickPct [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 4 [gemvertexbuffer]: program_index: 6 vb: print_attributes
in the shader code : attribute vec3 LightPosition; attribute vec3 BrickColor, MortarColor; attribute vec2 BrickSize, BrickPct;
so LightPosition is declare a vec3, but dimen is 2, BrickSize is declare a vec2 and dimen is 3, BrickPct is declare as vec2 and dimen is 4.
when adding a float attribute, I have : vb: program 0.5 vb: position 1003_position vb: attribute LightPosition 1003_LightPosition vb: attribute BrickColor 1003_BrickColor vb: attribute MortarColor 1003_MortarColor vb: attribute BrickSize 1003_BrickSize vb: attribute BrickPct 1003_BrickPct vb: attribute test 1003_test [gemvertexbuffer]: GLSL-ProgramID: 3 [gemvertexbuffer]: Attribute1: LightPosition [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 2 [gemvertexbuffer]: program_index: 1 [gemvertexbuffer]: Attribute2: BrickColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 3 [gemvertexbuffer]: Attribute3: MortarColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 4 [gemvertexbuffer]: Attribute4: BrickSize [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 1 [gemvertexbuffer]: program_index: 5 [gemvertexbuffer]: Attribute5: BrickPct [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 6 [gemvertexbuffer]: Attribute6: test [gemvertexbuffer]: size: 16 [gemvertexbuffer]: dimen: 4 [gemvertexbuffer]: program_index: 7 vb: print_attributes
strange...
anyhow, the result of the example 16 is not right : texture is distorted.
- is this example working for anyone? (i test with ubuntu 14.04 /
nvidia and intel gpu) - is this example used to work for anyone? - can it be fixed? (i tried, but did not understand where the m_attribute.size() was set - maybe the problem is that it's never set!!!)
my current project is halted because of this problem. any help will be appreciated.
cheers c
_______________________________________________ GEM-dev mailing list GEM-dev@lists.iem.at http://lists.puredata.info/listinfo/gem-dev
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEcBAEBAgAGBQJVmZmnAAoJEOuluecjw8GU7fsH/iF/rFo3aDuZKiLVpeA0VPix l9NvkBMlsrcXnbZ3XKpNbk8R6wfW/xvh3g+grmcucLYhgwo0qj8aHrRfwCqSa89S G7sl2qGSb+Ny/HI9UPbye7uiD+j+p+zOFUVvY8HUxcl+nw+ldIla4TYmQIPfcx8P BA4qtTcVc7Nd3RUYFlEkN6E6OlXJChf/ET5CkTyPhdCyZpEwgMpO4TlMZz6VZTKg MzMhs90kZukNX43obeviEnm8PTD4mzl8aTcWf21oEyncYTY7vqtBqmxwH1SoGLxX 5j6FtMhrAjZxuq/UyxsaDPz+svZLqv+L7BXs4m+grDC3P0s7+4s4fUFz06321dk= =4Je2 -----END PGP SIGNATURE-----
GEM-dev mailing list GEM-dev@lists.iem.at http://lists.puredata.info/listinfo/gem-dev
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
OK, never test it, before i have always used color, texture and normal. Here with my Intel card i get :
vb: position_enable 1 vb: attribute_enable 1 vb: resize 16 vb: draw quad ALSA input error (snd_pcm_open): Périphérique ou ressource occupé ALSA output error (snd_pcm_open): Périphérique ou ressource occupé GLEW version 1.10.0 linking: link 1.5 0.5 vb: program 0.5 vb: position 1003_position vb: attribute LightPosition 1003_LightPosition vb: attribute BrickColor 1003_BrickColor vb: attribute MortarColor 1003_MortarColor vb: attribute BrickSize 1003_BrickSize vb: attribute BrickPct 1003_BrickPct [gemvertexbuffer]: GLSL-ProgramID: 12 [gemvertexbuffer]: Attribute1: LightPosition [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 4 [gemvertexbuffer]: program_index: 1 [gemvertexbuffer]: Attribute2: BrickColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 2 [gemvertexbuffer]: Attribute3: MortarColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 3 [gemvertexbuffer]: Attribute4: BrickSize [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 4 [gemvertexbuffer]: Attribute5: BrickPct [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 2 [gemvertexbuffer]: program_index: 5 vb: print_attributes
and in the vertex shader : attribute vec3 LightPosition; attribute vec3 BrickColor, MortarColor; attribute vec2 BrickSize, BrickPct;
Here, in Pd console, BrickSize and LightPosition dimen are not good. ++
Jack
Le 05/07/2015 23:01, Cyrille Henry a écrit :
Le 05/07/2015 22:55, Jack a écrit : Hello Cyrille,
You can't use color, texture or normal to pass your attributes (maybe it is not enough) ?
i use that, and i want more! since there is an example describing how to do it, i would expect this functionality to work...
cheers c
++
Jack
Le 05/07/2015 22:50, Cyrille Henry a écrit :
hello,
i've got a problem using vertexbuffer attribute : dimension is set to a wrong value.
when using the example 10.glsl/16.vertexbufer_attribute, "print_attributes" gives :
vb: program 0.5 vb: position 1003_position vb: attribute LightPosition 1003_LightPosition vb: attribute BrickColor 1003_BrickColor vb: attribute MortarColor 1003_MortarColor vb: attribute BrickSize 1003_BrickSize vb: attribute BrickPct 1003_BrickPct [gemvertexbuffer]: GLSL-ProgramID: 3 [gemvertexbuffer]: Attribute1: LightPosition [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 2 [gemvertexbuffer]: program_index: 1 [gemvertexbuffer]: Attribute2: BrickColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 3 [gemvertexbuffer]: Attribute3: MortarColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 4 [gemvertexbuffer]: Attribute4: BrickSize [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 5 [gemvertexbuffer]: Attribute5: BrickPct [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 4 [gemvertexbuffer]: program_index: 6 vb: print_attributes
in the shader code : attribute vec3 LightPosition; attribute vec3 BrickColor, MortarColor; attribute vec2 BrickSize, BrickPct;
so LightPosition is declare a vec3, but dimen is 2, BrickSize is declare a vec2 and dimen is 3, BrickPct is declare as vec2 and dimen is 4.
when adding a float attribute, I have : vb: program 0.5 vb: position 1003_position vb: attribute LightPosition 1003_LightPosition vb: attribute BrickColor 1003_BrickColor vb: attribute MortarColor 1003_MortarColor vb: attribute BrickSize 1003_BrickSize vb: attribute BrickPct 1003_BrickPct vb: attribute test 1003_test [gemvertexbuffer]: GLSL-ProgramID: 3 [gemvertexbuffer]: Attribute1: LightPosition [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 2 [gemvertexbuffer]: program_index: 1 [gemvertexbuffer]: Attribute2: BrickColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 3 [gemvertexbuffer]: Attribute3: MortarColor [gemvertexbuffer]: size: 48 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 4 [gemvertexbuffer]: Attribute4: BrickSize [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 1 [gemvertexbuffer]: program_index: 5 [gemvertexbuffer]: Attribute5: BrickPct [gemvertexbuffer]: size: 32 [gemvertexbuffer]: dimen: 3 [gemvertexbuffer]: program_index: 6 [gemvertexbuffer]: Attribute6: test [gemvertexbuffer]: size: 16 [gemvertexbuffer]: dimen: 4 [gemvertexbuffer]: program_index: 7 vb: print_attributes
strange...
anyhow, the result of the example 16 is not right : texture is distorted.
- is this example working for anyone? (i test with ubuntu
14.04 / nvidia and intel gpu) - is this example used to work for anyone? - can it be fixed? (i tried, but did not understand where the m_attribute.size() was set - maybe the problem is that it's never set!!!)
my current project is halted because of this problem. any help will be appreciated.
cheers c
_______________________________________________ GEM-dev mailing list GEM-dev@lists.iem.at http://lists.puredata.info/listinfo/gem-dev
_______________________________________________ GEM-dev mailing list GEM-dev@lists.iem.at http://lists.puredata.info/listinfo/gem-dev