<?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>Outside Context Problem</title>
	<atom:link href="http://psytek.highlyillogical.org/excession/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://psytek.highlyillogical.org/excession</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 18 Jul 2010 13:48:43 +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>Wireframes &amp; toon shaders</title>
		<link>http://psytek.highlyillogical.org/excession/?p=63</link>
		<comments>http://psytek.highlyillogical.org/excession/?p=63#comments</comments>
		<pubDate>Sun, 18 Jul 2010 13:48:43 +0000</pubDate>
		<dc:creator>Sisela</dc:creator>
				<category><![CDATA[Maya]]></category>

		<guid isPermaLink="false">http://psytek.highlyillogical.org/excession/?p=63</guid>
		<description><![CDATA[Using Maya&#8217;s toon shaders, it is easy to create a retro, Tron style, sci-fi appearance.
Select a poly and from the Rendering menu set, select Toon &#62; Assign fill shader &#62; Solid colour, and set the Out colour to black from teh attribute panel.
With the poly select now select Toon &#62; Assign outline &#62; Add new [...]]]></description>
			<content:encoded><![CDATA[<p>Using Maya&#8217;s toon shaders, it is easy to create a retro, Tron style, sci-fi appearance.</p>
<p>Select a poly and from the Rendering menu set, select Toon &gt; Assign fill shader &gt; Solid colour, and set the Out colour to black from teh attribute panel.</p>
<p>With the poly select now select Toon &gt; Assign outline &gt; Add new toon outline.</p>
<p>Set Profile Lines &gt; Profile color &gt; Green</p>
<p>Goto Screenspace width control, enable it and set both min and max pixel width to be 1</p>
<p>Set Crease Lines &gt; Crease colour to be green</p>
<p>Uncheck Crease lines &gt; Hard creases only, and set Crease angle min\max to be 0 (zero)</p>
<p>If you like, you can also attacha brush to the wireframe lines; this allows you to add glow for even more sci-fi awesomeness!</p>
]]></content:encoded>
			<wfw:commentRss>http://psytek.highlyillogical.org/excession/?feed=rss2&amp;p=63</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spherical spirals</title>
		<link>http://psytek.highlyillogical.org/excession/?p=51</link>
		<comments>http://psytek.highlyillogical.org/excession/?p=51#comments</comments>
		<pubDate>Mon, 01 Mar 2010 23:19:43 +0000</pubDate>
		<dc:creator>Sisela</dc:creator>
				<category><![CDATA[MEL]]></category>
		<category><![CDATA[Maya]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://psytek.highlyillogical.org/excession/?p=51</guid>
		<description><![CDATA[Messing around with MEL again, I wanted to create a spiral path that wrapped around a sphere. Now I know how to create a 2d spiral (See previous post), and mapping this into 3 dimensions shouldn&#8217;t be too hard with handy polar coordinates.
The difference between 2d and 3d polar coordinates is an additional angle, phi, [...]]]></description>
			<content:encoded><![CDATA[<p>Messing around with MEL again, I wanted to create a spiral path that wrapped around a sphere. Now I know how to create a 2d spiral (See previous post), and mapping this into 3 dimensions shouldn&#8217;t be too hard with handy polar coordinates.</p>
<p>The difference between 2d and 3d polar coordinates is an additional angle, phi, which defines the inclination of our point.</p>
<p>Unlike the 2d spiral where the radius increased by a fixed amount every 2pi radians, the radius on a spherical spiral remains constant; every single point will be mapped to a location on the surface of a sphere with a radius of r.</p>
<p>Previously, theta, went from 0 to xpi radians, where x was twice the number of revolutions our spiral went (a single revolution being 2pi).</p>
<p>This value of theta, together with the radius, r, defines completely a single point in 2d space, on an x\y plane, with theta being the angle around the origin.</p>
<p>Mapping this all onto a 3d sphere introduces the use of phi, which determines the declination of the point in 3d space, along an arc running from +z to -z (Note that for 3d polar coordinates z is considered vertical). The value of phi runs from +pi/2 (+z) to -pi/2), -z.</p>
<div id="attachment_52" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-52" title="spiralSphere" src="http://psytek.highlyillogical.org/excession/wp-content/uploads/2010/03/spiralSphere-300x263.png" alt="Spiral sphere created in MEL" width="300" height="263" /><p class="wp-caption-text">Spiral sphere created in MEL</p></div>
<p>This maps out to the spiral sphere shown above.</p>
<p>The code for this is not much more complex than for the 2d spiral: <a href="/excession/downloads/sphereSpiral.mel">sphereSpiral.mel</a></p>
<p>Try altering the values for revolutions, resolutions and radius to get different effects.</p>
]]></content:encoded>
			<wfw:commentRss>http://psytek.highlyillogical.org/excession/?feed=rss2&amp;p=51</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spiral galaxy creation</title>
		<link>http://psytek.highlyillogical.org/excession/?p=31</link>
		<comments>http://psytek.highlyillogical.org/excession/?p=31#comments</comments>
		<pubDate>Mon, 15 Feb 2010 22:07:47 +0000</pubDate>
		<dc:creator>Sisela</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://psytek.highlyillogical.org/excession/?p=31</guid>
		<description><![CDATA[Following the maxim work smart, not hard, I thought about the spiral galaxy Iw as trying to make in Maya. As this will be used solely as a backdrop to a larger image, there was no need to have this in 3d, so I looked up some photoshop tutorials on galaxy creation.
This was done following [...]]]></description>
			<content:encoded><![CDATA[<p>Following the maxim work smart, not hard, I thought about the spiral galaxy Iw as trying to make in Maya. As this will be used solely as a backdrop to a larger image, there was no need to have this in 3d, so I looked up some photoshop tutorials on galaxy creation.</p>
<div id="attachment_47" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-47" title="Galaxy" src="http://psytek.highlyillogical.org/excession/wp-content/uploads/2010/02/Galaxy_11-300x286.jpg" alt="Spiral galaxy created in Photoshop" width="300" height="286" /><p class="wp-caption-text">Spiral galaxy created in Photoshop</p></div>
<p>This was done following the neat tutorial at <a href="http://blog.hexagonstar.com/galaxy-tutorial/">http://blog.hexagonstar.com/galaxy-tutorial/</a></p>
<p>Good work! Now to just work on playing with the settings to get a more stylised, super high res, galaxy of my own to mess around with.</p>
]]></content:encoded>
			<wfw:commentRss>http://psytek.highlyillogical.org/excession/?feed=rss2&amp;p=31</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script timing</title>
		<link>http://psytek.highlyillogical.org/excession/?p=27</link>
		<comments>http://psytek.highlyillogical.org/excession/?p=27#comments</comments>
		<pubDate>Sun, 24 Jan 2010 18:43:46 +0000</pubDate>
		<dc:creator>Sisela</dc:creator>
				<category><![CDATA[MEL]]></category>
		<category><![CDATA[Maya]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://psytek.highlyillogical.org/excession/?p=27</guid>
		<description><![CDATA[Currently playing around with writing greebling MEL scripts. Greebles are created through iterative extruding of polygon faces. I&#8217;ve found this can be ridiculously intensive for my computer (Q9550\4GB). Certainly turning off the undo queue helps, as does deleting the construction history for objects which are being greebled, but still I can easily create a script, [...]]]></description>
			<content:encoded><![CDATA[<p>Currently playing around with writing greebling MEL scripts. <a href="http://en.wikipedia.org/wiki/Greeble">Greebles </a>are created through iterative extruding of polygon faces. I&#8217;ve found this can be ridiculously intensive for my computer (Q9550\4GB). Certainly turning off the undo queue helps, as does deleting the construction history for objects which are being greebled, but still I can easily create a script, which despite performing maybe 200 extrusion operations, takes 5 minutes to complete.</p>
<p>I figured the best way to produce optimised code was to begin timing different versions of the script. Took me a short while to track down, but there is a useful <a href="http://download.autodesk.com/us/maya/2010help/Commands/timerX.html">timerX </a>function available within MEL, enabling you to time the execution of particular script areas.</p>
<p>Hopefully this should highlight any bottle necks in my greebling scripts!</p>
]]></content:encoded>
			<wfw:commentRss>http://psytek.highlyillogical.org/excession/?feed=rss2&amp;p=27</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spirals, Galaxies and A-level maths</title>
		<link>http://psytek.highlyillogical.org/excession/?p=5</link>
		<comments>http://psytek.highlyillogical.org/excession/?p=5#comments</comments>
		<pubDate>Sat, 27 Jun 2009 09:24:34 +0000</pubDate>
		<dc:creator>Sisela</dc:creator>
				<category><![CDATA[MEL]]></category>
		<category><![CDATA[Maths]]></category>
		<category><![CDATA[Maya]]></category>

		<guid isPermaLink="false">http://psytek.highlyillogical.org/excession/?p=5</guid>
		<description><![CDATA[I want an opening shot looking down on a spiral galaxy, not unlike our own. I figured a spiral was a good starting block for this. With a spiral EP curve, I could attach paint effects and guide particles in a typical, galactic, spirally fashion.
A friend has pointed out to me several times that when [...]]]></description>
			<content:encoded><![CDATA[<p>I want an opening shot looking down on a spiral galaxy, not unlike our own. I figured a spiral was a good starting block for this. With a spiral EP curve, I could attach paint effects and guide particles in a typical, galactic, spirally fashion.</p>
<p>A friend has pointed out to me several times that when modelling in 3d, it&#8217;s how it looks that is important, not the degree of accuracy in the behind-the-scenes modelling. Knowing this, I should just draw a spiral freehand. However, I found it much more satisfying (and time consuming) working out to automatically create mathematically precise spirals using MEL.</p>
<p>Initially, I searched the web for a spiral script &#8211; surely someone else would have had need to create neat, precise spirals in Maya before? I found a few scripts, but none of them really worked how I wanted them to work. Further, I thought it would be interesting to understand the maths underlying spiral creation. Firing up Google, and with my handy copy of Complete Maya Programming to hand, I set to work.</p>
<p><strong>Things I needed to know</strong></p>
<p>An Archimedes spiral is a spiral whose consecutive turns are all a constant distance from one another.</p>
<p>Maya uses the Cartesian coordinate system; A given point is defined by 3 dimensions: x, y, z. Together, these three values represent a points unique position in 3d space. For a 2d shape, such as a flat spiral, we can safely ignore the z value, which would otherwise give our spiral depth.</p>
<p>Polar coordinates are an alternate coordinate system, where a point is represented in 2d space by the equation p = (r, Θ). R is the distance of the point from the origin, Θ represents the angle (in radians) around the axis perpendicular to the 2d plane. (3d polar coordinates use a 3rd value, Φ, which specifies a rotation around the x\z axis).</p>
<p>Why are we talking about polar geometry? Well, an Archimedes spiral can be described using the polar equation r=Θ. Actually, the exact equation is r(Θ) = a + bΘ, but for our purposes we will assume a = 0 and b=1, which helps simplify the equation.</p>
<p>a is a fixed value, and specifies the initial turn of the spiral. It is between 0 and 2π radians.<br />
b represents the distance between consecutive turns<br />
r represents the distance of the point from the origin.<br />
Θ represents the angle around the origin, in radians.</p>
<p>How can we convert this equation into a Cartesian function?</p>
<p>We can ignore a and assume a value of 0, negating its presence in the equation. This gives us r(Θ) = bΘ</p>
<p>b is a fixed value, we can assume this to be 1, and modify as necessary. This reduce the equation further to r(Θ) = Θ (The polar equivalent of y = x!)</p>
<p>Θ is calculated in radians within the polar equation. To plot a spiral, we need to calculate a set number of points per revolution (4 minimum). The more points we calculate, the more accurate the spiral, although the more intensive for Maya to work with. Working in degrees gives us nice whole nunbers to work in &#8211; a full turn of spiral covers 360 degrees, at a coordinate every 10 degrees, that produces 36 points per turn. I decided on a point every 20 degrees (18 points per turn). It is easy then run through a loop, incrementing the counter by 20, and then converting this to radians for our formula.</p>
<p>So a point is calculated in radians with the formula p = (r, Θ) &#8211; as Θ increases, so does r (as r=Θ). As we calculate the varying degrees, by stepping through our loop, we can plot the points in a polar view, and will need to convert them to Cartesian coordinates in order to plot them within Maya.</p>
<p>Polar coordinates can be converted to Cartesian coordinates using p = (r cos(Θ), r sin(Θ), 0) (Note that the z value of 0 merely indicates that we are creating a 2d spiral.)</p>
<p>This gives us x = r cos(Θ), y = r sin(Θ) which can be easily plotted to a spiral using MEL.</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;"><span lang="en-GB"> </span></p>
<div id="attachment_11" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-11" title="mySpiral" src="http://psytek.highlyillogical.org/excession/wp-content/uploads/2009/06/mySpiral-300x293.jpg" alt="Sample archimedes spiral, drawn in Maya" width="300" height="293" /><p class="wp-caption-text">Sample archimedes spiral, drawn in Maya</p></div>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;"><strong>Archimedes spiral MEL script for Maya</strong></p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;"><span lang="en-GB">Download <a href="downloads/mySpiral.mel">mySpiral.mel (version 1.0)</a> (Right click to download)<br />
</span></p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;"><span lang="en-GB">This file is commented so you can easily experiment with different values &#8211; try them and see what you get. I plan on giving this script a front end though, so can try different values much more easily.<br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://psytek.highlyillogical.org/excession/?feed=rss2&amp;p=5</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adventures in Maya</title>
		<link>http://psytek.highlyillogical.org/excession/?p=1</link>
		<comments>http://psytek.highlyillogical.org/excession/?p=1#comments</comments>
		<pubDate>Sat, 27 Jun 2009 08:31:37 +0000</pubDate>
		<dc:creator>Sisela</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://psytek.highlyillogical.org/excession/?p=1</guid>
		<description><![CDATA[Welcome to my blog, Outside Context Problem!
This is a place for me to store stream of conciousness ramblings, notes, updates and thoughts as I work through a personal project of mine; creating a short animation based on the book Excession by Ian M Banks, using Autodesk&#8217;s Maya.
]]></description>
			<content:encoded><![CDATA[<p>Welcome to my blog, Outside Context Problem!</p>
<p>This is a place for me to store stream of conciousness ramblings, notes, updates and thoughts as I work through a personal project of mine; creating a short animation based on the book <a href="http://en.wikipedia.org/wiki/Excession">Excession</a> by Ian M Banks, using Autodesk&#8217;s Maya.</p>
]]></content:encoded>
			<wfw:commentRss>http://psytek.highlyillogical.org/excession/?feed=rss2&amp;p=1</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
