Clipping due to segmentation in Plane primitive in away3d

Software: Away3D 3.x

krypt, Newbie
Posted: 01 December 2011 02:19 PM   Total Posts: 1

I have a Plane and I try tweening a MovieClipSprite on it. I run into trouble when I try to tween near the points where both segment triangles meet (I have kept both segments as 1), While moving near these points the Sprite disappears.

I can tell it goes beneath the Plane because when it reappears it does so gradually and I can see it’s lower half appearing as it moves away from these points.

Increasing the segments obviously deteriorates the performance further as this begins to happen at other points as well.

I am pasting some relevant code, if that may help

var planeMaterial:BitmapMaterial = new BitmapMaterial(texture.bitmapData{smoothtrueprecision4});
   
plane = new Plane({materialplaneMaterial,
    
heightSIDE_LENGTH,
    
widthSIDE_LENGTH,
    
x0,
    
y0,
    
z0,
    
segmentsH1,
    
segmentsW1,
    
bothsidesfalse,
    
yUptrue
   }
);
   
   
addChild(plane); 

I tried clipping, Rectangle and Frustum but that doesn’t help either.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X