<?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>The 3DGS Nerd &#187; programming</title>
	<atom:link href="http://3dgsnerd.xware-cg.com/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://3dgsnerd.xware-cg.com</link>
	<description>A blog about 3DGS, Nerds and a lot of other stuff</description>
	<lastBuildDate>Mon, 07 Dec 2009 23:54:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Programming Advices</title>
		<link>http://3dgsnerd.xware-cg.com/programming-advises/</link>
		<comments>http://3dgsnerd.xware-cg.com/programming-advises/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 17:41:38 +0000</pubDate>
		<dc:creator>Michael Schwarz</dc:creator>
				<category><![CDATA[3DGS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[advise]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[scheme]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[SED]]></category>
		<category><![CDATA[syntax]]></category>
		<category><![CDATA[WED]]></category>

		<guid isPermaLink="false">http://3dgsnerd.xware-cg.com/programming-advises/</guid>
		<description><![CDATA[I think I can contribute some advise regarding on how to program comfortable, and thus increase workflow.

First of all, if you have a big widescreen monitor, use the space, don’t maximize windows’ but rather arrange them the way that you use 3/4 of the monitor for your most important program (e.g. WED) and the other [...]]]></description>
			<content:encoded><![CDATA[<p>I think I can contribute some advise regarding on how to program comfortable, and thus increase workflow.</p>
<p><span id="more-86"></span></p>
<p>First of all, if you have a big widescreen monitor, use the space, don’t maximize windows’ but rather arrange them the way that you use 3/4 of the monitor for your most important program (e.g. WED) and the other 1/4 for tools or some other secondary program you access often (e.g. SED). If you have two or more screens, it’s advisable to use the monitors one program for each one. For example like me:</p>
<p><a href="http://3dgsnerd.xware-cg.com/wp-content/uploads/ProgrammingAdvises_F17F/workspace.jpg"><img style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" title="workspace" src="http://3dgsnerd.xware-cg.com/wp-content/uploads/ProgrammingAdvises_F17F/workspace_thumb.jpg" border="0" alt="workspace" width="532" height="190" /></a></p>
<p>I use my 17” Screen for SED, and additionally also move the sidebar from WED to the second screen, so I have the entire 21” Screen for WED, and WED only. Also I use a minimalistic Windows theme. If you don’t want to install new Windows themes, you can also just set the theme setting for “Active Window Bar” to a smaller value, so the title bars of your windows are smaller and occupy less space.</p>
<h5>WED</h5>
<p>I have adjusted the key mapping in WED, so I have to move the mouse less and have more time doing the actual work rather than running the mouse across screen all the time to select the appropriate tools.</p>
<p>Keeping in mind that I have a German keyboard (if you have an American/English keyboard, just imagine the Y and Z key swapped) this is how I mapped them:</p>
<ul>
<li>&gt; &#8211; Select mode</li>
<li>Y &#8211; Move mode</li>
<li>X &#8211; Rotate mode</li>
<li>C &#8211; Scale mode</li>
<li>A &#8211; Vertex mode</li>
<li>S &#8211; Edge mode</li>
<li>D &#8211; Face mode</li>
<li>[Tilde] &#8211; Show properties window</li>
<li>F8 / F9 &#8211; Build / Run (A4 Nostalgia!)</li>
</ul>
<p>Now you have a incredibly increased workflow in WED, once you get used to use these shortcuts, you can modify and move objects in a matter of split seconds instead of wasting precious time moving the mouse to your toolbar every time you need to change the mode.</p>
<p>SED</p>
<p>I use a different syntax highlighting as you can see from the screenshot above. I consider it more tranquilizing to the eyes than the bright default scheme, this way you don’t get the infamous “tired eyes” from programming hours and hours through the night. If you like the theme, you can download it at the end of this post.</p>
<p>If you are still using A6 and are bound to C-Script, or use C-Script for other reasons, then it is a good idea to give your variables useful names to remember what type of information they store as C-Script only has one variable definition.</p>
<p>For example:</p>
<div style="font-size: 8pt; margin: 20px 0px 10px; overflow: auto; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border: gray 1px solid; padding: 4px;">
<div style="font-size: 8pt; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;">
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;">var bIsUsed = <span style="color: #0000ff">false</span>; <span style="color: #008000">// b for Boolean</span></pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;">var iEnemyCount = 10; <span style="color: #008000">// i for Integer</span></pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;">var dDistanceFromPlayer = 2.3; <span style="color: #008000">// d for Double/Decimal</span></pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;">var hMusicFile; <span style="color: #008000">// h for Handle</span></pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;">var sTempString = str_create(<span style="color: #006080">"Hello World!"</span>); <span style="color: #008000">// s for String</span></pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;"><span style="color: #0000ff">string</span> sTestString = <span style="color: #006080">"Just a test"</span>; // Same here</pre>
<p> </p></div>
</div>
<p>Also remember, that you can use variables and even skills to save strings in them! That makes it easier to create string arrays (which are a bit tricky when using the “text” object, for example:</p>
<div style="font-size: 8pt; margin: 20px 0px 10px; overflow: auto; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border: gray 1px solid; padding: 4px;">
<div style="font-size: 8pt; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;">
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;"><span style="color: #008000">// Single String</span></pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;"><span style="color: #0000ff">var</span> sOneString;</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;">sOneString = str_create(<span style="color: #006080">"This is the content"</span>);</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;"> </pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;"><span style="color: #008000">// String array</span></pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;"><span style="color: #0000ff">var</span> sStringArray[5];</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;">sStringArray[0] = str_create(<span style="color: #006080">"The"</span>);</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;">sStringArray[1] = str_create(<span style="color: #006080">"cake"</span>);</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;">sStringArray[2] = str_create(<span style="color: #006080">"is"</span>);</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;">sStringArray[3] = str_create(<span style="color: #006080">"a"</span>);</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;">sStringArray[4] = str_create(<span style="color: #006080">"lie"</span>);</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;"> </pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;"><span style="color: #008000">// And in skills</span></pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;">my.skill1 = str_create(<span style="color: #006080">"Wohoo!"</span>);</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;"> </pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;"><span style="color: #008000">// You can access them just as easy, no workarounds.</span></pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;">draw_text(sOneString, 200, 200, vector(255,255,255));</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: #f4f4f4; border-style: none; padding: 0px;">draw_text(sStringArray[2], 200, 300, vector(255,255,255));</pre>
<pre style="font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; line-height: 12pt; font-family: consolas, 'Courier New', courier, monospace; background-color: white; border-style: none; padding: 0px;">draw_text(my.skill1, 200, 400, vector(255,255,255));</pre>
<p> </p></div>
</div>
<p>That’s enough for now! Practice with what you learned today, and then I’ll publish some new advise!</p>
<div id="scid:fb3a1972-4489-4e52-abe7-25a00bb07fdf:67474318-952b-44b1-a455-57250098382b" class="wlWriterEditableSmartContent" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<p>Download the SED Color Scheme <a href="http://3dgsnerd.xware-cg.com/wp-content/uploads/ProgrammingAdvises_F17F/MSScheme.sedscheme" target="_blank">Download</a></div>
]]></content:encoded>
			<wfw:commentRss>http://3dgsnerd.xware-cg.com/programming-advises/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Portico</title>
		<link>http://3dgsnerd.xware-cg.com/portico/</link>
		<comments>http://3dgsnerd.xware-cg.com/portico/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 12:27:29 +0000</pubDate>
		<dc:creator>Michael Schwarz</dc:creator>
				<category><![CDATA[3DGS]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[This Humanity has no Future]]></category>
		<category><![CDATA[alive]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[portico]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[still]]></category>
		<category><![CDATA[trailer]]></category>

		<guid isPermaLink="false">http://3dgsnerd.xware-cg.com/?p=10</guid>
		<description><![CDATA[The Tuscture Science Practical Application Testing Facility wants to remind you that the Tuscture Science Portable Handheld Inter Spatial Portal Creation Device is not allmighty. You cannot create shoes for orphans with it.


Trailer coming soon.
]]></description>
			<content:encoded><![CDATA[<p><em>The Tuscture Science Practical Application Testing Facility wants to remind you that the Tuscture Science Portable Handheld Inter Spatial Portal Creation Device is not allmighty. You cannot create shoes for orphans with it.</em></p>
<p><img src="http://3dgsnerd.xware-cg.com/wp-content/uploads/2008/01/00.jpg" alt="Portico Title" height="313" width="501" /></p>
<p><span id="more-10"></span></p>
<p>Trailer coming soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://3dgsnerd.xware-cg.com/portico/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
