<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Drawing squares with openGL geometry shader]]></title><description><![CDATA[<p dir="auto"><em>On 30/07/2018 at 12:19, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">User Information:<br />
Cinema 4D Version:   R18 <br />
Platform:   Windows  ; Mac  ;  Mac OSX  ; <br />
Language(s) :     C++  ;</p>
<p dir="auto">---------<br />
Hello, i'm writing a C++ objectdata plugin that needs to draw it's own representation of some particles in the viewport.</p>
<p dir="auto">I've referenced the <a href="https://github.com/PluginCafe/cinema4d_cpp_sdk/blob/master/source/object/gl_test_object.cpp" target="_blank" rel="noopener noreferrer nofollow ugc">gl_test_object.cpp</a> example file and have gotten it working with just 1px dots, but i'd love to be able to write a geometry shader for openGL that takes those input vertices and draws a box of a given size for each one.</p>
<p dir="auto">I see in the c4d_gl.h file that there seems to be support for a geometry program, but since c4d's implementation of openGL isn't well documented I can't figure out how to implement one.</p>
<p dir="auto">Any help would be much appreciated.</p>
]]></description><link>http://developers.maxon.net/forum/topic/10892/14339_drawing-squares-with-opengl-geometry-shader</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 23:19:31 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/10892.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 01 Sep 2018 10:52:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Drawing squares with openGL geometry shader on Sat, 01 Sep 2018 10:52:57 GMT]]></title><description><![CDATA[<p dir="auto"><em>On 01/08/2018 at 09:35, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Hi,</p>
<blockquote>
<p dir="auto"><strong>Originally posted by xxxxxxxx</strong></p>
<p dir="auto">Do you have any tips on how to optimize Draw() using the BaseDraw functions to work it's fastest for drawing thousands of particles?</p>
</blockquote>
<p dir="auto">Information and advises for Draw() and BaseDraw can be found in the following C++ docs manuals:<br />
<a href="https://developers.maxon.net/docs/cpp/2023_2/page_manual_draw.html" target="_blank" rel="noopener noreferrer nofollow ugc">Draw Manual</a><br />
<a href="https://developers.maxon.net/docs/cpp/2023_2/page_manual_basedraw.html#page_manual_basedraw_drawing" target="_blank" rel="noopener noreferrer nofollow ugc">BaseView / BaseDraw Manual</a></p>
]]></description><link>http://developers.maxon.net/forum/post/55361</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/55361</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Sat, 01 Sep 2018 10:52:57 GMT</pubDate></item><item><title><![CDATA[Reply to Drawing squares with openGL geometry shader on Sat, 01 Sep 2018 10:52:55 GMT]]></title><description><![CDATA[<p dir="auto"><em>On 31/07/2018 at 09:04, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Thanks Yannick,</p>
<p dir="auto">Do you have any tips on how to optimize Draw() using the BaseDraw functions to work it's fastest for drawing thousands of particles?</p>
]]></description><link>http://developers.maxon.net/forum/post/55360</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/55360</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Sat, 01 Sep 2018 10:52:55 GMT</pubDate></item><item><title><![CDATA[Reply to Drawing squares with openGL geometry shader on Sat, 01 Sep 2018 10:52:52 GMT]]></title><description><![CDATA[<p dir="auto"><em>On 31/07/2018 at 02:20, <strong>xxxxxxxx</strong> wrote:</em></p>
<p dir="auto">Hi,</p>
<p dir="auto">Definitions in c4d_gl.h are internal, not documented and not meant to be used by third party developers.</p>
<p dir="auto">Object plugins should perform drawing operations from Draw() using the passed BaseDraw and its drawing functions.</p>
]]></description><link>http://developers.maxon.net/forum/post/55359</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/55359</guid><dc:creator><![CDATA[Helper]]></dc:creator><pubDate>Sat, 01 Sep 2018 10:52:52 GMT</pubDate></item></channel></rss>