[GEM-dev] [ pd-gem-Feature Requests-2612731 ] glsl_geometry
Matthias Neuenhofer
matthias at neuenhofer.de
Sun Apr 26 13:38:18 CEST 2009
Am 26.04.2009 um 10:52 schrieb cyrille henry:
>
>
> Matthias Neuenhofer a écrit :
>> the alpha channel differs
>> i think in strip mode you draw the triangles twice or 3 times
> yes, but why is this changing, since i don't use the square
> geometry, nor it's drawing mode?
> (should use geometry_outType)
>
>
>
>> ------------------------------------------------------------------------
>> i get invalid value on all outtypes and adjacency intype
>> is is working for you?
> did you recompile Gem after my yesterday commit?
yes but with change
void glsl_program:: outtypeMess(GLuint outtype) {
m_geoOutType=outtype;
if(m_program && glProgramParameteriEXT) {
glProgramParameteriEXT
(m_program,GL_GEOMETRY_OUTPUT_TYPE_EXT,m_geoOutType);
}
was before GL_GEOMETRY_INPUT_TYPE_EXT
>
>
> here, it's works.
> here is a patch with better annotation regarding to the combination
> that works.
>
use the patch with dub - easier to understand the draw types
when you use TRIANGLE_STRIP instead of Strip there is no difference
between
TRIANGLES draw. Where is Strip defined couldn´t find it - saw it someday
have a look at the patch
matthias
> cyrille
>
>> Matthias
>> Am 25.04.2009 um 23:11 schrieb cyrille henry:
>>> ok.
>>> it now work as it should.
>>> here is a small patch that i used to have a better understanding.
>>>
>>> i still have an interrogation, see in the patch if you could help...
>>>
>>> Cyrille
>>>
>>> cyrille henry a écrit :
>>>> IOhannes m zmoelnig a écrit :
>>>>> cyrille henry wrote:
>>>>> mabye i introduced some problems when i defaulted to "triangles"
>>>> yep, i think so :
>>>> void glsl_program:: outtypeMess(GLuint outtype) {
>>>> m_geoInType=outtype;
>>>> if(m_program && glProgramParameteriEXT) {
>>>>
>>>> glProgramParameteriEXT
>>>> (m_program,GL_GEOMETRY_INPUT_TYPE_EXT,m_geoOutType);
>>>> }
>>>> }
>>>> i think : m_geoInType=outtype; is a copy/paste typo and should
>>>> be : m_geoOutType=outtype;
>>>> that could explain my problems...
>>>> fixed in svn.
>>>> Cyrille
>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20090426/c2914647/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: primitive_dub.zip
Type: application/zip
Size: 4750 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20090426/c2914647/attachment.zip>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20090426/c2914647/attachment-0001.htm>
More information about the GEM-dev
mailing list