<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: Carrousel How-to</title>
	<atom:link href="http://www.dreaminginflash.com/2007/07/31/carrousel-how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dreaminginflash.com/2007/07/31/carrousel-how-to/</link>
	<description>There is no universally agreed-upon biological definition of dreaming</description>
	<pubDate>Wed, 07 Jan 2009 18:45:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sacadura</title>
		<link>http://www.dreaminginflash.com/2007/07/31/carrousel-how-to/comment-page-1/#comment-209</link>
		<dc:creator>Sacadura</dc:creator>
		<pubDate>Wed, 27 Feb 2008 15:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.morgadinho.org/dreaminginflash/?p=4#comment-209</guid>
		<description>anthony, try this:

angle = (angle % (Math.PI*2));
this will make sure you travel round the object without changing direction

but remember that the cameras' axis will still be aligned with its target</description>
		<content:encoded><![CDATA[<p>anthony, try this:</p>
<p>angle = (angle % (Math.PI*2));<br />
this will make sure you travel round the object without changing direction</p>
<p>but remember that the cameras&#8217; axis will still be aligned with its target</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nova</title>
		<link>http://www.dreaminginflash.com/2007/07/31/carrousel-how-to/comment-page-1/#comment-208</link>
		<dc:creator>Nova</dc:creator>
		<pubDate>Wed, 27 Feb 2008 13:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.morgadinho.org/dreaminginflash/?p=4#comment-208</guid>
		<description>got the same problem here 
could u please have a look at it?

http://behlersartgalerie.de/tmp/carousel.html

sourcecode:

//---------------------------------------------------------
import org.papervision3d.scenes.*;
import org.papervision3d.objects.*;
import org.papervision3d.cameras.*;
import org.papervision3d.materials.*;
import caurina.transitions.*;

var numOfItems:int = 10;
var radius:Number = 800;
var anglePer:Number = (Math.PI*2) / numOfItems;
var dsf:DropShadowFilter = new DropShadowFilter(10, 45, 0x000000, 0.3, 6, 6, 1, 3);

var con:Sprite = new Sprite();
con.x = stage.stageWidth * 0.5;
con.y = stage.stageHeight * 0.5;
addChild(con);
var scene:MovieScene3D = new MovieScene3D(con);
var cam:Camera3D = new Camera3D();
cam.zoom = 2;

for(var i:uint=1; i&#60;=numOfItems; i++)
{
	var bam:BitmapAssetMaterial = new BitmapAssetMaterial("s" + i);
	bam.oneSide = false;
	bam.smooth = false;
	var p:Plane = new Plane(bam, 162, 230, 2, 2);
	p.y = Math.cos(i*anglePer) * radius;
	p.z = Math.sin(i*anglePer) * radius;
	p.rotationX = (-i*anglePer) * (180/Math.PI) + 270;
	scene.addChild(p);
	p.container.filters = [dsf];
}

var angleX:Number = anglePer;
var dest:Number = 1;

right.addEventListener(MouseEvent.CLICK, moveRight);
left.addEventListener(MouseEvent.CLICK, moveLeft);
this.addEventListener(Event.ENTER_FRAME, render);

function moveRight(e:Event):void
{
	dest++;
	Tweener.addTween(this, {angleX:dest*anglePer, time:0.5});
}

function moveLeft(e:Event):void
{
	dest--;
	Tweener.addTween(this, {angleX:dest*anglePer, time:0.5});
}

function render(e:Event):void
{
	cam.y = Math.cos(angleX) * 1000;					 
	cam.z = Math.sin(angleX) * 1000;
	scene.renderCamera(cam);
}
//----------------------------------------------------------------------</description>
		<content:encoded><![CDATA[<p>got the same problem here<br />
could u please have a look at it?</p>
<p><a href="http://behlersartgalerie.de/tmp/carousel.html" rel="nofollow">http://behlersartgalerie.de/tmp/carousel.html</a></p>
<p>sourcecode:</p>
<p>//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
import org.papervision3d.scenes.*;<br />
import org.papervision3d.objects.*;<br />
import org.papervision3d.cameras.*;<br />
import org.papervision3d.materials.*;<br />
import caurina.transitions.*;</p>
<p>var numOfItems:int = 10;<br />
var radius:Number = 800;<br />
var anglePer:Number = (Math.PI*2) / numOfItems;<br />
var dsf:DropShadowFilter = new DropShadowFilter(10, 45, 0&#215;000000, 0.3, 6, 6, 1, 3);</p>
<p>var con:Sprite = new Sprite();<br />
con.x = stage.stageWidth * 0.5;<br />
con.y = stage.stageHeight * 0.5;<br />
addChild(con);<br />
var scene:MovieScene3D = new MovieScene3D(con);<br />
var cam:Camera3D = new Camera3D();<br />
cam.zoom = 2;</p>
<p>for(var i:uint=1; i&lt;=numOfItems; i++)<br />
{<br />
	var bam:BitmapAssetMaterial = new BitmapAssetMaterial(&#8221;s&#8221; + i);<br />
	bam.oneSide = false;<br />
	bam.smooth = false;<br />
	var p:Plane = new Plane(bam, 162, 230, 2, 2);<br />
	p.y = Math.cos(i*anglePer) * radius;<br />
	p.z = Math.sin(i*anglePer) * radius;<br />
	p.rotationX = (-i*anglePer) * (180/Math.PI) + 270;<br />
	scene.addChild(p);<br />
	p.container.filters = [dsf];<br />
}</p>
<p>var angleX:Number = anglePer;<br />
var dest:Number = 1;</p>
<p>right.addEventListener(MouseEvent.CLICK, moveRight);<br />
left.addEventListener(MouseEvent.CLICK, moveLeft);<br />
this.addEventListener(Event.ENTER_FRAME, render);</p>
<p>function moveRight(e:Event):void<br />
{<br />
	dest++;<br />
	Tweener.addTween(this, {angleX:dest*anglePer, time:0.5});<br />
}</p>
<p>function moveLeft(e:Event):void<br />
{<br />
	dest&#8211;;<br />
	Tweener.addTween(this, {angleX:dest*anglePer, time:0.5});<br />
}</p>
<p>function render(e:Event):void<br />
{<br />
	cam.y = Math.cos(angleX) * 1000;<br />
	cam.z = Math.sin(angleX) * 1000;<br />
	scene.renderCamera(cam);<br />
}<br />
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Idoru</title>
		<link>http://www.dreaminginflash.com/2007/07/31/carrousel-how-to/comment-page-1/#comment-5</link>
		<dc:creator>Idoru</dc:creator>
		<pubDate>Tue, 28 Aug 2007 14:05:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.morgadinho.org/dreaminginflash/?p=4#comment-5</guid>
		<description>Hi anthony, sorry for the long delay in answering but time has been little.
Regarding your question it seems that your period might be too great for the effect you want to, also could you leave an example of what you want to accomplish?
Be sure to check that your angle is always valid.</description>
		<content:encoded><![CDATA[<p>Hi anthony, sorry for the long delay in answering but time has been little.<br />
Regarding your question it seems that your period might be too great for the effect you want to, also could you leave an example of what you want to accomplish?<br />
Be sure to check that your angle is always valid.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anthony</title>
		<link>http://www.dreaminginflash.com/2007/07/31/carrousel-how-to/comment-page-1/#comment-4</link>
		<dc:creator>anthony</dc:creator>
		<pubDate>Thu, 16 Aug 2007 12:36:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.morgadinho.org/dreaminginflash/?p=4#comment-4</guid>
		<description>thanks for great tutorial!
i'm trying to make X Carrousel. I changed in render function camera positions: 

angle += (sp.mouseY) * 0.001;
cam.y = Math.cos(angle) * 1350;
cam.z = Math.sin(angle) * 1350;

and in calculatePlanes function plane positions:

tmpPlane.y = Math.cos(i	* step) * radius;
tmpPlane.z = Math.sin(i * step ) * radius;
tmpPlane.rotationX = 90-stepDeg*i

It all right, but the movement around X is has PI/2 period and than carrousel turns back. 
Help me please with this problem, I'm not so clever in trigonometry.</description>
		<content:encoded><![CDATA[<p>thanks for great tutorial!<br />
i&#8217;m trying to make X Carrousel. I changed in render function camera positions: </p>
<p>angle += (sp.mouseY) * 0.001;<br />
cam.y = Math.cos(angle) * 1350;<br />
cam.z = Math.sin(angle) * 1350;</p>
<p>and in calculatePlanes function plane positions:</p>
<p>tmpPlane.y = Math.cos(i	* step) * radius;<br />
tmpPlane.z = Math.sin(i * step ) * radius;<br />
tmpPlane.rotationX = 90-stepDeg*i</p>
<p>It all right, but the movement around X is has PI/2 period and than carrousel turns back.<br />
Help me please with this problem, I&#8217;m not so clever in trigonometry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: C4RL05</title>
		<link>http://www.dreaminginflash.com/2007/07/31/carrousel-how-to/comment-page-1/#comment-3</link>
		<dc:creator>C4RL05</dc:creator>
		<pubDate>Tue, 07 Aug 2007 18:38:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.morgadinho.org/dreaminginflash/?p=4#comment-3</guid>
		<description>Good example with great comments. Congratulations for the new blog.</description>
		<content:encoded><![CDATA[<p>Good example with great comments. Congratulations for the new blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.dreaminginflash.com/2007/07/31/carrousel-how-to/comment-page-1/#comment-2</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 07 Aug 2007 07:09:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.morgadinho.org/dreaminginflash/?p=4#comment-2</guid>
		<description>Great idea for a blog! I hope to see more code like this :)</description>
		<content:encoded><![CDATA[<p>Great idea for a blog! I hope to see more code like this <img src='http://www.dreaminginflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.376 seconds -->
