<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: We Have Forums</title>
	<link>http://papervision2.com/forums/</link>
	<description>The best resource for Papervision3d tutorials</description>
	<pubDate>Fri, 25 Jul 2008 05:09:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Anton</title>
		<link>http://papervision2.com/forums/#comment-530</link>
		<dc:creator>Anton</dc:creator>
		<pubDate>Thu, 12 Jun 2008 02:11:40 +0000</pubDate>
		<guid>http://papervision2.com/forums/#comment-530</guid>
		<description>Can I make an input field with Papervision?</description>
		<content:encoded><![CDATA[<p>Can I make an input field with Papervision?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Negi</title>
		<link>http://papervision2.com/forums/#comment-501</link>
		<dc:creator>Negi</dc:creator>
		<pubDate>Thu, 05 Jun 2008 15:07:57 +0000</pubDate>
		<guid>http://papervision2.com/forums/#comment-501</guid>
		<description>I checked that forum papervision2d.com forum is not working. So i am posting my query here.

I want to rotate my camera around a node called nodeX. I want to follow the approach that i make an invisible node ( called nodeY) around nodeX and add my camera as a child of nodeY and now rotate nodeY by dowing nodeY.yaw().

But doing this doesnt move my camera.. iam using FreeCamera3D and nodeY is a DisplayObject3D. Iam not able to figure out why it is not moving.

If i make another DisplayObject3D as child of nodeY .. then it does move when i rotate nodeY ... but it doesnt happen with the camera.

Please help.

Thanks</description>
		<content:encoded><![CDATA[<p>I checked that forum papervision2d.com forum is not working. So i am posting my query here.</p>
<p>I want to rotate my camera around a node called nodeX. I want to follow the approach that i make an invisible node ( called nodeY) around nodeX and add my camera as a child of nodeY and now rotate nodeY by dowing nodeY.yaw().</p>
<p>But doing this doesnt move my camera.. iam using FreeCamera3D and nodeY is a DisplayObject3D. Iam not able to figure out why it is not moving.</p>
<p>If i make another DisplayObject3D as child of nodeY .. then it does move when i rotate nodeY &#8230; but it doesnt happen with the camera.</p>
<p>Please help.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MikeTheVike</title>
		<link>http://papervision2.com/forums/#comment-493</link>
		<dc:creator>MikeTheVike</dc:creator>
		<pubDate>Tue, 03 Jun 2008 14:44:45 +0000</pubDate>
		<guid>http://papervision2.com/forums/#comment-493</guid>
		<description>werd, what's up with the forums?</description>
		<content:encoded><![CDATA[<p>werd, what&#8217;s up with the forums?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ShehabiX</title>
		<link>http://papervision2.com/forums/#comment-443</link>
		<dc:creator>ShehabiX</dc:creator>
		<pubDate>Wed, 14 May 2008 22:11:40 +0000</pubDate>
		<guid>http://papervision2.com/forums/#comment-443</guid>
		<description>Guys I Need Help IN something Now I Created A Simillar Panorama Viewer But For Cylinderical Images . . Anyway I Wanna Know How to Use The Final SWF ? 

I'm Using Flash Develop  &#38; sometimes I'm Using Flex . . Both Produce .swf File That Doesn't Work in My Website . . 

i'll give you an Example of what i'm talking about . . 

i'm using the following .. .   .................... and this SWF Displays Nothing . . 

i don't know if the problem is from my side when building the Project or what is it . . i can't See Eventhe Wire-Framed Cylinder , I Just See A Very Blank SWF . . 

i'm using http://localhost/realestate/new_panorama.html to view the flash .. 
my code is as follows : 
BTW: it's Here for free for anyone to use / modify it . . . 

package  
{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;		
	import flash.text.TextField;
	import org.papervision3d.objects.primitives.Cylinder;	
	import org.papervision3d.render.BasicRenderEngine;
	import org.papervision3d.scenes.Scene3D;
	import org.papervision3d.view.Viewport3D;		
	import org.papervision3d.cameras.*;
	import org.papervision3d.materials.*;
	import org.papervision3d.core.math.*;
	import flash.text.*;	
	public class Main extends Sprite
	{

	private var viewport:Viewport3D;
	private var scene:Scene3D;
	private var camera:FreeCamera3D;	
	private var renderer:BasicRenderEngine;
	private var pressed:Boolean;
	private var cyl:Cylinder;
	private var expected_rotation:Number = 0;
	private var max_angle:Number = 0;
	private var min_zoom:Number = 3,max_zoom:Number = 5;
	private var new_material:BitmapFileMaterial;
	private var sho:TextField;	
	private var load_image:String = "";
		
		public function Main()
		{
			init();
			
		}
		
		private function init():void
		{
			initPapervision();
			initObjects();
			initListeners();
		}
		
		private function initPapervision():void
		{
			viewport = new Viewport3D( 500,300, false, true );		
			addChild( viewport );			
			scene = new Scene3D();
			camera = new FreeCamera3D();			
			renderer = new BasicRenderEngine();			
		}
		
		
		private function initObjects():void
		{
			if (typeof root.loaderInfo.parameters["image"]!="undefined")
			{
				load_image = root.loaderInfo.parameters["image"];				
			}else
			{
				load_image = "Saloon.jpg";
			}
			
			new_material = new BitmapFileMaterial(load_image);			
			new_material.doubleSided = true;
			new_material.tiled = true;			
			new_material.smooth = true;			
			cyl = new Cylinder(new_material,240, 350, 20, 10, -1, false, false); 
			scene.addChild(cyl);
			cyl.x = 0;		cyl.y = 0;		cyl.z = 0;
			camera.x = 0;	camera.y = 0;	camera.z = 0;
			camera.zoom = 3;
			
		}		
		private function initListeners():void
		{
			addEventListener( Event.ENTER_FRAME, onEnterFrame );			
			this.addEventListener( MouseEvent.MOUSE_DOWN, onPress);
			this.addEventListener( MouseEvent.MOUSE_UP, onRelease);
			this.addEventListener( MouseEvent.MOUSE_WHEEL, onZoom );
		}		
		private function onPress( evt:MouseEvent):void		
		{
			pressed = true;
			addEventListener( Event.ENTER_FRAME, onEnterFrame );
		}
		private function onRelease( evt:MouseEvent):void
		{			
			pressed = false;
			removeEventListener( Event.ENTER_FRAME, onEnterFrame );			
		}
		private function onZoom( evt:MouseEvent):void
		{			
			if (evt.delta&#62;0)
			{
				if(camera.zoom min_zoom){
					camera.zoom -= 0.1;
				}
			}
			onEnterFrame(evt);
			renderer.renderScene( scene, camera, viewport );
		}		
		private function onEnterFrame( e:Event ):void
		{
			if (pressed == true)
			{				
				camera.rotationY += ( 6 * ( this.mouseX - (stage.width/2) ) / (stage.width / 2) )								
			}
			if (camera.zoom &#62;= min_zoom)
			{
				
				expected_rotation = -1 * ( 3 * ( this.mouseY - (stage.height/2) ) / (stage.height / 2) );
				max_angle = 13.6 * ((camera.zoom-min_zoom)/2) ;
				
				
				
				if ((camera.rotationX+expected_rotation) &#62; max_angle)
				{
					camera.rotationX = max_angle;					
				}
				else if ((camera.rotationX+expected_rotation) &#60; (-1 * max_angle) )
				{
					camera.rotationX = -1*max_angle;
				}
				else
				{
					camera.rotationX += expected_rotation;
				}
			}
			else {
				max_angle = 0;				
			}
			renderer.renderScene( scene, camera, viewport );
		}
	}
}


&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Guys I Need Help IN something Now I Created A Simillar Panorama Viewer But For Cylinderical Images . . Anyway I Wanna Know How to Use The Final SWF ? </p>
<p>I&#8217;m Using Flash Develop  &amp; sometimes I&#8217;m Using Flex . . Both Produce .swf File That Doesn&#8217;t Work in My Website . . </p>
<p>i&#8217;ll give you an Example of what i&#8217;m talking about . . </p>
<p>i&#8217;m using the following .. .   &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.. and this SWF Displays Nothing . . </p>
<p>i don&#8217;t know if the problem is from my side when building the Project or what is it . . i can&#8217;t See Eventhe Wire-Framed Cylinder , I Just See A Very Blank SWF . . </p>
<p>i&#8217;m using <a href="http://localhost/realestate/new_panorama.html" rel="nofollow">http://localhost/realestate/new_panorama.html</a> to view the flash ..<br />
my code is as follows :<br />
BTW: it&#8217;s Here for free for anyone to use / modify it . . . </p>
<p>package<br />
{<br />
	import flash.display.Sprite;<br />
	import flash.events.Event;<br />
	import flash.events.MouseEvent;<br />
	import flash.text.TextField;<br />
	import org.papervision3d.objects.primitives.Cylinder;<br />
	import org.papervision3d.render.BasicRenderEngine;<br />
	import org.papervision3d.scenes.Scene3D;<br />
	import org.papervision3d.view.Viewport3D;<br />
	import org.papervision3d.cameras.*;<br />
	import org.papervision3d.materials.*;<br />
	import org.papervision3d.core.math.*;<br />
	import flash.text.*;<br />
	public class Main extends Sprite<br />
	{</p>
<p>	private var viewport:Viewport3D;<br />
	private var scene:Scene3D;<br />
	private var camera:FreeCamera3D;<br />
	private var renderer:BasicRenderEngine;<br />
	private var pressed:Boolean;<br />
	private var cyl:Cylinder;<br />
	private var expected_rotation:Number = 0;<br />
	private var max_angle:Number = 0;<br />
	private var min_zoom:Number = 3,max_zoom:Number = 5;<br />
	private var new_material:BitmapFileMaterial;<br />
	private var sho:TextField;<br />
	private var load_image:String = &#8220;&#8221;;</p>
<p>		public function Main()<br />
		{<br />
			init();</p>
<p>		}</p>
<p>		private function init():void<br />
		{<br />
			initPapervision();<br />
			initObjects();<br />
			initListeners();<br />
		}</p>
<p>		private function initPapervision():void<br />
		{<br />
			viewport = new Viewport3D( 500,300, false, true );<br />
			addChild( viewport );<br />
			scene = new Scene3D();<br />
			camera = new FreeCamera3D();<br />
			renderer = new BasicRenderEngine();<br />
		}</p>
<p>		private function initObjects():void<br />
		{<br />
			if (typeof root.loaderInfo.parameters[&#8221;image&#8221;]!=&#8221;undefined&#8221;)<br />
			{<br />
				load_image = root.loaderInfo.parameters[&#8221;image&#8221;];<br />
			}else<br />
			{<br />
				load_image = &#8220;Saloon.jpg&#8221;;<br />
			}</p>
<p>			new_material = new BitmapFileMaterial(load_image);<br />
			new_material.doubleSided = true;<br />
			new_material.tiled = true;<br />
			new_material.smooth = true;<br />
			cyl = new Cylinder(new_material,240, 350, 20, 10, -1, false, false);<br />
			scene.addChild(cyl);<br />
			cyl.x = 0;		cyl.y = 0;		cyl.z = 0;<br />
			camera.x = 0;	camera.y = 0;	camera.z = 0;<br />
			camera.zoom = 3;</p>
<p>		}<br />
		private function initListeners():void<br />
		{<br />
			addEventListener( Event.ENTER_FRAME, onEnterFrame );<br />
			this.addEventListener( MouseEvent.MOUSE_DOWN, onPress);<br />
			this.addEventListener( MouseEvent.MOUSE_UP, onRelease);<br />
			this.addEventListener( MouseEvent.MOUSE_WHEEL, onZoom );<br />
		}<br />
		private function onPress( evt:MouseEvent):void<br />
		{<br />
			pressed = true;<br />
			addEventListener( Event.ENTER_FRAME, onEnterFrame );<br />
		}<br />
		private function onRelease( evt:MouseEvent):void<br />
		{<br />
			pressed = false;<br />
			removeEventListener( Event.ENTER_FRAME, onEnterFrame );<br />
		}<br />
		private function onZoom( evt:MouseEvent):void<br />
		{<br />
			if (evt.delta&gt;0)<br />
			{<br />
				if(camera.zoom min_zoom){<br />
					camera.zoom -= 0.1;<br />
				}<br />
			}<br />
			onEnterFrame(evt);<br />
			renderer.renderScene( scene, camera, viewport );<br />
		}<br />
		private function onEnterFrame( e:Event ):void<br />
		{<br />
			if (pressed == true)<br />
			{<br />
				camera.rotationY += ( 6 * ( this.mouseX - (stage.width/2) ) / (stage.width / 2) )<br />
			}<br />
			if (camera.zoom &gt;= min_zoom)<br />
			{</p>
<p>				expected_rotation = -1 * ( 3 * ( this.mouseY - (stage.height/2) ) / (stage.height / 2) );<br />
				max_angle = 13.6 * ((camera.zoom-min_zoom)/2) ;</p>
<p>				if ((camera.rotationX+expected_rotation) &gt; max_angle)<br />
				{<br />
					camera.rotationX = max_angle;<br />
				}<br />
				else if ((camera.rotationX+expected_rotation) &lt; (-1 * max_angle) )<br />
				{<br />
					camera.rotationX = -1*max_angle;<br />
				}<br />
				else<br />
				{<br />
					camera.rotationX += expected_rotation;<br />
				}<br />
			}<br />
			else {<br />
				max_angle = 0;<br />
			}<br />
			renderer.renderScene( scene, camera, viewport );<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joakim Ekroos</title>
		<link>http://papervision2.com/forums/#comment-231</link>
		<dc:creator>Joakim Ekroos</dc:creator>
		<pubDate>Mon, 17 Mar 2008 07:38:43 +0000</pubDate>
		<guid>http://papervision2.com/forums/#comment-231</guid>
		<description>What's up with the forum? It's been offline now for a few days.</description>
		<content:encoded><![CDATA[<p>What&#8217;s up with the forum? It&#8217;s been offline now for a few days.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
