<?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>impworks &#124; Mark Caldwell &#187; stereo image</title>
	<atom:link href="http://www.impworks.co.uk/tag/stereo-image/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.impworks.co.uk</link>
	<description>Mark Caldwell&#039;s Web Site</description>
	<lastBuildDate>Wed, 08 Sep 2010 21:55:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Vue Stereo Image Camera Creation Script</title>
		<link>http://www.impworks.co.uk/vue/vue-python-scripts/vue-stereo-image-camera-creation-script/</link>
		<comments>http://www.impworks.co.uk/vue/vue-python-scripts/vue-stereo-image-camera-creation-script/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 23:02:35 +0000</pubDate>
		<dc:creator>impworks</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Python Script]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[stereo image]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[TV]]></category>
		<category><![CDATA[Vue]]></category>
		<category><![CDATA[WAI]]></category>

		<guid isPermaLink="false">http://www.impworks.co.uk/?page_id=4672</guid>
		<description><![CDATA[A python script to create a pair of cameras for rendering stereo images in Vue.  It's pretty easy to do without the script but this just speeds things up a bit.]]></description>
			<content:encoded><![CDATA[<p>This python script creates a pair of cameras for rendering stereo images in Vue.  It&#8217;s pretty easy to do without the script but this just speeds things up a bit.  <a href="http://teena.biz/">Christina</a> has two tutorials about making stereo camera&#8217;s on her web site. Its a basic solution that doesn&#8217;t generate an animated camera and it won&#8217;t work with cameras that aren&#8217;t flat and level. Originally created after a request from <a href="http://www.art-head-start.com/">Jim Coe</a>.
</p>
<p>
Note: This script does not render the scene.  Once you have used it you will need to render the scene from each camera yourself and do whatever magic you need to do with the output.
</p>
<p>
Download: <a href="/works/vuepythonscripts/vuestereocamera.zip">Vue Stereo Camera Script</a> (3k Zip Archive)
</p>
<h2>Python Code</h2>
<div class="codebit">
<pre><code>
#******************************************************
# Creates a pair of cameras in a vue scene for
# rendering stereo position images
#
# - vuestereocamera.py
# - By Mark Caldwell
# - Version 0.1
# - 3rd September 2007
# - Copyright Mark Caldwell 2007
# - Tested with Vue 6.5 Infinite
#
# How to use in 3 easy steps
#
# 1. Download this file onto your computer
#
# 2. Position a camera where you want to render a
#    stereo image for and make sure it's your selected
#    camera
#
# 3. Then run script and wait for it to work
#    To run it go to Python -> Run Python Script
#    Then locate the file on your computer
#
#******************************************************

#------------------------------------------------------
# Get Input and Test Value is a positive floating point
#------------------------------------------------------

def TestValAngle (messagetxt,titletxt,default):
    hit=-2
    val=-1

    while hit<0:
        try:
            if float(val)>0:
                hit=1;
            elif hit==-2:
                val=Prompt (messagetxt,default,true,titletxt)
                hit=-1
            else:
                val=Prompt ("Error: Value must an positive number\n\n"+messagetxt,val,true,titletxt)
        except:
            hit=-1
            val=Prompt ("Error: Value must an positive number\n\n"+messagetxt,val,true,titletxt)

    return float(val)

#------------------------------------------------------
# Convert Degrees to Radians
#------------------------------------------------------

def degtorad(deg):
    rad=deg*(math.pi/180)
    return rad

#--------------------------------------------
# Start of Main Code
#--------------------------------------------

import math

separation=TestValAngle ('Eye Separation','Eye Separation','6.5')

camX=StoreCamera  ()

SwitchCamera (camX)

SelectByType(VuePython.VUEBasicObject.VOT_Camera)
cam = GetSelectedObjectByIndex(0)

pos=cam.Position()
rot=cam.GetRotationAngles()

y=(math.sin(degtorad(rot[2]))*separation)+pos[1]
x=(math.cos(degtorad(rot[2]))*separation)+pos[0]

cam.SetPosition(x,y,pos[2])

#----------------------------------------------
# End of Script
#----------------------------------------------    

</code></pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.impworks.co.uk/vue/vue-python-scripts/vue-stereo-image-camera-creation-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vue Stereo Image Camera Creation Script Page</title>
		<link>http://www.impworks.co.uk/2009/08/vue-stereo-image-camera-creation-script-page/</link>
		<comments>http://www.impworks.co.uk/2009/08/vue-stereo-image-camera-creation-script-page/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 10:46:49 +0000</pubDate>
		<dc:creator>impworks</dc:creator>
				<category><![CDATA[3d]]></category>
		<category><![CDATA[My Stuff]]></category>
		<category><![CDATA[Vue]]></category>
		<category><![CDATA[impworks]]></category>
		<category><![CDATA[impworks site news]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[stereo image]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.impworks.co.uk/?p=5153</guid>
		<description><![CDATA[So glad I switched this site to WordPress &#8211; adding new pages is so much easier. Tonight I&#8217;ve added a new page for the simple Vue Stereo Image Camera Creation Script I wrote back in 2007.]]></description>
			<content:encoded><![CDATA[<p>So glad I switched this site to WordPress &#8211; adding new pages is so much easier.</p>
<p>Tonight I&#8217;ve added a new page for the simple <a href="/vue/vue-python-scripts/vue-stereo-image-camera-creation-script/">Vue Stereo Image Camera Creation Script</a> I wrote back in 2007.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.impworks.co.uk/2009/08/vue-stereo-image-camera-creation-script-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vue Stereo Image Camera Creation Script</title>
		<link>http://www.impworks.co.uk/2007/09/vue-stereo-image-camera-creation-script/</link>
		<comments>http://www.impworks.co.uk/2007/09/vue-stereo-image-camera-creation-script/#comments</comments>
		<pubDate>Mon, 03 Sep 2007 20:38:00 +0000</pubDate>
		<dc:creator>impworks</dc:creator>
				<category><![CDATA[Vue]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[impworks]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Python Script]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[stereo image]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Writing]]></category>

		<guid isPermaLink="false">http://www.impworks.org/2007/09/vue-stereo-image-camera-creation-script/</guid>
		<description><![CDATA[I was asked by Jim Coe if I knew of a script for creating a pair of cameras for rendering stereo images in Vue. I didn&#8217;t but writing one wasn&#8217;t particularly difficult. It isn&#8217;t a complete solution as it won&#8217;t generate an animated camera and it won&#8217;t work with cameras that aren&#8217;t flat and level. [...]]]></description>
			<content:encoded><![CDATA[<p>
I was asked by <a href="http://www.art-head-start.com/">Jim Coe</a> if I knew of a script for creating a pair of cameras for rendering stereo images in Vue.  I didn&#8217;t but writing one wasn&#8217;t particularly difficult.  It isn&#8217;t a complete solution as it won&#8217;t generate an animated camera and it won&#8217;t work with cameras that aren&#8217;t flat and level.  So here is a quick Vue python script to do just that&#8230;
</p>
<p>
Download: <a href="http://www.impworks.co.uk/works/vuepythonscripts/vuestereocamera.zip" onclick="javascript:urchinTracker ('/works/vuepythonscripts/vuestereocamera.zip')">Vue Stereo Camera Script</a> (3KB)
</p>
<p>
Edit: Of course you don&#8217;t need a script to create stereo images using Vue.  <a href="http://teena.biz/">Christina </a>has two tutorials about this on her web site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.impworks.co.uk/2007/09/vue-stereo-image-camera-creation-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
