Hi,

Just tested recenter:true, it works! thanks for the help :)



On Dec 16, 12:32 am, Fabrice3D <[email protected]> wrote:
> recenter will only move the pivot of the geometry in its center  
> instead of using the first point you pass.
> so basically except for the handyness it might bring when it comes to  
> plot your walls, this has nothing to do with perpective.
> If you were using pathExtrude I would have looked at it and your  
> profile definition, but the SegmentExtrude does extrusion only on xz  
> and zy plans.
> So there is no way to have the kind of geometry the pict shows except  
> when perpective distorsion comes into the game.
>
> Fabrice
>
> On Dec 15, 2009, at 5:18 PM, ZY wrote:
>
> > Hi,
> > thanks for your reply! i realized that i had imported
> > perspectivelens,but it wasn't explicitly used.
>
> > Sorry, i forgot to mention that in the swf file, there were 2 spheres
> > which i have created at (128,0,0) and (128,0,128) and they have
> > appeared correctly, which is why i felt puzzled over this problem.
>
> > I will try recenter:true and orthogonal lens when i have access to my
> > work computer later and post the results.
>
> > On Dec 15, 11:58 pm, Peter Kapelyan <[email protected]> wrote:
> >> What happens if you set recenter: true (same thing probably?)
>
> >> -Pete
>
> >> On Tue, Dec 15, 2009 at 9:17 AM, ZY <[email protected]> wrote:
> >>> Hi,
>
> >>> I have attached my .as file under
>
> >>>http://groups.google.com/group/away3d-dev/web/Room.as
>
> >>> and the resulting swf under
>
> >>>http://groups.google.com/group/away3d-dev/web/Room.swf(compiled 
> >>> using
> >>> FlashDevelop, FLEX and the latest away3d from svn)
>
> >>> The problem I am encountering is as follows:
> >>> I am trying to create a floor (512 x 512) and with a wall positioned
> >>> at (128,0,0) to (128,0,128) using segmentExtrude. I have also  
> >>> placed a
> >>> trident axis with length 256 as a visual guide.
>
> >>> When viewed from the top, the position of the wall seems to be  
> >>> wrong.
> >>> It is placed at (256,0,0) to (256,0,256).
>
> >>> The excerpt of the code that generates the wall is as follows:
>
> >>> var wallThickness:Number = 5;
> >>> var points:Array = new Array();
> >>> points.push(new Number3D(128, 0, 0));
> >>> points.push(new Number3D(128, 0, 128));
> >>> var wall3d:SegmentsExtrude = new SegmentsExtrude(points,
> >>> { coverall:false, axis:"y",offset: 50, recenter: false,
> >>> closepath:false, subdivision:10, thickness_subdivision:1,
> >>> flip:false,thickness:wallThickness, bothsides:true} );
> >>> scene.addChild(wall3d);
>
> >>> I am not sure what I have done wrong or is there a bug? Appreciate
> >>> your help on this issue, thank you :)
>
> >> --
> >> ___________________
>
> >> Actionscript 3.0 Flash 3D Graphics Engine
>
> >> HTTP://AWAY3D.COM

Reply via email to