<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.opentk.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>OpenTK - Forums</title>
 <link>http://www.opentk.com/tracker</link>
 <description>Shows all new activity on system.</description>
 <language>en</language>
<item>
 <title>Procedural Figures?</title>
 <link>http://www.opentk.com/node/3325</link>
 <description>&lt;p&gt;I would like to pass a function like &quot;f(x):=(y=x+1; z=x-1)&quot; or &quot;f(x, y):=(z=x+y)&quot; or &quot;f(x0):=(x++; y=x+x0; z=x+z)&quot;, a precision identifier, say 1000 or 0x3 for three decimal places, an optional limit to recursion depth and be done with it, as the manual advises to keep the number of GL calls to a minimum - and to pass any of (potentially very large) n values &quot;manually&quot; when I could just pass the function which generates these values seems to be supremely wasteful.&lt;/p&gt;
&lt;p&gt;The relevant &lt;a href=&quot;http://www.opentk.com/node/147&quot;&gt;manual entry&lt;/a&gt; is empty.&lt;br /&gt;
The quick start file shows how to add figures per vertex. Methods to construct figures by vector are easily found within the API.&lt;br /&gt;
How would one add a figure by function? Is the obvious solution: compute-vertex-or-vector-and-insert-loop; the only one?&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/3325#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Fri, 17 May 2013 09:19:20 -0700</pubDate>
 <dc:creator>Zsar</dc:creator>
 <guid isPermaLink="false">3325 at http://www.opentk.com</guid>
</item>
<item>
 <title>GL.Uniform4 call results in InvalidOperation error</title>
 <link>http://www.opentk.com/node/3323</link>
 <description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I&#039;ve been pulling my hair out on an issue that has me stumped. I&#039;m very much a OpenGL beginner and I&#039;m trying to figure out why this code fails.  I&#039;ve tried to isolate all relevant parts, but if you need to know more please let me know. &lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; GLTStockShader.&lt;span class=&quot;me1&quot;&gt;Identity&lt;/span&gt;:
                    iColor = &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;GetUniformLocation&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;uiStockShaders&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;nShaderID&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;, &lt;span class=&quot;st0&quot;&gt;&amp;quot;vColor&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
                    vColor = uniformList&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;float&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;;
                    &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Uniform4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;iColor, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, vColor&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
&lt;span class=&quot;co1&quot;&gt;// debug info&lt;/span&gt;
                    &lt;span class=&quot;kw1&quot;&gt;string&lt;/span&gt; vColorSummary = &lt;span class=&quot;kw1&quot;&gt;string&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Join&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;, &amp;quot;&lt;/span&gt;, vColor&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
                    &lt;span class=&quot;kw5&quot;&gt;System&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Diagnostics&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Debug&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;WriteLine&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;iColor        = {0}&amp;quot;&lt;/span&gt;, iColor&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
                    &lt;span class=&quot;kw5&quot;&gt;System&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Diagnostics&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Debug&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;WriteLine&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;vColor        = &amp;quot;&lt;/span&gt; + vColorSummary&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
                    &lt;span class=&quot;kw5&quot;&gt;System&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Diagnostics&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Debug&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;WriteLine&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;GL.GetError() = {0}&amp;quot;&lt;/span&gt;, &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;GetError&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
                    &lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;This outputs the following debug info:&lt;/p&gt;
&lt;p&gt;iColor        = 0&lt;br /&gt;
vColor        = 1, 0, 0, 1&lt;br /&gt;
GL.GetError() = InvalidOperation&lt;/p&gt;
&lt;p&gt;The vertex and fragment shaders are defined as follows:&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-cpp&quot;&gt;&lt;span class=&quot;kw4&quot;&gt;const&lt;/span&gt; string szIdentityShaderVP = &lt;span class=&quot;st0&quot;&gt;&amp;quot;attribute vec4 vVertex;&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt; +&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/3323&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/3323#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Tue, 14 May 2013 04:48:23 -0700</pubDate>
 <dc:creator>jodev</dc:creator>
 <guid isPermaLink="false">3323 at http://www.opentk.com</guid>
</item>
<item>
 <title>Intel_map_texture (or general extensions loading)</title>
 <link>http://www.opentk.com/node/3322</link>
 <description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Im trying to use the &lt;a href=&quot;http://www.opengl.org/registry/specs/INTEL/map_texture.txt&quot;&gt;INTEL_map_texture&lt;/a&gt; extension. I can&#039;t find this in the OpenTK API so I guess I have to retreive it myself. Or is there any other way I can do it?&lt;/p&gt;
&lt;p&gt;This is how my code looks now, but I only get a null pointer back. I have checked the computer with OpenGL Extensions Viewer and it says it should be in there.&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;geshifilter-csharp&quot;&gt;wglGetProcAddress&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;MapTexture2DINTEL&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/3322#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Tue, 14 May 2013 00:30:21 -0700</pubDate>
 <dc:creator>wheelinlight</dc:creator>
 <guid isPermaLink="false">3322 at http://www.opentk.com</guid>
</item>
<item>
 <title>Problem with texture loading</title>
 <link>http://www.opentk.com/node/3291</link>
 <description>&lt;p&gt;I decided to move my project to OpenTK from TAO framework (btw, thank you for the great library). My problem is in my loading textures class. It says that the problem is in the 42nd line.&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;            &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; openGLId = Ilut.&lt;span class=&quot;me1&quot;&gt;ilutGLBindTexImage&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
            &lt;span class=&quot;kw5&quot;&gt;System&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Diagnostics&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Debug&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Assert&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;openGLId != &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;   &lt;span class=&quot;co1&quot;&gt;// line 42&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;---- Assert Long Message ----&lt;/p&gt;
&lt;p&gt;   at GameLoop.TextureManager.LoadTexture(String textureId, String path) in C:\Users\Korisnik\Documents\Visual Studio 2010\Projects\Idezasada\Idezasad\TextureManager.cs:line 42&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/3291#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Sat, 23 Mar 2013 12:03:27 -0700</pubDate>
 <dc:creator>croman102</dc:creator>
 <guid isPermaLink="false">3291 at http://www.opentk.com</guid>
</item>
<item>
 <title>How to render a processed image?</title>
 <link>http://www.opentk.com/node/3300</link>
 <description>&lt;p&gt;Hiho,&lt;/p&gt;
&lt;p&gt;I am very new to OpenTK and to GPU programming in general and have already read through many OpenTK/GL tutorials, however I am currently stuck at getting my code working.&lt;/p&gt;
&lt;p&gt;Basically, I am trying to read out images (Bitmaps) do some image processing with them and display them on my screen - so no 3D but only 2D OpenGL features are needed.&lt;br /&gt;
At the moment not a single image is displayed and I am not even aware what steps are working at all but what I can say is that my whole code runs through all stages without exceptions etc. ...&lt;/p&gt;
&lt;p&gt;Here is what I have wrote, copied, brainstormed so far:&lt;/p&gt;
&lt;p&gt;&lt;b&gt;My initialization codes.&lt;/b&gt;&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;        &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; vertexShaderObject, fragmentShaderObject, shaderProgram;
        &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; vertexBufferObject, colorBufferObject, elementBufferObject;
        &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; currentTextureId;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;void&lt;/span&gt; SetupViewport&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; w = glControl1.&lt;span class=&quot;me1&quot;&gt;Width&lt;/span&gt;;
            &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; h = glControl1.&lt;span class=&quot;me1&quot;&gt;Height&lt;/span&gt;;
            &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;ClearColor&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Color.&lt;span class=&quot;me1&quot;&gt;Black&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
            &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;MatrixMode&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;MatrixMode.&lt;span class=&quot;me1&quot;&gt;Modelview&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
            &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;MatrixMode&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;MatrixMode.&lt;span class=&quot;me1&quot;&gt;Projection&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
            &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;LoadIdentity&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/3300&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/3300#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Mon, 08 Apr 2013 17:39:13 -0700</pubDate>
 <dc:creator>Robbepop</dc:creator>
 <guid isPermaLink="false">3300 at http://www.opentk.com</guid>
</item>
<item>
 <title>Loading .obj models</title>
 <link>http://www.opentk.com/node/3314</link>
 <description>&lt;p&gt;I have attempted to write a program which parses a .obj file and &#039;should&#039; display it. However once the program is executed the product is just a blank display screen. I only started with openGL today so there is probably something obvious I&#039;m looking over :p&lt;/p&gt;
&lt;p&gt;Form1:&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; partial &lt;span class=&quot;kw1&quot;&gt;class&lt;/span&gt; Form1 : &lt;span class=&quot;kw4&quot;&gt;Form&lt;/span&gt;
    &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; Form1&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
            InitializeComponent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
        &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;void&lt;/span&gt; glControl1_Load&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;object&lt;/span&gt; sender, EventArgs e&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;ClearColor&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Color.&lt;span class=&quot;me1&quot;&gt;Black&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
            glControl1.&lt;span class=&quot;me1&quot;&gt;Paint&lt;/span&gt; += glControl1_Paint;
        &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;void&lt;/span&gt; setUpCamera&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
        &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;void&lt;/span&gt; glControl1_Paint&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;object&lt;/span&gt; sender, PaintEventArgs e&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;double&lt;/span&gt; aspect = glControl1.&lt;span class=&quot;me1&quot;&gt;Width&lt;/span&gt; / &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;double&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;glControl1.&lt;span class=&quot;me1&quot;&gt;Height&lt;/span&gt;;
            &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Clear&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ClearBufferMask.&lt;span class=&quot;me1&quot;&gt;ColorBufferBit&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
            &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Clear&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ClearBufferMask.&lt;span class=&quot;me1&quot;&gt;DepthBufferBit&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
            &lt;span class=&quot;co1&quot;&gt;//&#039;Basic Setup for viewing&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;Matrix4&lt;/span&gt; perspective = &lt;span class=&quot;kw3&quot;&gt;Matrix4&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;CreatePerspectiveFieldOfView&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;MathHelper&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;PiOver4&lt;/span&gt;, &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;float&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;aspect, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;.0001f, &lt;span class=&quot;nu0&quot;&gt;5000&lt;/span&gt;.0f&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;; &lt;span class=&quot;co1&quot;&gt;//&#039;Setup Perspective&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/3314&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/3314#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Sun, 28 Apr 2013 06:11:38 -0700</pubDate>
 <dc:creator>Memory Leak</dc:creator>
 <guid isPermaLink="false">3314 at http://www.opentk.com</guid>
</item>
<item>
 <title>Lighting and VBO</title>
 <link>http://www.opentk.com/node/3321</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&#039;ve loaded a couple of cubes into a VBO, and now I&#039;m trying to light them, the problem is however that they act like every cube has it&#039;s own light source, instead of having one look.&lt;/p&gt;
&lt;p&gt;It almost appears as if the distance to the light is not taken into account at all.&lt;/p&gt;
&lt;p&gt;Here&#039;s what it looks like at the moment, I don&#039;t want these weird changes in colour on the surface:&lt;br /&gt;
&lt;img src=&quot;http://puu.sh/2QIut&quot; width=&quot;428&quot; height=&quot;353&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Can anybody help me?&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/3321#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Sat, 11 May 2013 06:15:56 -0700</pubDate>
 <dc:creator>Perrytje</dc:creator>
 <guid isPermaLink="false">3321 at http://www.opentk.com</guid>
</item>
<item>
 <title>Voxel Engine built with OpenTK / C#</title>
 <link>http://www.opentk.com/node/3053</link>
 <description>&lt;p&gt;Hi everyone, I made a blog entry on this site as well, but figured I&#039;d post in here also as I had never even noticed the blogs before today.&lt;/p&gt;
&lt;p&gt;I&#039;ve been reading the OpenTK forum and working with OpenTK for about a year now. Want to thank everyone that has contributed to OpenTK, its so nice being able to develop for OpenGL in Visual Studio/C# where I&#039;m already very comfortable and use everyday at my &quot;day jobs&quot; and not having to learn another language / IDE. Wouldnt have made near as much progress without OpenTK.&lt;/p&gt;
&lt;p&gt;Wanted to post a link to the main project I&#039;ve been working on, which is a voxel engine built in C# and OpenGL utilizing OpenTK. I&#039;ve seen a lot of voxel engines out there on the web but none very far along using OpenTK.&lt;/p&gt;
&lt;p&gt;Please have a look at &lt;a href=&quot;http://www.voxelgame.com&quot; title=&quot;http://www.voxelgame.com&quot;&gt;http://www.voxelgame.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There you can see screenshots / videos and download a copy of the engine and give it a try. Currently the engine supports the creation of randomly generated worlds, building blocks, breaking blocks, sounds, multiplayer and more. Once in the game, press F1 for a list of commands. You can even try connecting to my server at hornet.voxelgame.com&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/3053&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/3053#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/9">Game Design &amp;amp; Concepts</category>
 <pubDate>Wed, 04 Jul 2012 20:24:19 -0700</pubDate>
 <dc:creator>dimension314</dc:creator>
 <guid isPermaLink="false">3053 at http://www.opentk.com</guid>
</item>
<item>
 <title>OpenTK and fonts</title>
 <link>http://www.opentk.com/node/3050</link>
 <description>&lt;p&gt;What is the best alternative to FreeType for C#?  does OpenTK have anything built into it to help with rendering text?&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/3050#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Wed, 04 Jul 2012 00:47:16 -0700</pubDate>
 <dc:creator>lid6j86</dc:creator>
 <guid isPermaLink="false">3050 at http://www.opentk.com</guid>
</item>
<item>
 <title>AltSketch C# Software Vector Graphics Library with native C# implementation of FreeType font rendering library</title>
 <link>http://www.opentk.com/project/AltSketch</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://altsoftlab.com/altsketch.aspx&quot; title=&quot;AltSketch&quot;&gt;AltSketch&lt;/a&gt; - pure C# CLS compliant 100% managed, without unsafe blocks Software Vector Graphics Library. AltSketch includes AltNETType - pure C# CLS compliant port of wonderful font rendering library Freetype. AltNETType presented as a subsystem of AltSketch in Alt.NETType namespace. AltSketch contains highlevel font realization working with many fontfamilies (system fonts, custom font files). But also FreeType like interface is available throw Alt.NETType namespace of AltSketch library. AltSketch is free for no commercial use.&lt;/p&gt;
</description>
 <category domain="http://www.opentk.com/taxonomy/term/29">Game</category>
 <category domain="http://www.opentk.com/taxonomy/term/35">Library</category>
 <category domain="http://www.opentk.com/taxonomy/term/36">Graphics</category>
 <category domain="http://www.opentk.com/taxonomy/term/39">Closed source</category>
 <category domain="http://www.opentk.com/taxonomy/term/38">Contributed</category>
 <pubDate>Thu, 09 May 2013 04:50:19 -0700</pubDate>
 <dc:creator>AltSoftLab</dc:creator>
 <guid isPermaLink="false">3320 at http://www.opentk.com</guid>
</item>
<item>
 <title>AltSketch C# Freetype port</title>
 <link>http://www.opentk.com/node/3319</link>
 <description>&lt;p&gt;We are developers of &lt;a href=&quot;http://altsoftlab.com/altsketch.aspx&quot; title=&quot;AltSketch&quot;&gt;AltSketch&lt;/a&gt; - pure C# CLS compliant 100% managed, without unsafe blocks Software Vector Graphics Library.  AltSketch includes AltNETType - native C# implementation of wonderful font rendering library &lt;a href=&quot;www.freetype.org&quot; title=&quot;FreeType&quot;&gt;Freetype&lt;/a&gt;. AltNETType presented as a subsystem of AltSketch in Alt.NETType namespace.&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/3319#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/5">Personal Projects</category>
 <pubDate>Thu, 09 May 2013 04:43:21 -0700</pubDate>
 <dc:creator>AltSoftLab</dc:creator>
 <guid isPermaLink="false">3319 at http://www.opentk.com</guid>
</item>
<item>
 <title>ReadPixels</title>
 <link>http://www.opentk.com/node/3313</link>
 <description>&lt;p&gt;When thiscode run , &lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;             &lt;span class=&quot;kw4&quot;&gt;IntPtr&lt;/span&gt; abc=&lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;IntPtr&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
            &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;ReadPixels&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, PixelFormat.&lt;span class=&quot;me1&quot;&gt;Rgba&lt;/span&gt;, PixelType.&lt;span class=&quot;me1&quot;&gt;Float&lt;/span&gt;, abc&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;windows give this error:&lt;br /&gt;
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.&lt;/p&gt;
&lt;p&gt;I looked forum , this problem is occur too much.&lt;br /&gt;
How Can I solve this problem???&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/3313#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Thu, 25 Apr 2013 11:33:25 -0700</pubDate>
 <dc:creator>ilyazyilmaz</dc:creator>
 <guid isPermaLink="false">3313 at http://www.opentk.com</guid>
</item>
<item>
 <title>Problem loading images  on Linux</title>
 <link>http://www.opentk.com/node/3316</link>
 <description>&lt;p&gt;So, My code works on Windows. On Linux it works only for a single image, otherwise throws &quot;Unhandled Exception: System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter] at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in :0 &quot; etc&lt;br /&gt;
The code that crashes it is&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;!File.&lt;span class=&quot;me1&quot;&gt;Exists&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;filename&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; Exception&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;File not found&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ;
            Bitmap TextureBitmap = &lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; Bitmap&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;filename&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
            &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; width = TextureBitmap.&lt;span class=&quot;me1&quot;&gt;Width&lt;/span&gt;;
            &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; height = TextureBitmap.&lt;span class=&quot;me1&quot;&gt;Height&lt;/span&gt;;  
            &lt;span class=&quot;kw5&quot;&gt;System&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Drawing&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Imaging&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;BitmapData&lt;/span&gt; TextureData =
            TextureBitmap.&lt;span class=&quot;me1&quot;&gt;LockBits&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;kw5&quot;&gt;System&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Drawing&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Rectangle&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;, TextureBitmap.&lt;span class=&quot;me1&quot;&gt;Width&lt;/span&gt;, TextureBitmap.&lt;span class=&quot;me1&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw5&quot;&gt;System&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Drawing&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Imaging&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;ImageLockMode&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;ReadOnly&lt;/span&gt;, &lt;span class=&quot;kw5&quot;&gt;System&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Drawing&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Imaging&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;PixelFormat&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Format32bppArgb&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
&amp;nbsp;
            &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;GenTextures&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;out&lt;/span&gt; texIndex&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
            &lt;span class=&quot;co1&quot;&gt;//tell OpenGL that this is a 2D texture&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;BindTexture&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;TextureTarget.&lt;span class=&quot;me1&quot;&gt;Texture2D&lt;/span&gt;, texIndex&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
            &lt;span class=&quot;co1&quot;&gt;//the following code sets certian parameters for the texture&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/3316&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/3316#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Wed, 01 May 2013 00:25:56 -0700</pubDate>
 <dc:creator>winterhell</dc:creator>
 <guid isPermaLink="false">3316 at http://www.opentk.com</guid>
</item>
<item>
 <title>Black Screen Shot</title>
 <link>http://www.opentk.com/node/3312</link>
 <description>&lt;p&gt;Well OpenTK people, im new here, and im a noobiest c# coder.&lt;/p&gt;
&lt;p&gt;I want take screenshot a game (counter strike 1.6), but when i take the screen has black.&lt;/p&gt;
&lt;p&gt;Here is my code (i have see here.)&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;&lt;span class=&quot;co1&quot;&gt;// Creates a 1.0-compatible GraphicsContext with GraphicsMode.Default&lt;/span&gt;
        &lt;span class=&quot;kw3&quot;&gt;GameWindow&lt;/span&gt; window = &lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;GameWindow&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
        &lt;span class=&quot;co1&quot;&gt;// Creates a 3.0-compatible GraphicsContext with 32bpp color, 24bpp depth&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;// 8bpp stencil and 4x anti-aliasing.&lt;/span&gt;
        &lt;span class=&quot;kw3&quot;&gt;GLControl&lt;/span&gt; control = &lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;GLControl&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;GraphicsMode&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;32&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;24&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;8&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; Bitmap GrabScreenshot&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;GraphicsContext&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;CurrentContext&lt;/span&gt; == &lt;span class=&quot;kw1&quot;&gt;null&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; GraphicsContextMissingException&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
            Bitmap bmp = &lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; Bitmap&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;this&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;ClientSize&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Width&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;this&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;ClientSize&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Height&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
            &lt;span class=&quot;kw5&quot;&gt;System&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Drawing&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Imaging&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;BitmapData&lt;/span&gt; data =
                bmp.&lt;span class=&quot;me1&quot;&gt;LockBits&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;this&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;ClientRectangle&lt;/span&gt;, &lt;span class=&quot;kw5&quot;&gt;System&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Drawing&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Imaging&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;ImageLockMode&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;WriteOnly&lt;/span&gt;, &lt;span class=&quot;kw5&quot;&gt;System&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Drawing&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Imaging&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;PixelFormat&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Format24bppRgb&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/3312&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/3312#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Thu, 25 Apr 2013 03:34:01 -0700</pubDate>
 <dc:creator>sYnced</dc:creator>
 <guid isPermaLink="false">3312 at http://www.opentk.com</guid>
</item>
<item>
 <title>Access Gl texture from OpenCl.Net?</title>
 <link>http://www.opentk.com/node/3318</link>
 <description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Computing with OpenCl.Net works like a charm, but I&#039;d like to alter a texture with it.&lt;br /&gt;
Sure I can do the OpenCl computations, upload to mem and then download to Gl texture, but that doesn&#039;t seem efficient.&lt;/p&gt;
&lt;p&gt;Is there some way I can access Gl texture from OpenCl (or vice versa)?&lt;/p&gt;
&lt;p&gt;I can only find examples with Cloo and OpenTK, but not with OpenCl.Net and OpenTK.&lt;br /&gt;
Nowhere can I find CreateFromGLBuffer or similar :(&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/3318#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Mon, 06 May 2013 13:38:12 -0700</pubDate>
 <dc:creator>mordrek</dc:creator>
 <guid isPermaLink="false">3318 at http://www.opentk.com</guid>
</item>
<item>
 <title>Threading with OpenTK GameWindow</title>
 <link>http://www.opentk.com/node/3315</link>
 <description>&lt;p&gt;Hello Community,&lt;/p&gt;
&lt;p&gt;I have been having some problems lately trying to buffer some vertex data.&lt;/p&gt;
&lt;p&gt;Well I have been having trouble even generating the Buffers.&lt;/p&gt;
&lt;p&gt;The only time when anything like bind buffer works is when the gamewindow is first opened in the default constructor.&lt;/p&gt;
&lt;p&gt;The code I use there is:&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;             &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; GraphicsEngine&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; x, &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; y, &lt;span class=&quot;kw3&quot;&gt;GraphicsMode&lt;/span&gt; m, &lt;span class=&quot;kw1&quot;&gt;string&lt;/span&gt; title, &lt;span class=&quot;kw3&quot;&gt;GameWindowFlags&lt;/span&gt; gmf&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; : &lt;span class=&quot;kw1&quot;&gt;base&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;x, y, m, title, gmf&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
            &lt;span class=&quot;co1&quot;&gt;//Make full Screen?&lt;/span&gt;
            &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Enable&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;EnableCap.&lt;span class=&quot;me1&quot;&gt;DepthTest&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
            &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;GenBuffers&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, bufferoneHandle&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
        &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The exception occuring is: AccessViolationException - Attempted to read or write protected memory. This is often an indication that other memory is corrupt.&lt;/p&gt;
&lt;p&gt;I have tried to fix it by moving the code around but the exception just occurs on another part of the code eg the enableclientstate or bindbuffer or bufferdata.&lt;/p&gt;
&lt;p&gt;I am not sure if I am missing anything obvious!? If any more info is needed please let me know.&lt;/p&gt;
&lt;p&gt;The following is the main code I use:&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;void&lt;/span&gt; DrawArrayBeginMode&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;List&amp;lt;Vector3d&amp;gt; vector&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/3315&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/3315#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Tue, 30 Apr 2013 22:21:02 -0700</pubDate>
 <dc:creator>stin8er</dc:creator>
 <guid isPermaLink="false">3315 at http://www.opentk.com</guid>
</item>
<item>
 <title>Processing window events in a separate thread</title>
 <link>http://www.opentk.com/node/3311</link>
 <description>&lt;p&gt;What is the best way to prevent actions such as window-dragging from blocking the main thread?&lt;br /&gt;
I&#039;d like to keep synchronous access to window properties such as location and size.&lt;/p&gt;
&lt;p&gt;I have a working solution, but it doesn&#039;t seem thread-safe.&lt;/p&gt;
&lt;p&gt;My solution consists of two threads:&lt;/p&gt;
&lt;p&gt;GUI Thread:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Creates a NativeWindow and registers event handlers to it. The event handlers do nothing more than queue the resulting events.&lt;/li&gt;
&lt;li&gt;Calls NativeWindow.ProcessEvents() in a loop. The event handlers queue the results.&lt;/li&gt;
&lt;li&gt;Does not interact with NativeWindow in any other way.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Main thread:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Creates the OpenGL context and attaches it to the NativeWindow.&lt;/li&gt;
&lt;li&gt;Performs all program logic and rendering, including swapping framebuffers.&lt;/li&gt;
&lt;li&gt;Does not directly use NativeWindow&#039;s events. Instead, the GUI thread&#039;s queued events are used.&lt;/li&gt;
&lt;li&gt;Directly accesses NativeWindow&#039;s properties such as NativeWindow.Bounds and NativeWindow.WindowInfo.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/3311&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/3311#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Wed, 24 Apr 2013 13:46:28 -0700</pubDate>
 <dc:creator>Shiny</dc:creator>
 <guid isPermaLink="false">3311 at http://www.opentk.com</guid>
</item>
<item>
 <title>Wrong Version? Wrong Documentation? Wrong Idea?</title>
 <link>http://www.opentk.com/node/3306</link>
 <description>&lt;p&gt;Environment:
&lt;ul&gt;
&lt;li&gt;NVIDIA GeForce 310M&lt;/li&gt;
&lt;li&gt;Intel Core i3 CPU&lt;/li&gt;
&lt;li&gt;Windows 7 Professional SP1 x64&lt;/li&gt;
&lt;li&gt;Mono C# compiler version 3.0.8.0 (Mono 3.0.9)&lt;/li&gt;
&lt;li&gt;OpenTK 1.0 stable (&lt;a href=&quot;http://www.opentk.com/files/download-opentk.html&quot;&gt;from here&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Video Driver nv 9.18.13.697&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;My last C# Project is a couple of years old, so I may be a bit rusty - mayhap I forgot something important, but assuming I did not:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/552?page=1&quot;&gt;Here&lt;/a&gt; is stated for OpenTK version 0.9.x-dev:&lt;br /&gt;
&lt;div class=&quot;quote-msg&quot;&gt;
&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;the Fiddler&lt;/em&gt; wrote:&lt;/div&gt;
&lt;p&gt;The game loop is now completely optional. You can inherit from NativeWindow to provide a completely custom game loop, or inherit from GameWindow and override the Run() method.&lt;/div&gt;
&lt;p&gt;This appears, however, not to be the case in &lt;i&gt;my&lt;/i&gt; version: To be overriden, run must be tagged as virtual or override and it is neither.&lt;br /&gt;
... Mayhap this was just bad wording and I am supposed to &lt;i&gt;hide&lt;/i&gt; the method? Unfortunately it calls private members of OpenTK.GameWindow (update_watch, render_watch, DispatchUpdateAndRenderFrame) &lt;i&gt;before&lt;/i&gt; entering the loop, so I cannot reimplement all the functionality &lt;i&gt;but&lt;/i&gt; that.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/3306&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/3306#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Mon, 15 Apr 2013 10:24:49 -0700</pubDate>
 <dc:creator>Zsar</dc:creator>
 <guid isPermaLink="false">3306 at http://www.opentk.com</guid>
</item>
<item>
 <title>GL.Enable(EnableCap.PointSmoot) seems not to work for me</title>
 <link>http://www.opentk.com/node/3308</link>
 <description>&lt;p&gt;Hello,&lt;br /&gt;
I am absolutely new on this list and also relatively new in what concerns OpenTK.&lt;br /&gt;
I am trying to render a simple array of 3D points which is not a problem, only that the points always remain rough square, although I apply a&lt;br /&gt;
&lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;geshifilter-csharp&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Enable&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;EnableCap.&lt;span class=&quot;me1&quot;&gt;PointSmoot&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
while rendering, like follows:&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Enable&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;EnableCap.&lt;span class=&quot;me1&quot;&gt;PointSmooth&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;PointSize&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;mySize&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Color4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;myColor&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
&lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Begin&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;BeginMode.&lt;span class=&quot;me1&quot;&gt;Points&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Vertex3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;myVertex&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;End&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;What could be the reason of this behavior? Is there anything I am doing wrongly?&lt;br /&gt;
Thanks in advance,&lt;br /&gt;
Alex&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/3308#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Fri, 19 Apr 2013 04:05:49 -0700</pubDate>
 <dc:creator>alex_konnen</dc:creator>
 <guid isPermaLink="false">3308 at http://www.opentk.com</guid>
</item>
<item>
 <title>Selection/Picking</title>
 <link>http://www.opentk.com/node/213</link>
 <description>&lt;p&gt;Background:&lt;br /&gt;
Over the last 20 years I have been using the Hoops3d graphics system from TechSoft to provide rendering and graphical selection of objects in a large engineering application. My last foray into OpenGl was 15 years ago on an SGI Onyx using the GLUT framework to render a simulation there was no picking required.&lt;/p&gt;
&lt;p&gt;I have recently started with a new company that is chartered to create a similar engineering system as open source using the .Net framework. The requirements have lead us to OpenGL and the OpenTK GlControl has risen to the top of the list from the 3-4 open source C# OpenGl controls evaluated.&lt;/p&gt;
&lt;p&gt;In the Hoops3d system one would apply a filter to the segment tree (scene graph) to specify what you were going to select, ie whole object, face of a shell, line/edge, or vertex. Every graphical item had a key which could be remapped to a reference to the object that generated it.  Thus when you selected an item you accessed the key to get the underlying object to operate on.&lt;/p&gt;
&lt;p&gt;Question:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/213&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/213#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <enclosure url="http://www.opentk.com/files/SelectionExample.zip" length="89943" type="application/x-zip-compressed" />
 <pubDate>Thu, 17 Jan 2008 05:40:08 -0800</pubDate>
 <dc:creator>djk</dc:creator>
 <guid isPermaLink="false">213 at http://www.opentk.com</guid>
</item>
<item>
 <title>Glu.gluPickMatrix_Similar Command</title>
 <link>http://www.opentk.com/node/3310</link>
 <description>&lt;p&gt;I am using a mouse picking example by using winforms. What is the similar command in openTK (something like GL.XXXXXXX)&lt;/p&gt;
&lt;p&gt;Glu.gluPickMatrix((double) x, (double) (viewport[3] - y), 5.0, 5.0, viewport);&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/3310#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Mon, 22 Apr 2013 15:13:30 -0700</pubDate>
 <dc:creator>rathan001</dc:creator>
 <guid isPermaLink="false">3310 at http://www.opentk.com</guid>
</item>
<item>
 <title>GL.ReadPixels broken?</title>
 <link>http://www.opentk.com/node/1219</link>
 <description>&lt;p&gt;I&#039;m toying with an implementation of the picking technique suggested &lt;a href=&quot;http://www.opentk.com/node/1171&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;However it appears that this code will always return 4x zero, although the buffer was previously cleared with 4x 1f.&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;  &lt;span class=&quot;co1&quot;&gt;// after bind FBO, draw obj, while FBO is bound and readbuffer set to correct color attachment:&lt;/span&gt;
  Byte4 Pixel = &lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; Byte4&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
  &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;ReadPixels&lt;/span&gt;&amp;lt;Byte4&amp;gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Mouse.&lt;span class=&quot;me1&quot;&gt;X&lt;/span&gt;, FBO_height-Mouse.&lt;span class=&quot;me1&quot;&gt;Y&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, PixelFormat.&lt;span class=&quot;me1&quot;&gt;Rgba&lt;/span&gt;, PixelType.&lt;span class=&quot;me1&quot;&gt;UnsignedByte&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;ref&lt;/span&gt; Pixel&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
  &lt;span class=&quot;kw1&quot;&gt;uint&lt;/span&gt; SelectedTriangle = Pixel.&lt;span class=&quot;me1&quot;&gt;ToUInt32&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;this code does prove that there&#039;s neither a problem with the FBO nor the attachment:&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;  &lt;span class=&quot;co1&quot;&gt;// after bind FBO, draw obj, unbind FBO &lt;/span&gt;
  &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Enable&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;EnableCap.&lt;span class=&quot;me1&quot;&gt;Texture2D&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
  &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;BindTexture&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Target, ColorAttachment&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
  Byte4&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; Tex = &lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; Byte4&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;FBO_width * FBO_height&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;;
  &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;GetTexImage&lt;/span&gt;&amp;lt;Byte4&amp;gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Target, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;, PixelFormat.&lt;span class=&quot;me1&quot;&gt;Rgba&lt;/span&gt;, PixelType.&lt;span class=&quot;me1&quot;&gt;UnsignedByte&lt;/span&gt;, Tex&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
  &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;BindTexture&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Target, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
  &lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Disable&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;EnableCap.&lt;span class=&quot;me1&quot;&gt;Texture2D&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
  SelectedTriangle = Tex&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;FBO_height-Mouse.&lt;span class=&quot;me1&quot;&gt;Y&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;*FBO_width+Mouse.&lt;span class=&quot;me1&quot;&gt;X&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;ToUInt32&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/1219&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/1219#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Tue, 06 Oct 2009 08:15:23 -0700</pubDate>
 <dc:creator>Inertia</dc:creator>
 <guid isPermaLink="false">1219 at http://www.opentk.com</guid>
</item>
<item>
 <title>Transparency Issues with Model and Sprite</title>
 <link>http://www.opentk.com/node/3309</link>
 <description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have recently updated my model/sprite rendering, so items in the back will render before items in the front. I am still running into an issue and I&#039;m not certain how to remedy it. I have attached two pictures that will hopefully help tell my story. In the first picture you can see the tree and sprite are rendered properly, the branch extends over the sprite just fine.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://kanesdomain.webs.com/Pic1-1.png&quot; width=&quot;287&quot; height=&quot;299&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/3309&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/3309#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Fri, 19 Apr 2013 11:21:01 -0700</pubDate>
 <dc:creator>redman2k</dc:creator>
 <guid isPermaLink="false">3309 at http://www.opentk.com</guid>
</item>
<item>
 <title>Chapter 0: Learn OpenTK in 15&#039;</title>
 <link>http://www.opentk.com/doc/chapter/0</link>
 <description>&lt;p&gt;So, you have downloaded the &lt;a href=&quot;https://sourceforge.net/project/platformdownload.php?group_id=177681&quot;&gt;latest version of OpenTK&lt;/a&gt; - what now?&lt;/p&gt;
&lt;p&gt;This is a short tutorial that will help you get started with OpenTK in 3 simple steps.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;[Step 1: Installation]&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Run the installer you downloaded. It will ask where you want OpenTK to be installed. Any folder will do.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;[Step 2: Use OpenTK]&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;Create a new project in your .NET IDE (don&#039;t have a .NET IDE? Check out &lt;a href=&quot;http://monodevelop.com/Download&quot;&gt;MonoDevelop&lt;/a&gt; or &lt;a href=&quot;http://www.microsoft.com/express/vcsharp/&quot;&gt;Visual Studio Express&lt;/a&gt;). Make it of type &quot;Console Application&quot;. In the &quot;Solution Explorer&quot; pane, rightclick &quot;References&quot; and select to &quot;Add Reference&quot;. In the Browse tab, select OpenTK and click OK.&lt;/p&gt;
&lt;p&gt;OpenTK depends on System.Drawing, so you also need to add a reference to System.Drawing.dll.  In the &quot;Solution Explorer&quot; pane, rightclick &quot;References&quot; and select to &quot;Add Reference&quot;.  In the .NET tab, select System.Drawng and click OK.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/doc/chapter/0&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/doc/chapter/0#comments</comments>
 <pubDate>Mon, 07 Sep 2009 13:54:20 -0700</pubDate>
 <dc:creator>Palidan</dc:creator>
 <guid isPermaLink="false">1156 at http://www.opentk.com</guid>
</item>
<item>
 <title>OpenTK Tutorial</title>
 <link>http://www.opentk.com/node/3307</link>
 <description>&lt;p&gt;I am new to OpenTK, could anybody share some basic tutorial ? (I plan to develop a 2D CAD application first and then 3D)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Pahee&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/3307#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Tue, 16 Apr 2013 18:55:12 -0700</pubDate>
 <dc:creator>rathan001</dc:creator>
 <guid isPermaLink="false">3307 at http://www.opentk.com</guid>
</item>
</channel>
</rss>
