yes.. i am using clipping here.. but the swf size changed
http://sharedaa.com/labs/flash/away3d/room.jpg ..
i want to viewer same like 800*600.. i want to change the camera width
height only.. thanks pete for quick replay...

On Feb 12, 12:51 am, Peter Kapelyan <[email protected]> wrote:
> Hmm..If you put the swf into an html page, it will only show the 800x600.
>
> But, one way around showing only the 800x600 portion in just the swf is to
> use a mask, or scrollRect. Another way is to use a rectangle Clipping, which
> is the same as a scrollRect. Like this:
>
> //imports the clipping stuff
> import away3d.core.clip.*;
>
> //set up view new View (etc..)
> view.clipping = new RectangleClipping({minX:-(800/
> 2), minY:-(600/2), maxX:800/2, maxY:600/2});
>
> Let me know if it helps any, or still the same problems.
>
> -Pete
>
>
>
> On Thu, Feb 11, 2010 at 2:46 PM, Arul <[email protected]> wrote:
> > Hello everyone,
> >        I am creating a room..
> >http://sharedaa.com/labs/flash/away3d/room.swf
> > here is the demo. Not finished yet.. In this camera occupied the full
> > view.. Here is the codehttp://sharedaa.com/labs/flash/away3d/room.zip
> > ...
>
> > I am using camara3D for camera..
>
> > [SWF(backgroundColor="#FFFFFF",frameRate="30",quality="LOW",width="800",height="600")]
>
> > var swfHeight:Number = 800;
> > var swfWidth:Number = 600;
> > clipping = new RectangleClipping({minX: -swfWidth / 2, minY: -
> > swfHeight / 2, maxX: swfWidth / 2, maxY: swfHeight / 2});
> > viewer = new View3D( { camera: camera, scene: scene, clipping:
> > clipping, x: swfWidth / 2, y: swfHeight / 2, z: 0 } );
>
> > I used half value of swfWidth,swfHeight for view3d x and y
> > respectively. The room width and height is 8000X6000. But the camera
> > is covered all.. it does not shown the 800X600 scene. I want to show
> > only 800 * 600 part of the room to the user . if the user move up or
> > down i will show the others.. Like
> >http://www.closier.nl/playground/temple.html
> > ..
> > I should finish this tomorrow..
>
> > I think pete and  fabric3d are guru in away3d.. they may knew the
> > answer...I hope u guys will help me to finish this..
>
> --
> ___________________
>
> Actionscript 3.0 Flash 3D Graphics Engine
>
> HTTP://AWAY3D.COM

Reply via email to