Thanks for the reply.  I can reproduce the problem by
-adding a plane as the floor
-adding another plane as the window and changing the window's
leftWindow.rotationX = -90;

if I don't change the rotation, the planes stay nicely glued
together.  Once I make the rotation change, the window stays closer to
the camera as I back it away.

floorMaterial = new TransformBitmapMaterial(Cast.bitmap(Tile));
floorMaterial.scaleX = 0.04;
floorMaterial.scaleY = 0.04;
floorMaterial.repeat = true;
floor = new Plane();
floor.material = floorMaterial;
floor.ownCanvas = true;
floor.pushback = true;
floor.width = 120;
floor.height = 100;

leftWindowMaterial = new
TransformBitmapMaterial(Cast.bitmap(LeftWindow));
leftWindowMaterial.repeat = false;
leftWindow = new Plane();
leftWindow.width = 25;
leftWindow.height = 12;
leftWindow.material = leftWindowMaterial;
leftWindow.rotationX = -90;

floorAndWindow = new ObjectContainer3D();
floorAndWindow.addChild(floor);
floorAndWindow.addChild(leftWindow);

scene.addChild(ceilingAndFloor);

On May 13, 11:48 am, savagelook <[email protected]> wrote:
> How did you load the model?  How did you attach a plane to it?  Can
> you show the code (the links in your other post are dead)?
>
> Models loaded with the away3d.loaders.* classes have a property called
> "container" that actually stores the 3d object parsed by the loader.
> So if I'm not mistaken, if you were adding a plane to the 3d model
> you'd do something like this:
>
> model.container.addChild(plane);
>
> On May 13, 11:00 am, joebass <[email protected]> wrote:
>
>
>
> > Hi, another noob question which is similar 
> > tohttp://groups.google.com/group/away3d-dev/browse_thread/thread/cb3e0d....
> > I have a model that I've added a plane with an image to be a window
> > for an interior scene.  I can't seem to lock the plane to the floor.
> > I've tried adding both planes to a container and adding that to the
> > scene but, moving the camera still moves the "window" independently of
> > the floor.  Also tried changing the pivot point.  Any advice?  Thanks- Hide 
> > quoted text -
>
> - Show quoted text -

Reply via email to