Panoramic 360 with Papervision3d

editing dissertation Just before leaving for holidays I did a little test using papervision3d again, but then I forgot to post the result here…

enter site

500 word essay on customs and courtesies Being able to parse 3dmax collada files and apply texture to its 3d objects I thought that with is probably the best and easiest way to create simple image panoramic viewer.

source link

conflict resolution dissertation I first downloaded a trial of 3d Studio Max,ย  then I created a simple sphere (see the image) and attached an image as texture. http://www.pedijatrija.org/?psychology-dissertation-examples You can see here a screenshot of the resulting 3d object:

http://glidecoaching.com/?top-essay-writing-services-uk top essay writing services uk

http://csharpbuddy.com/thesis-statement-for-the-movie-the-help/ thesis statement for the movie the help

buy viagra online best price

http://www.sharon-zarabi.com/web/interactive-essay-writing/ interactive essay writing The next step is to download and install collada export for 3dsmax from Feeling Software and export the 3ds scene as collada file.

cost editor dissertation

less expensive cialis tablets Now in flash create a new fla file with the same image used in the 3ds max file in library. Then just tell papervision to load the .dae file and associate the library image to the sphere object. You don’t have to worry about anything else ๐Ÿ™‚

here

http://www.pessebremoviment.com/scholarship-essay-about-community-service/ scholarship essay about community service Here the script I used in the as:

paying someone to do my research paper
1 2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package
{
   import flash.display.*;
   import flash.events.*;
   import flash.geom.*;
   import flash.ui.*;
   import org.papervision3d.scenes.*;
   import org.papervision3d.objects.*;
   import org.papervision3d.cameras.*;
   import org.papervision3d.materials.*;
   import org.papervision3d.events.*;
   public class main extends Sprite
   {
      private var container:Sprite;
      private var scene:Scene3D;
      private var camera:FreeCamera3D;
      private var rootNode:DisplayObject3D;
      private var DaeMaterials:Object;
      private var center:Point;
      private var rotating:Boolean;
      private static var MAX_X_ROTATION:int = 12;
      private var keyRight   :Boolean = false;
      private var keyLeft    :Boolean = false;
      private var keyForward :Boolean = false;
      private var keyReverse :Boolean = false;
      public function main()
      {
         center = new Point(0,0);
         this.addEventListener( Event.ENTER_FRAME, loop3D );
         this.addEventListener( MouseEvent.MOUSE_DOWN, mouseDownHandler);
         this.addEventListener( MouseEvent.MOUSE_UP, mouseUpHandler);
         init3D();
      }
      private function mouseDownHandler(evt:MouseEvent):void
      {
         center.x = container.mouseX;
         center.y = container.mouseY;
         rotating = true;
      }
      private function mouseUpHandler(evt:MouseEvent):void
      {
         rotating = false;
      }
      private function init3D():void
      {
         this.container = new Sprite();
         addChild( this.container );
         this.container.x = stage.stageWidth/2;
         this.container.y = stage.stageHeight/2;
         this.scene = new Scene3D( this.container );
         camera = new FreeCamera3D();
         camera.x = 0
         camera.z = 0
         camera.zoom = 1;
         camera.focus = 200;
         DaeMaterials = new Object();
         var bmpMaterial:BitmapAssetMaterial = new BitmapAssetMaterial( "greece.jpg" );
         //var testMaterial:WireframeMaterial = new WireframeMaterial(0x000000, 100);
         //testMaterial.doubleSided = true;
         bmpMaterial.doubleSided  = true;
         DaeMaterials.mymaterial = bmpMaterial;
         rootNode = scene.addChild( new DisplayObject3D( "rootNode" ) );
         rootNode.addCollada( "sphere.dae", new MaterialsList( DaeMaterials ) );
      }
      private function loop3D( event :Event ):void
      {
         var sphere:DisplayObject3D = this.rootNode.getChildByName( "Sphere01" );
         if(sphere){
            if(rotating){
               camera.rotationY += (container.mouseX - center.x)/25
               camera.rotationX -= (container.mouseY - center.y)/25
               if(camera.rotationX > main.MAX_X_ROTATION) camera.rotationX = main.MAX_X_ROTATION
               if(camera.rotationX < -main.MAX_X_ROTATION) camera.rotationX = -main.MAX_X_ROTATION
            }
         }
         this.scene.renderCamera( camera );
      }
   }
}

order philosophy paper

here
  • review of essaywriters net It looks good – however I have a few questions.
    Firstly the distortion is a bit extreme – I’m wondering whether this is largely to do with original type of panoramic image you mapped onto the sphere.
    Secondly – why a sphere? everyone has seen the cubic pano example of papervision and apart from some nasty ‘wibbling’ distortion of certain straight edges it works really well and is how QTVR works (at least some QTVR movies) – although abviously a sphere is more obvious (PV3D has some primitive classes now so you don’t need the collada model I think – from the mailing list)
    I think the biggest trick to making these panos work well is to get your images correctly ‘distorted’ prior to mapping them to the sphere/cube – anybody have any good ways to do that using standard tools?

    follow site
  • Alessandro

    http://www.pcy0515.com/an-application-letter/ an application letter Adjusting the Camera focus/zoom the distortion can be changed and maybe it will be more real too. I’ve seen the cube panoramic example but I thought it was more obvious to use a sphere to recreate that effect..
    Anyway I will try using the primitives too, since I’m still really a newbie with papervision and trying to experimenting.
    Thank you

    http://www.oipl.net/?thesis-custom-homepage
  • http://cantat.amu.edu.pl/?buy-apa-research-papers buy apa research papers isn’t that a monastery in Alonissos? The image should be flipped and I would say it is actually my panorama because it looks really identical ๐Ÿ˜›
    Nice one Alessandro ๐Ÿ™‚

    http://www.hdwallpap.com/write-an-essay-write-an-essay/
  • http://yellowsubmarina.com/of-mice-and-men-lonliness-essay/ of mice and men lonliness essay I recently was able to convince Andr๏ฟฝ Michelle of creating a Flash version of Apple’s CubicVR features. You can see the results here (MUCH less distortion – none in fact).
    http://cubicvr.popforge.de/

    click
  • Marko

    http://www.alconi.ro/?research-papers-writing research papers writing Hey,
    I love the way how you create the panoramic.
    I am also trying to work this out but i get the following error.
    The addCollada() method has been deprecated. Use addChildren( new Collada( filename ) )
    I copy the collada file. I copy my image in the libary and give it a class name.
    I get the feeling that i forget something.

    http://gccwines.com/architect-business-plan/ architect business plan
  • Tamer

    deconstruction music online dissertation I received the same error I believe it has something to do with PPV3d version, since the code here is old and we are trying it on PPV 3d v 2.0

    source
  • Tamer

    regis admissions essay I received the same error I believe it has something to do with PPV3d version, since the code here is old and we are trying it on PPV 3d v 2.0

    go
  • here I think if you use a wider shape rather than a sphere it will distort much less…let’s say a donut or “torus” shape in example which also is tall enough to receive the attached photograph on an almost “flat” surface… cheers !!

    follow
  • http://suongmedia.com/sell-english-essays-online/ The issue with the distortion is you need a picture taken with a fish eye lens in order to map it correctly.

    Essayez Gourmet Catering Service