Mirror: duplicate=true does not work. (edit: scale problem)

Software: Away3D 4.x

Avatar
GoroMatsumoto, Sr. Member
Posted: 10 November 2012 05:03 PM   Total Posts: 166

work.

Mirror.apply(meshMirror.X_AXISfalsefalse); 

not work.

Mirror.apply(meshMirror.X_AXISfalsetrue); 

If I use Mirror with duplicate=true, my Mesh disappear.
I cant find even that’s bounds.

Is this a bug?

   

Avatar
GoroMatsumoto, Sr. Member
Posted: 10 November 2012 05:40 PM   Total Posts: 166   [ # 1 ]

I found my mesh.
That was scaled down.
(In my case, about 1/4 size.)

But I dont scale in other lines.
and I dont use Loader3D.

no Mirror:

if (event.asset.assetType == AssetType.MESH)
{
 mesh 
event.asset as Mesh;
 
mesh.castsShadows true;
 
mesh.material meshMaterial;
 
mesh.scale(100);
 
scene.addChild(mesh);

Mirror with duplicate:

if (event.asset.assetType == AssetType.MESH)
{
 mesh 
event.asset as Mesh;
 
mesh.castsShadows true;
 
mesh.material meshMaterial;
 
mesh.scale(400); // scale 4 times.
 
Mirror.apply(meshMirror.X_AXISfalsetrue); //apply Mirror.
 
scene.addChild(mesh);
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X