Hi, thank you very much for the reply.<br><br>Lets see...<br><br>If we can manage that to work, we can contribute with the pd community with <br>some documentation.<br><br>Cheers,<br><br>Juliana<br><br><div class="gmail_quote">
2011/4/8 IOhannes zmölnig <span dir="ltr">&lt;<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
ola<div class="im"><br>
<br>
On 04/08/2011 04:09 PM, Juliana Vizzotto wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
for instance. We download the svn development sources...<br>
Please, it would be great to have the source of cube, for instance, or any<br>
</blockquote>
<br></div>
there is no real documentation on how to do that.<br>
<br>
if you want to do it in C++, you should go for the sources.<br>
basically, each Gem-object has it&#39;s own file (living in different directories, depending on their &quot;type&quot;).<br>
e.g. the code for [cube] can be found in Gem/src/Geos/cube.cpp (.h).<br>
<br>
to start a new object, it&#39;s probably easiest to just copy an existing object:<br>
- copy<br>
 $ cp Geos/cube.cpp Geos/supercube.cpp<br>
 $ cp Geos/cube.h Geos/supercube.h<br>
- rename the object&#39;s internals<br>
 $ sed -e &#39;s|cube|supercube|g&#39; -i Geos/supercube.cpp<br>
 $ sed -e &#39;s|cube|supercube|g&#39; -i Geos/supercube.h<br>
- recompile<br>
 $ make<br>
- use<br>
 [supercube]<br>
<br>
the above is a bit simplistic, you will probably want to do the search&amp;replace manually, rather than trusting sed;<br>
obviously, you also might want to add some code before running make.<br>
<br>
<br>
<br>
however, there you don&#39;t necessarily need to write C++ code.<br>
for simple things, Gem wraps all the openGL commands into objects. e.g. you can use [GEMglVertex3f] rather than glVertex3f()<br>
<br>
for more complex things, you could use one of the scripting languages supported by Pd, e.g. lua (frank barknecht has done some nice things with Gem &amp; lua; there might be examples in the web...)<br>
<br>
and of course there is GridFlow&#39;s openGL injector, that allows you to write openGL commands as messages, and inject them into Gem.<br>
something like (it&#39;s surely not working, but you should get the idea):<br>
<br>
[gemhead]<br>
|<br>
[Vertex 3 4 5, Color 1 0 0(<br>
|<br>
[<a href="http://gf.gl" target="_blank">gf.gl</a>]<br>
<br>
<br>
gfasdrm<br><font color="#888888">
IOhannes<br>
</font></blockquote></div><br>