<?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>Shadow mapping in OpenTK</title>
 <link>http://www.opentk.com/node/2984</link>
 <description>&lt;p&gt;I want to know how to use Shadow mapping in OpenTK. Can you give me a simple example on that? I am new here and I need some help. Thanks a lot!&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2984#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/10">Tutorials and examples</category>
 <pubDate>Thu, 17 May 2012 05:48:34 -0700</pubDate>
 <dc:creator>imike901224</dc:creator>
 <guid isPermaLink="false">2984 at http://www.opentk.com</guid>
</item>
<item>
 <title>spammers</title>
 <link>http://www.opentk.com/node/2445</link>
 <description>&lt;p&gt;there are a lot of spambots (or spamhumans ;)) in the forum and the spam filter is checking all my posts. is the same happening to all of you?&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2445#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/6">Off-topic Ordeals</category>
 <pubDate>Thu, 28 Apr 2011 03:09:30 -0700</pubDate>
 <dc:creator>avc81</dc:creator>
 <guid isPermaLink="false">2445 at http://www.opentk.com</guid>
</item>
<item>
 <title>Signed up simply because...</title>
 <link>http://www.opentk.com/node/2868</link>
 <description>&lt;p&gt;I thought a thanks was in order. OpenTK is fantastic, coming from a C/C++ background I think C# is amazing and I love how easy the switch to C# for OpenGL apps has been using OpenTK. I&#039;ve been working in C# using OpenTK for about a year now, and I can&#039;t speak highly enough of it, it&#039;s made my personal projects that much more enjoyable to work on.&lt;/p&gt;
&lt;p&gt;Thank you :)&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2868#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/6">Off-topic Ordeals</category>
 <pubDate>Mon, 06 Feb 2012 19:56:51 -0800</pubDate>
 <dc:creator>Zoolander</dc:creator>
 <guid isPermaLink="false">2868 at http://www.opentk.com</guid>
</item>
<item>
 <title>Mouse capturing</title>
 <link>http://www.opentk.com/node/2935</link>
 <description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&#039;ve looked at the previous mouse capture threads, but none of them seem to work on Windows 7 x64 with the latest nightly (from 3-15).&lt;/p&gt;
&lt;p&gt;I&#039;ve tried to roll my own solution:&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;protected&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;override&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;void&lt;/span&gt; OnLoad&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;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;kw1&quot;&gt;base&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;OnLoad&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;e&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;ClearColor&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;.1f, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;.2f, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;.5f, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;.0f&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;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;;
&amp;nbsp;
            Mouse.&lt;span class=&quot;me1&quot;&gt;Move&lt;/span&gt; += &lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; EventHandler&amp;lt;MouseMoveEventArgs&amp;gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;onMouseMoveHandler&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; onMouseMoveHandler&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;object&lt;/span&gt; sender, MouseMoveEventArgs 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;
            MouseState current = &lt;span class=&quot;kw5&quot;&gt;OpenTK&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Input&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Mouse&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;GetState&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;;
            Console.&lt;span class=&quot;me1&quot;&gt;WriteLine&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.&lt;span class=&quot;me1&quot;&gt;X&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
            &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;br0&quot;&gt;&amp;#40;&lt;/span&gt;prevMouseX != current.&lt;span class=&quot;me1&quot;&gt;X&lt;/span&gt; || prevMouseY != current.&lt;span class=&quot;me1&quot;&gt;Y&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &amp;amp;&amp;amp; &lt;span class=&quot;kw1&quot;&gt;this&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Focused&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;kw5&quot;&gt;OpenTK&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Input&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Mouse&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;SetPosition&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;&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;
            prevMouseX = current.&lt;span class=&quot;me1&quot;&gt;X&lt;/span&gt;;
            prevMouseY = current.&lt;span class=&quot;me1&quot;&gt;Y&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 problem with this is that when I click on the title bar, of the application, the application is moved to the bottom of the screen.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/2935&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/2935#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Sat, 21 Apr 2012 16:18:04 -0700</pubDate>
 <dc:creator>jyc</dc:creator>
 <guid isPermaLink="false">2935 at http://www.opentk.com</guid>
</item>
<item>
 <title>Nvidia Compatibility - please help me</title>
 <link>http://www.opentk.com/node/2976</link>
 <description>&lt;p&gt;Ok here is what i have:&lt;br /&gt;
&lt;a href=&quot;http://imgur.com/tjeOO&quot;&gt;&lt;img src=&quot;http://i.imgur.com/tjeOOl.jpg&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;video:&lt;br /&gt;
&lt;a href=&quot;http://www.youtube.com/watch?v=LZkGLiqhJV0&quot; title=&quot;http://www.youtube.com/watch?v=LZkGLiqhJV0&quot;&gt;http://www.youtube.com/watch?v=LZkGLiqhJV0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And as the title says its refusing to run correctly under nvidia.&lt;br /&gt;
Creating VAO&#039;s fails for every object using Normals.&lt;/p&gt;
&lt;p&gt;I think it stopped working when i separated VAO and VBO generation.&lt;/p&gt;
&lt;p&gt;Im not posting code snippets because I don&#039;t think the problem can be solved this way.&lt;br /&gt;
Instead ill give you the full source.&lt;br /&gt;
&lt;a href=&quot;http://www.file-upload.net/download-4363745/OpenTkProject.rar.html&quot; title=&quot;SOURCE&quot;&gt;SOURCE&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would be really thankful if someone can help me out.&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2976#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Tue, 15 May 2012 12:12:48 -0700</pubDate>
 <dc:creator>ultradr3mer</dc:creator>
 <guid isPermaLink="false">2976 at http://www.opentk.com</guid>
</item>
<item>
 <title>Linux</title>
 <link>http://www.opentk.com/doc/chapter/1/linux</link>
 <description>&lt;h4&gt;Installing Mono&lt;/h4&gt;
&lt;p&gt;If you are using a recent Linux distribution, all prerequisites for OpenTK projects should be readily available: the Mono runtime and the Mono compilers. Execute &quot;&lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;geshifilter-csharp&quot;&gt;mono --version&lt;/code&gt;&lt;/span&gt;&quot; and &quot;&lt;span class=&quot;geshifilter&quot;&gt;&lt;code class=&quot;geshifilter-csharp&quot;&gt;gmcs --version&lt;/code&gt;&lt;/span&gt;&quot; and check if the output looks like this:&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-bash&quot;&gt;$ mono --version
Mono JIT compiler version &lt;span class=&quot;nu0&quot;&gt;1.2&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;.6&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;tarball&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
Copyright &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;C&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2002&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;-2007&lt;/span&gt; Novell, Inc and Contributors. &lt;a href=&quot;http://www.mono-project.com&quot; title=&quot;www.mono-project.com&quot;&gt;www.mono-project.com&lt;/a&gt;
        TLS:           __thread
        GC:            Included Boehm &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;with typed GC&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
&amp;nbsp;
$ gmcs --version
Mono C&lt;span class=&quot;re3&quot;&gt;# compiler version &lt;span class=&quot;nu0&quot;&gt;1.2&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;.6&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;.0&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/doc/chapter/1/linux&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/doc/chapter/1/linux#comments</comments>
 <pubDate>Thu, 29 Nov 2007 00:55:22 -0800</pubDate>
 <dc:creator>objarni</dc:creator>
 <guid isPermaLink="false">103 at http://www.opentk.com</guid>
</item>
<item>
 <title>Vb.net and there problems </title>
 <link>http://www.opentk.com/node/2781</link>
 <description>&lt;p&gt;Hello -&lt;br /&gt;
i working 99% with vb.net verry good&lt;br /&gt;
begining opengl with tao. ... wrapper&lt;/p&gt;
&lt;p&gt;and see in the last weeks tao = OLD&lt;br /&gt;
OpenTK its NEW (and better !?)&lt;br /&gt;
-&amp;gt; for me importend for the tuture .. ok i GO to OpenTK&lt;/p&gt;
&lt;p&gt;BUT the last 10 days i search and search and testing and downloading and and and&lt;/p&gt;
&lt;p&gt;nothing for VB or its (sorry ) bullshit ...&lt;/p&gt;
&lt;p&gt;then i go to backtotheroots and hope i make a good beginn with simple &quot;beginn&quot; &lt;/p&gt;
&lt;p&gt;but after 3 hours its come this:&lt;/p&gt;
&lt;p&gt;                Vector3.Multiply(ParticleAttributes(i).Direction, CSng(e.Time), temp)  &#039; OK&lt;/p&gt;
&lt;p&gt;                Vector3.add(VBO(i).Position, temp, VBO(i).Position) &#039; NOT OK  &lt;/p&gt;
&lt;p&gt;in c# its with &quot;REF&quot; &lt;/p&gt;
&lt;p&gt;but in vb i have no idea ...&lt;/p&gt;
&lt;p&gt;=========================&lt;/p&gt;
&lt;p&gt;and now my simple ask :-)&lt;/p&gt;
&lt;p&gt;its OpenTK AND VB a good think or not ?&lt;/p&gt;
&lt;p&gt;i found 2 samples ~OpenTK and VB.net~  but NOT ONE its going without errors (not t corect Classes / imports etc.)&lt;/p&gt;
&lt;p&gt;sorry for my english :-)&lt;/p&gt;
&lt;p&gt;=======&lt;br /&gt;
the Samples from openTK its nice ... but when i  convert to vb.net not going *g*&lt;br /&gt;
=======&lt;/p&gt;
&lt;p&gt;with TAO i have a good &quot;learningsample&quot;  and verry fast in vb.net&lt;br /&gt;
but convert to openTk its to hard for me :-(&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2781#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Mon, 28 Nov 2011 04:24:40 -0800</pubDate>
 <dc:creator>Fremder</dc:creator>
 <guid isPermaLink="false">2781 at http://www.opentk.com</guid>
</item>
<item>
 <title>QuickFont load font turns the screen blank.</title>
 <link>http://www.opentk.com/node/2914</link>
 <description>&lt;p&gt;Hi, I&#039;m quite new to OpenGL.&lt;/p&gt;
&lt;p&gt;I have written an application that makes a geographic mapping in c# using openTK opengl.&lt;br /&gt;
It works quite well and now it became necessary to add text on my screen for some labels.&lt;/p&gt;
&lt;p&gt;I used quickfont library. added it as subproject and reference, added the font folder to my project.&lt;br /&gt;
what happens now is that whenever I try to load a font, all my screen goes black. My other drawings dissapear.&lt;br /&gt;
I&#039;m not even using a print method to put anything on my screen.&lt;br /&gt;
the font seems to load ok, as I get a pointer and the data seems to be filled in.&lt;br /&gt;
I tried with loading various different fonts and always get the same result, my screen goes black. removing the font declaration and all comes back&lt;/p&gt;
&lt;p&gt;this is what I add&lt;/p&gt;
&lt;p&gt;controlsText = new QFont(&quot;Fonts/HappySans.ttf&quot;, 16);&lt;/p&gt;
&lt;p&gt;controlsText being declared earlier in the members as QFont.&lt;/p&gt;
&lt;p&gt;Does somebody have an idea in what direction I have to search why the drawing goes blank ?&lt;/p&gt;
&lt;p&gt;pictures show before and after&lt;/p&gt;
&lt;p&gt;thanks in advance,&lt;/p&gt;
&lt;p&gt;J. Roeland&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2914#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Fri, 30 Mar 2012 14:07:04 -0700</pubDate>
 <dc:creator>JurgenRoeland</dc:creator>
 <guid isPermaLink="false">2914 at http://www.opentk.com</guid>
</item>
<item>
 <title>VBO Example</title>
 <link>http://www.opentk.com/node/425</link>
 <description>&lt;p&gt;I wanted to play with vertex arrary buffers so I took a look at the VBO example code.&lt;br /&gt;
It only setup a single vertex array and I wanted to know how to specify normals or texture coordinates &lt;/p&gt;
&lt;p&gt;I updated it to use a vertex array, normal array, texture array, and color array.&lt;/p&gt;
&lt;p&gt;I then started wondering about dynamically updating the VBO so I added some methods to update the VBO from both the source array with the BufferData call and with getting and modifying the data from the VBO using MapBuffer.&lt;/p&gt;
&lt;p&gt;I have uploaded the source if anyone is interested or if it would be good to have in the OpenTK examples.&lt;/p&gt;
&lt;p&gt;As for performance, what do people suggest for updating an existing VBO?  Copying over new data with BufferData or updating the data with MapBuffer?  With MapBuffer you get an IntPtr back so I ended up wrapping it in unsafe so that I could work with the data.&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/425#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/10">Tutorials and examples</category>
 <enclosure url="http://www.opentk.com/files/T08_VBO.cs" length="18769" type="text/plain" />
 <pubDate>Thu, 26 Jun 2008 18:08:42 -0700</pubDate>
 <dc:creator>JTalton</dc:creator>
 <guid isPermaLink="false">425 at http://www.opentk.com</guid>
</item>
<item>
 <title>OpenGL-OpenTK rotation problem</title>
 <link>http://www.opentk.com/node/2974</link>
 <description>&lt;p&gt;I&#039;m a real noob who just started learning 3d programming and i have a really hard time learning about rotation in 3D space. My problem is that I can&#039;t seem to figure out how to rotate an object using it&#039;s local coordinates.&lt;/p&gt;
&lt;p&gt;I have a basic class for 3d objects and, for starters, i want to implement functions that will rotate the object on a certain axis with x degrees. So far i have the following:&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-cpp&quot;&gt; &lt;span class=&quot;kw2&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;void&lt;/span&gt; RollDeg&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw4&quot;&gt;float&lt;/span&gt; angle&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;this&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;rotation&lt;/span&gt; = Matrix4.&lt;span class=&quot;me1&quot;&gt;Mult&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;rotation, 
            Matrix4.&lt;span class=&quot;me1&quot;&gt;CreateRotationX&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;MyMath.&lt;span class=&quot;me1&quot;&gt;Conversions&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;DegToRad&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;angle&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;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;kw2&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;void&lt;/span&gt; PitchDeg&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw4&quot;&gt;float&lt;/span&gt; angle&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;this&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;rotation&lt;/span&gt; = Matrix4.&lt;span class=&quot;me1&quot;&gt;Mult&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;rotation, 
             Matrix4.&lt;span class=&quot;me1&quot;&gt;CreateRotationY&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;MyMath.&lt;span class=&quot;me1&quot;&gt;Conversions&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;DegToRad&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;angle&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;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;kw2&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;void&lt;/span&gt; YawDeg&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw4&quot;&gt;float&lt;/span&gt; angle&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;this&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;rotation&lt;/span&gt; = Matrix4.&lt;span class=&quot;me1&quot;&gt;Mult&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;rotation,
             Matrix4.&lt;span class=&quot;me1&quot;&gt;CreateRotationZ&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;MyMath.&lt;span class=&quot;me1&quot;&gt;Conversions&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;DegToRad&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;angle&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;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;&#039;rotation&#039; is a 4x4 matrix which starts as the identity matrix. Each time i want to roll/pitch/yaw the object, i call one of the functions above.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/2974&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/2974#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Mon, 14 May 2012 15:47:52 -0700</pubDate>
 <dc:creator>robjons21</dc:creator>
 <guid isPermaLink="false">2974 at http://www.opentk.com</guid>
</item>
<item>
 <title>Terrain/Mesh LOD</title>
 <link>http://www.opentk.com/node/2973</link>
 <description>&lt;p&gt;Hey&lt;/p&gt;
&lt;p&gt;i was working on some terrain using it for a large area. Now i cutted my terrain into pieces of&lt;br /&gt;
500x500 pixel heightmaps to render them more effiicient. To get most performance i just need&lt;br /&gt;
to implement any kind of LOD algorithm. First i dont want to use shaders but opperate by myselfe&lt;br /&gt;
on the cpu.&lt;/p&gt;
&lt;p&gt;What is the best LOD to take for my terrain and for any other mesh?&lt;br /&gt;
Does anyone has an example implementation so that i could play arround with it?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2973#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Sun, 13 May 2012 16:47:30 -0700</pubDate>
 <dc:creator>XZibit</dc:creator>
 <guid isPermaLink="false">2973 at http://www.opentk.com</guid>
</item>
<item>
 <title>OpenTK - Consider donating!</title>
 <link>http://www.opentk.com/node/2793</link>
 <description>&lt;p&gt;OpenTK users,&lt;/p&gt;
&lt;p&gt;A number of forum posts have been asking why OpenTK doesn&#039;t have a prominent &quot;donate&quot; button, and I noticed that &lt;a href=&quot;https://sourceforge.net/donate/index.php?group_id=177681&quot;&gt;there is a Paypal-based one  at the SourceForge project site.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you&#039;ve found OpenTK as useful and high-quality as I have for your .NET/Mono apps, show your appreciation with a donation!  If you&#039;re a developer using OpenTK in a commercial application, talk to your boss about having your organization make a donation.&lt;/p&gt;
&lt;p&gt;As it says on the donation page:&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
OpenTK is free to use but costs real money to develop and support. If you feel this project is worth it, consider donating a small amount to help it along. Every little bit counts!&lt;br /&gt;
&lt;/b&gt;&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2793#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/3">OpenTK Development</category>
 <pubDate>Tue, 06 Dec 2011 07:40:18 -0800</pubDate>
 <dc:creator>thorrablot</dc:creator>
 <guid isPermaLink="false">2793 at http://www.opentk.com</guid>
</item>
<item>
 <title>context.MakeCurrent issues</title>
 <link>http://www.opentk.com/node/2971</link>
 <description>&lt;p&gt;I&#039;m having troubles with MakeCurrent on contexts, the code below is a boild down example of what I&#039;m trying to do.&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;            &lt;span class=&quot;kw5&quot;&gt;OpenTK&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Graphics&lt;/span&gt;.&lt;span class=&quot;kw3&quot;&gt;IGraphicsContext&lt;/span&gt; context;
&amp;nbsp;
            &lt;span class=&quot;kw1&quot;&gt;using&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;var&lt;/span&gt; win = &lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;kw5&quot;&gt;OpenTK&lt;/span&gt;.&lt;span class=&quot;kw3&quot;&gt;NativeWindow&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;br0&quot;&gt;&amp;#123;&lt;/span&gt;
                context = &lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;kw5&quot;&gt;OpenTK&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Graphics&lt;/span&gt;.&lt;span class=&quot;kw3&quot;&gt;GraphicsContext&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw5&quot;&gt;OpenTK&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Graphics&lt;/span&gt;.&lt;span class=&quot;kw3&quot;&gt;GraphicsMode&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Default&lt;/span&gt;, win.&lt;span class=&quot;me1&quot;&gt;WindowInfo&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
                context.&lt;span class=&quot;me1&quot;&gt;MakeCurrent&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;win.&lt;span class=&quot;me1&quot;&gt;WindowInfo&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
                context.&lt;span class=&quot;me1&quot;&gt;LoadAll&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;;
                context.&lt;span class=&quot;me1&quot;&gt;MakeCurrent&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&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;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
            &lt;span class=&quot;kw1&quot;&gt;using&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;var&lt;/span&gt; win = &lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;kw5&quot;&gt;OpenTK&lt;/span&gt;.&lt;span class=&quot;kw3&quot;&gt;NativeWindow&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;br0&quot;&gt;&amp;#123;&lt;/span&gt;
                context.&lt;span class=&quot;me1&quot;&gt;MakeCurrent&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;win.&lt;span class=&quot;me1&quot;&gt;WindowInfo&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
                context.&lt;span class=&quot;me1&quot;&gt;MakeCurrent&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&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;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;The context.MakeCurrent(win.WindowInfo) in the second using block throws an exception saying: Failed to make context 65537 current. Error: 2000&lt;br /&gt;
Error 2000 means Invalid Pixel Format.&lt;/p&gt;
&lt;p&gt;Is this not how you are supposed to manage contexts? What I&#039;m i doing wrong?&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2971#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Fri, 11 May 2012 07:19:42 -0700</pubDate>
 <dc:creator>miffe</dc:creator>
 <guid isPermaLink="false">2971 at http://www.opentk.com</guid>
</item>
<item>
 <title>Matrix implementation, class or structure?</title>
 <link>http://www.opentk.com/node/2970</link>
 <description>&lt;p&gt;Matrix, class or structure?&lt;/p&gt;
&lt;p&gt;I wonder if there is any reason to implement an array as a structure type.&lt;/p&gt;
&lt;p&gt;In principle I think it&#039;s more a problem than an advantage. For example:&lt;/p&gt;
&lt;p&gt;Given the following code ...&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;&amp;nbsp;
    &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;
        Entity&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; entities = &lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; Entity&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&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;;
&amp;nbsp;
            &lt;span class=&quot;kw1&quot;&gt;for&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; cont = &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;; cont &amp;lt; &lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;; cont++&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                entities&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;cont&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; = &lt;span class=&quot;kw1&quot;&gt;new&lt;/span&gt; Entity&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;kw1&quot;&gt;foreach&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Entity e &lt;span class=&quot;kw1&quot;&gt;in&lt;/span&gt; entities&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
                Matrix m = e.&lt;span class=&quot;me1&quot;&gt;Transform&lt;/span&gt;; &lt;span class=&quot;co1&quot;&gt;// first copy (16 values)&lt;/span&gt;
                Modification&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;ref&lt;/span&gt; m&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
                e.&lt;span class=&quot;me1&quot;&gt;Transform&lt;/span&gt; = m; &lt;span class=&quot;co1&quot;&gt;// second copy (16 values)&lt;/span&gt;
            &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
        &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;void&lt;/span&gt; Modification&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;ref&lt;/span&gt; Matrix m&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
            m.&lt;span class=&quot;me1&quot;&gt;m1&lt;/span&gt; = &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;;
        &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
    &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;kw1&quot;&gt;struct&lt;/span&gt; Matrix
    &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m1; &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m9;
        &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m2; &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m10;
        &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m3; &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m11;
        &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m4; &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m12;
        &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m5; &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m13;
        &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m6; &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m14;
        &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m7; &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m15;
        &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m8; &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; m16;
    &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/2970&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/2970#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Thu, 10 May 2012 09:12:42 -0700</pubDate>
 <dc:creator>migueltk</dc:creator>
 <guid isPermaLink="false">2970 at http://www.opentk.com</guid>
</item>
<item>
 <title>VBO (on Windows) vs (on Ubuntu)</title>
 <link>http://www.opentk.com/node/2951</link>
 <description>&lt;p&gt;Hello Folks,&lt;br /&gt;
My problem is the following:&lt;/p&gt;
&lt;p&gt;I have a struct, which is a base of each vertices, which looks something like this.&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;struct&lt;/span&gt; VertexPositionNormalTangentTexture
    &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;Vector3&lt;/span&gt; point;
        &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;Vector3&lt;/span&gt; normal;
        &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;Vector3&lt;/span&gt; tangent;
        &lt;span class=&quot;kw1&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;Vector2&lt;/span&gt; texCoord;
   &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;at some point of my code i use&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;VertexPositionNormalTangentTexture&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; array = .....
&lt;span class=&quot;kw3&quot;&gt;GL&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;BufferData&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;.., .., .., array, ..&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;b&gt;&lt;i&gt;My experience on Windows:&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
My stuff drawn looks fancy&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;i&gt;My experience on Ubuntu:&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;
The points are misaligned (like Point and Tangent or Normal or even Texture bits were swapped for SOME of the points)&lt;br /&gt;
(Or the Stride is bad somehow)&lt;br /&gt;
No correct triangles formed! A pile of mess displayed.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/2951&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/2951#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Thu, 03 May 2012 11:35:44 -0700</pubDate>
 <dc:creator>ifan</dc:creator>
 <guid isPermaLink="false">2951 at http://www.opentk.com</guid>
</item>
<item>
 <title>Is this the proper way to triangle strip in openGL?</title>
 <link>http://www.opentk.com/node/2965</link>
 <description>&lt;p&gt;I am using openTK and want to make a terrain using triangle strips. Is this right? The output is okay I just want to make sure its drawing properly.&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; stepSize = &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;;
&lt;span class=&quot;kw1&quot;&gt;int&lt;/span&gt; MapSize = &lt;span class=&quot;nu0&quot;&gt;32&lt;/span&gt;;
&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;TriangleStrip&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&lt;span class=&quot;kw1&quot;&gt;for&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; bx = &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;; bx &amp;lt; MapSize + &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;; bx += stepSize&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;for&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; bz = &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;; bz &amp;lt; MapSize + &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;; bz += stepSize&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;Vertex3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;bx, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;, bz&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;bx, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;, bz + stepSize&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;bx + stepSize, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;, bz&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;bx + stepSize, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;, bz + stepSize&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;span class=&quot;br0&quot;&gt;&amp;#125;&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;_________________________&lt;br /&gt;
&lt;a href=&quot;http://www.jobcentrenigeria.com&quot;&gt;Latest Jobs in Nigeria&lt;/a&gt;&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2965#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/3">OpenTK Development</category>
 <pubDate>Tue, 08 May 2012 08:30:44 -0700</pubDate>
 <dc:creator>tonysidus</dc:creator>
 <guid isPermaLink="false">2965 at http://www.opentk.com</guid>
</item>
<item>
 <title>Screen coordinates to Object coordinates without gluUnProject</title>
 <link>http://www.opentk.com/node/2942</link>
 <description>&lt;p&gt;I&#039;ve  been looking the forums and checked online tutorials, I want to know how can I convert screen coordinates to object coordinates, so I can draw objects using the mouse. I&#039;ve seen many solutions to this, but all of them use the Glu.unproject function, which appears to be deprecated. So I want to know if anyone knows of another way to do this that won&#039;t rely on deprecated code.&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2942#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Tue, 01 May 2012 13:56:31 -0700</pubDate>
 <dc:creator>samssonart</dc:creator>
 <guid isPermaLink="false">2942 at http://www.opentk.com</guid>
</item>
<item>
 <title>[Solved Mostly]Can&#039;t read joystick properly</title>
 <link>http://www.opentk.com/node/1838</link>
 <description>&lt;p&gt;Here is my Joystick test(part of a GameWindow code and I use VS debugger):&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;protected&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;override&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;void&lt;/span&gt; OnUpdateFrame&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;FrameEventArgs 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;base&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;OnUpdateFrame&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;e&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Keyboard&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;Key&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Escape&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        Exit&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;kw1&quot;&gt;int&lt;/span&gt; cont = Joysticks&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;me1&quot;&gt;Button&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Count&lt;/span&gt;;
    &lt;span class=&quot;kw1&quot;&gt;for&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; i = &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;; i &amp;lt; cont; i++ &lt;span class=&quot;br0&quot;&gt;&amp;#41;&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;Joysticks&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;me1&quot;&gt;Button&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;i&lt;span class=&quot;br0&quot;&gt;&amp;#93;&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;br0&quot;&gt;&amp;#40;&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;br0&quot;&gt;&amp;#41;&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;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;As you can guess by the title, no exeption is thrown when I push all the buttons!&lt;br /&gt;
I also check that the I have one and only one joystick by this test:&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;protected&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;override&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;void&lt;/span&gt; OnUpdateFrame&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;FrameEventArgs 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;base&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;OnUpdateFrame&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;e&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Keyboard&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;Key&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;Escape&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        Exit&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;kw1&quot;&gt;int&lt;/span&gt; cont = Joysticks.&lt;span class=&quot;me1&quot;&gt;Count&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;cont == &lt;span class=&quot;nu0&quot;&gt;1&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;br0&quot;&gt;&amp;#40;&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;br0&quot;&gt;&amp;#41;&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;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;And as you can guess, the exeption was thrown.&lt;br /&gt;
(Please don&#039;t critic me about my tests that they are&#039;nt like NUnit and etc. :-) )&lt;br /&gt;
My joystick is made by Xcom and it looks like a standard Playstation&#039;s joystick. Here is a picture of it(sorry about the size):&lt;br /&gt;
&lt;img src=&quot;http://www.bigsale.co.il/3/344205441.png&quot; alt=&quot;&quot; /&gt;&lt;br /&gt;
It&#039;s fully supported by DirectX, and I play TrackMania with it without problems.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/1838&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/1838#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Sun, 06 Jun 2010 12:37:33 -0700</pubDate>
 <dc:creator>Tal</dc:creator>
 <guid isPermaLink="false">1838 at http://www.opentk.com</guid>
</item>
<item>
 <title>dragging the line segment by selecting the vertex</title>
 <link>http://www.opentk.com/node/2937</link>
 <description>&lt;p&gt;I am drawing lines using mouse event functions,but my main goal is to select those drawn lines and resize or move to another location.how am i supposed to do that?
&lt;ol&gt;
&lt;li&gt;how to select line or rectangle which is drawn using mouse event dynamically?&lt;/li&gt;
&lt;li&gt;how to move selected primitive to another location?&lt;/li&gt;
&lt;li&gt;how to re size the line by dragging the selected vertex?&lt;/li&gt;
&lt;/ol&gt;
</description>
 <comments>http://www.opentk.com/node/2937#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Mon, 23 Apr 2012 21:42:06 -0700</pubDate>
 <dc:creator>mahantesh</dc:creator>
 <guid isPermaLink="false">2937 at http://www.opentk.com</guid>
</item>
<item>
 <title>macosx problems with device input</title>
 <link>http://www.opentk.com/node/2967</link>
 <description>&lt;p&gt;Device input is non-functional on MacOSX (Snow Leopard 10.6.8, mono 2.10.9) in the latest binary download of OpenTK, as well as version 1.0.278.44921. This includes Mouse input as well as Keyboard input, however with slight differences between the two. Mouse input is simply not recognised, whereas any keyboard input causes a hang (the spinning rainbow cursor). No error messages are received on the command line.&lt;/p&gt;
&lt;p&gt;This is true of custom applications, as well as the OpenTK Examples.exe binary that is included.&lt;/p&gt;
&lt;p&gt;EDIT; Note that this relates to the gamewindow.mouse and gamewindow.keyboard event overloads to detect device states. As per a previous post on this issue, I moved the device input to use the deprecated InputDevice structure, which results in the same issues. The mouse cursor values are also not updated.&lt;/p&gt;
&lt;p&gt;EDIT2: The same code works fine in Windows and Linux with device inputs. After taking the OpenTK code and stepping through it, there&#039;s something really bizarre going on internally:&lt;br /&gt;
Mouse:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/2967&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/2967#comments</comments>
 <pubDate>Tue, 08 May 2012 23:06:41 -0700</pubDate>
 <dc:creator>emacinnes</dc:creator>
 <guid isPermaLink="false">2967 at http://www.opentk.com</guid>
</item>
<item>
 <title>matrix3</title>
 <link>http://www.opentk.com/node/2966</link>
 <description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;I created a matrix3 class, more or less a copy of the Matrix4 class, but not everything is implemented (Determinant/Invert is missing). You can find a diff at:&lt;br /&gt;
&lt;a href=&quot;http://anthila.dyndns.org/opentk-matrix3.patch&quot;&gt;http://anthila.dyndns.org/opentk-matrix3.patch&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you want, you can include the code in opentk.&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2966#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/3">OpenTK Development</category>
 <pubDate>Tue, 08 May 2012 14:18:02 -0700</pubDate>
 <dc:creator>joe</dc:creator>
 <guid isPermaLink="false">2966 at http://www.opentk.com</guid>
</item>
<item>
 <title>Using GTK# and OpenTK</title>
 <link>http://www.opentk.com/node/2949</link>
 <description>&lt;p&gt;Hello, I&#039;m looking to use GTK# and GtkGLArea# with OpenTK.&lt;br /&gt;
Anyone have any idea how would I go about setting up a GTK# window with OpenGL rendered with OpenTK?&lt;br /&gt;
Is there a tutorial on that anywhere?&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2949#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Thu, 03 May 2012 07:38:20 -0700</pubDate>
 <dc:creator>TheCurseOfNor</dc:creator>
 <guid isPermaLink="false">2949 at http://www.opentk.com</guid>
</item>
<item>
 <title>OpenVG Proposal</title>
 <link>http://www.opentk.com/node/1020</link>
 <description>&lt;p&gt;Hello all.&lt;/p&gt;
&lt;p&gt;I know that it&#039;s planned to support OpenVG later in future. And that&#039;s ok.&lt;br /&gt;
But before that is done I&#039;d like to propose some thoughts and ideas.&lt;/p&gt;
&lt;p&gt;OpenVG 1.1 is nice open standard for 2D rendering engine.&lt;br /&gt;
It&#039;s main target mobile devices, but it&#039;s also declared for engine for device independent UI framework.&lt;/p&gt;
&lt;p&gt;One of such framework is Flash and that&#039;s even declared in OpenVG 1.1.&lt;/p&gt;
&lt;p&gt;But since we are all in .NET world - we have another alternative - XAML based UIs - WPF and Silverlight. WPF and Silverlight don&#039;t need any new frameworks, since Microsoft doing that by themselves, but Mono needs new modern UI Framework. GTK# is nice, Windows.Forms also. But all those are really old enough. It&#039;s hard to compare them with Silverlight/WPF UI stack.&lt;/p&gt;
&lt;p&gt;WPF for Mono stuck somewhere behind just because it&#039;s too large project. But Moonlight is well in very active development. Moonlight main target to do Linux support for Silverlight, but we all know that after all difference in Silverlight and WPF not that large. And with Moonlight that becomes possible to make WPF-Like applications based on full Mono framework access.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.opentk.com/node/1020&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.opentk.com/node/1020#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/3">OpenTK Development</category>
 <pubDate>Tue, 14 Jul 2009 03:45:06 -0700</pubDate>
 <dc:creator>Max Kosenko</dc:creator>
 <guid isPermaLink="false">1020 at http://www.opentk.com</guid>
</item>
<item>
 <title>Per pixel lighting?</title>
 <link>http://www.opentk.com/node/2929</link>
 <description>&lt;p&gt;I am trying to achieve per pixel lighting in my game.  When I run my game, everything shows up solid black.&lt;/p&gt;
&lt;p&gt;My VS:&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-cpp&quot;&gt;varying vec2 texture_coordinate;
&amp;nbsp;
&lt;span class=&quot;kw4&quot;&gt;void&lt;/span&gt; main&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;
  vec3 normal, lightDir;
  vec4 diffuse;
  &lt;span class=&quot;kw4&quot;&gt;float&lt;/span&gt; NdotL;
&amp;nbsp;
  &lt;span class=&quot;co1&quot;&gt;// Positions&lt;/span&gt;
  gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
  texture_coordinate = vec2&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;gl_MultiTexCoord0&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
  &lt;span class=&quot;co1&quot;&gt;// Normals&lt;/span&gt;
  normal = normalize&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;gl_NormalMatrix * gl_Normal&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
  lightDir = normalize&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;vec3&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;gl_LightSource&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;me1&quot;&gt;position&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;;
  NdotL = max&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;dot&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;normal, lightDir&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;0.0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;
&amp;nbsp;
  &lt;span class=&quot;co1&quot;&gt;// Colors&lt;/span&gt;
  diffuse = gl_FrontMaterial.&lt;span class=&quot;me1&quot;&gt;diffuse&lt;/span&gt; * gl_LightSource&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;me1&quot;&gt;diffuse&lt;/span&gt;;
  gl_FrontColor = NdotL * diffuse;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;My FS:&lt;/p&gt;
&lt;div class=&quot;geshifilter&quot;&gt;
&lt;pre class=&quot;geshifilter-csharp&quot;&gt;varying vec2 texture_coordinate;
&amp;nbsp;
uniform sampler2D color_texture;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;void&lt;/span&gt; main&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;
    gl_FragColor = texture2D&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;color_texture, texture_coordinate&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; * gl_Color;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;I don&#039;t really know how to set gl_LightSource[0], I set them parameters on light source 0, and enable it.&lt;br /&gt;
Any help?&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2929#comments</comments>
 <category domain="http://www.opentk.com/taxonomy/term/2">Programming Support</category>
 <pubDate>Sat, 14 Apr 2012 16:36:06 -0700</pubDate>
 <dc:creator>.-_</dc:creator>
 <guid isPermaLink="false">2929 at http://www.opentk.com</guid>
</item>
<item>
 <title>QuickFont</title>
 <link>http://www.opentk.com/node/2628</link>
 <description>&lt;p&gt;I&#039;d just like to announce the release of QuickFont, a text printing and font generation library: &lt;a href=&quot;http://www.opentk.com/project/QuickFont&quot; title=&quot;http://www.opentk.com/project/QuickFont&quot;&gt;http://www.opentk.com/project/QuickFont&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I could only upload 4 images on the project page, so I&#039;ve uploaded the remaining screenshots here.&lt;/p&gt;
&lt;p&gt;Enjoy. :)&lt;/p&gt;
&lt;p&gt;James L.&lt;/p&gt;
</description>
 <comments>http://www.opentk.com/node/2628#comments</comments>
 <pubDate>Sun, 31 Jul 2011 16:21:33 -0700</pubDate>
 <dc:creator>james_lohr</dc:creator>
 <guid isPermaLink="false">2628 at http://www.opentk.com</guid>
</item>
</channel>
</rss>

