<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>quixotic project blog &#187; sleepless nights debugging</title>
	<atom:link href="http://michi.ist.inspirationslos.de/lang/de/tag/sleepless-nights-debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://michi.ist.inspirationslos.de</link>
	<description></description>
	<lastBuildDate>Sat, 06 Feb 2010 10:11:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Trouble with Vertex Buffer Objects solved</title>
		<link>http://michi.ist.inspirationslos.de/lang/de/2009/10/25/trouble-with-vertex-buffer-objects-solved</link>
		<comments>http://michi.ist.inspirationslos.de/lang/de/2009/10/25/trouble-with-vertex-buffer-objects-solved#comments</comments>
		<pubDate>Sun, 25 Oct 2009 17:29:59 +0000</pubDate>
		<dc:creator>michi</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[lwjgl]]></category>
		<category><![CDATA[sleepless nights debugging]]></category>

		<guid isPermaLink="false">http://michi.ist.inspirationslos.de/?p=162</guid>
		<description><![CDATA[It has been a while since I last used Vertex Buffer Objects (VBO) with LWJGL. It seemed as if they had changed some of the method signatures since I used them last time. I couldn&#8217;t even get the simplest example running. After experimenting for a while I finally figured it out. Have a look at [...]]]></description>
			<content:encoded><![CDATA[<p>It has been a while since I last used Vertex Buffer Objects (VBO) with <a href="http://www.lwjgl.org" target="_self">LWJGL</a>. It seemed as if they had changed some of the method signatures since I used them last time. I couldn&#8217;t even get the simplest example running. After experimenting for a while I finally figured it out. Have a look at the signature of the VertexPointer method:</p>

<div class="wp_syntax"><div class="code"><pre class="java java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> glVertexPointer<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> size, <span style="color: #000066; font-weight: bold;">int</span> type,
  <span style="color: #000066; font-weight: bold;">int</span> stride, <span style="color: #000066; font-weight: bold;">long</span> pointer_buffer_offset<span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>With the last offset one can specify where the vertex information starts in the buffer given to the VBO management. Well, I could/should have guessed that this offset has to be in <strong>bytes</strong> since I am dealing with a buffer here but instead I used the number of <strong>floats</strong>.. So next time I see an operation dealing with buffers that takes a long argument I&#8217;ll try the byte-count from the beginning..</p>
]]></content:encoded>
			<wfw:commentRss>http://michi.ist.inspirationslos.de/lang/de/2009/10/25/trouble-with-vertex-buffer-objects-solved/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino/Meggy Jr Upload Fehler</title>
		<link>http://michi.ist.inspirationslos.de/lang/de/2009/04/07/arduinomeggy-jr-upload-fehler</link>
		<comments>http://michi.ist.inspirationslos.de/lang/de/2009/04/07/arduinomeggy-jr-upload-fehler#comments</comments>
		<pubDate>Tue, 07 Apr 2009 19:32:41 +0000</pubDate>
		<dc:creator>michi</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[meggy]]></category>
		<category><![CDATA[meggy jr rgb]]></category>
		<category><![CDATA[sleepless nights debugging]]></category>

		<guid isPermaLink="false">http://michi.ist.inspirationslos.de/?p=120</guid>
		<description><![CDATA[Wenn man Meggy Jr zusammen mit dem USB-to-Serial Kabel aus dem Evil Mad Scientist Shop verwendet, dann kann es gut sein, dass man schnell auf folgenden Fehler stößt:
avrdude: stk500_getsync(): not in sync: resp=0&#215;00
avrdude: stk500_disable(): protocol error, expect=0&#215;14, resp=0&#215;51
Der Fehler taucht beim Hochladen eines neuen Sketches auf Meggy auf. Es hilft zwar vor dem Hochladen das [...]]]></description>
			<content:encoded><![CDATA[<p>Wenn man Meggy Jr zusammen mit dem USB-to-Serial Kabel aus dem Evil Mad Scientist Shop verwendet, dann kann es gut sein, dass man schnell auf folgenden Fehler stößt:</p>
<blockquote><p><em>avrdude: stk500_getsync(): not in sync: resp=0&#215;00<br />
avrdude: stk500_disable(): protocol error, expect=0&#215;14, resp=0&#215;51</em></p></blockquote>
<p>Der Fehler taucht beim Hochladen eines neuen Sketches auf Meggy auf. Es hilft zwar vor dem Hochladen das USB-Kabel zu entfernen und wieder einzustecken, aber schon beim nächsten Mal hat man den Fehler wieder. Die Lösung habe ich irgendwo in den Foren von Evil Mad Scientist gefunden und ist recht einfach. Man muss lediglich eine Einstellung am COM Port vornehmen. Also fix den Gerätemanager geöffnet, den COM Port herausgesucht der bei der Installation des Kabels erstellt wurde (bei mir z.B. COM 3) und den Reiter &#8220;Anschlußeinstellungen&#8221; angeklickt. Danach &#8220;Erweitert&#8221; auswählen und den unten markierten Haken bei &#8220;Beim Schließen der Verbindung RTS setzen&#8221; aktivieren. Das genügt und alles funktioniert wie es soll. Ich habe ein Windows XP, aber das sollte ganz ähnlich für andere Windowsversionen funktioneren, falls der Fehler dort überhaupt auftaucht.</p>

<div id="attachment_121" class="wp-caption alignnone" style="width: 310px"><a href="http://michi.ist.inspirationslos.de/files/2009/04/comeinstellungen02.jpg"><img class="size-medium wp-image-121" title="COMPortEinstellungenMeggyJr" src="http://michi.ist.inspirationslos.de/files/2009/04/comeinstellungen02-300x214.jpg" alt="RTS Flag" width="300" height="214" /></a><p class="wp-caption-text">RTS Flag</p></div>
]]></content:encoded>
			<wfw:commentRss>http://michi.ist.inspirationslos.de/lang/de/2009/04/07/arduinomeggy-jr-upload-fehler/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
