<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Placing Object at a location on the screen.]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=983&amp;type=atom"/>
	<updated>2014-05-01T16:14:07Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=983</id>
		<entry>
			<title type="html"><![CDATA[Re: Placing Object at a location on the screen.]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6742#p6742"/>
			<content type="html"><![CDATA[<p>Thank you anael! I will see if this does what I need it to.</p><p>Edit: I can&#039;t get it to work. I did:</p><div class="codebox"><pre><code>pos = getUnprojectedPoint(mainCamera,vec3(.5,.5,1))</code></pre></div><p>Then:</p><div class="codebox"><pre><code>setPosition(monkey,pos)</code></pre></div><p>thinking that this should put the monkey at the center of the camera. Am I doing it right?</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-05-01T16:14:07Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6742#p6742</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Placing Object at a location on the screen.]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6741#p6741"/>
			<content type="html"><![CDATA[<p>you can use getUnProjectedPoint :<br />pos = getUnProjectedPoint(Camera, vec3(0.5, 0.5, 1))</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-04-30T22:00:23Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6741#p6741</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Placing Object at a location on the screen.]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6740#p6740"/>
			<content type="html"><![CDATA[<p>I used the getWindowSale() function to do this:</p><div class="codebox"><pre><code>windowSize = getWindowScale()
WIDTH = windowSize[1]
HEIGHT = windowSize[2]

CENTER = {WIDTH/2,HEIGHT/2}</code></pre></div><p>Anyone know how I would place an object relative to a camera, at the center of the screen, or at any point?</p><p>Does getWindowScale() have anything to do with the camera? Or should I be using camera functions? </p><p>What purpose could getWindowSale() serve?</p>]]></content>
			<author>
				<name><![CDATA[Tutorial Doctor]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2493</uri>
			</author>
			<updated>2014-04-30T16:27:19Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6740#p6740</id>
		</entry>
</feed>
