<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>hi marius</div><div>i also have no praxis with the geometry shader fiddling a bit with OpenGL Shader Builder Apple Devs tools.</div><div>got my knowledge recently here - clearly arranged</div><a href="http://web.engr.oregonstate.edu/~mjb/glman/ClassNotes/geometry_shader.pdf">web.engr.oregonstate.edu/~mjb/glman/ClassNotes/geometry_shader.pdf</a><div><br></div><div>think should possible set the&nbsp;glProgramParameteriEXT in Pd like draw types for polygons …</div><div>as i understood the parameter code has add to the glsl_program object - or?&nbsp;</div><div>should be this for input&nbsp;</div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Arial; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">GL_POINTS</span></font><span style="font: 12.0px Helvetica">&nbsp;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Arial; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">GL_LINES</span></font><span style="font: 12.0px Helvetica">&nbsp;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Arial; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">GL_LINES_ADJACENCY_EXT</span></font><span style="font: 12.0px Helvetica">&nbsp;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Arial; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">GL_TRIANGLES</span></font><span style="font: 12.0px Helvetica">&nbsp;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 7px/normal Arial; "><span style="font: 9.0px Arial"><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">GL_TRIANGLES_ADJACENCY_EXT</span></font></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 7px/normal Arial; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 7px/normal Arial; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">for output</span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 7px/normal Arial; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Arial; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">GL_POINTS</span></font><span style="font: 12.0px Helvetica">&nbsp;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Arial; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">GL_LINE_STRIP</span></font><span style="font: 12.0px Helvetica">&nbsp;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Arial; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">GL_TRIANGLE_STRIP</span></font><span style="font: 12.0px Helvetica">&nbsp;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Arial; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Arial; "><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">set the default to&nbsp;<span class="Apple-style-span" style="font-family: Arial; font-size: 9px; "><font class="Apple-style-span" face="Helvetica" size="3">TRIANGLES</font></span>&nbsp;and maximum number of&nbsp;vertices the geometry shader will be emitting to 1</span></font></div><div><br></div></span></font></div></div><div>when someone can go further with this i will test it&nbsp;</div><div>my c++ is just growing since started using pd :)</div><div><br></div><div>matthias</div><div><br></div><div><div><div>Am 26.03.2009 um 18:20 schrieb marius schebella:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>hi matthias,<br>thanks for fixing the glew.cpp bug. since I have not really worked with geometry shaders before I have to start from scratch, and would appreciate some example patches, how to link the shader. is it possible to setup the glProgramParameteriEXT functions within Pd?<br>greetings from the breeding gem community in salzburg.<br>marius.<br><br><br>Matthias Neuenhofer wrote:<br><blockquote type="cite">Hi,<br></blockquote><blockquote type="cite">great to get a start.<br></blockquote><blockquote type="cite">picked the glsl and glew files from trunk<br></blockquote><blockquote type="cite">compiled on mac 10.5.6<br></blockquote><blockquote type="cite">in the glew.ccp was the (char*) missing before malloc<br></blockquote><blockquote type="cite"> &nbsp;symbolName = (char*)malloc(strlen((const char*)name) + 2);<br></blockquote><blockquote type="cite">glew.cpp:83: error: invalid conversion from ‘void*’ to ‘char*’<br></blockquote><blockquote type="cite">vertex and fragment seems working normal even though -GL: invalid value- appears in pd window<br></blockquote><blockquote type="cite">the glsl_geometry object didn´t post a shaderID<br></blockquote><blockquote type="cite">the geometry code needs the glProgramParameteriEXT functions to declare the shader input and output Primitives types<br></blockquote><blockquote type="cite">and the count of vertices this have to set parameter have to set after creating the program but before linking<br></blockquote><blockquote type="cite">matthias<br></blockquote><blockquote type="cite">schrieb marius schebella:<br></blockquote><blockquote type="cite"><blockquote type="cite">Hi,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I see two glsl_geometry files in the svn. but I am not sure which version of svn I have to check out? it's not 0.91-3??<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">has anyone already tested the objects?<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Marius.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">IOhannes m zmoelnig wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">SourceForge.net wrote:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Initial Comment:<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">it would be great to add a glsl_geometry object to load geometry shader.<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">It should be compatible with already existing glsl_vertex and glsl_fragment object...<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">if someone with newer hardware than me feels like trying them out, go ahead...i checked some code in yesterday.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">fgamsdr<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">IOhannes<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">------------------------------------------------------------------------<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">GEM-dev mailing list<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">GEM-dev@iem.at &lt;mailto:GEM-dev@iem.at><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">http://lists.puredata.info/listinfo/gem-dev<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">GEM-dev mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">GEM-dev@iem.at &lt;mailto:GEM-dev@iem.at><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">http://lists.puredata.info/listinfo/gem-dev<br></blockquote></blockquote><br></div></blockquote></div><br></div></body></html>