how to apply a material to a SegmentSet ?

Software: Away3D 4.x

marabak, Newbie
Posted: 11 July 2013 06:14 PM   Total Posts: 3

Hello,
i’m working with awd4.1.1 beta. When i try to apply a ColorMaterial or a TextureMaterial to a SegmentSet it disappears… and if i dont a i see the lines as supposed to.

var lineMaterial : TextureMaterial = new TextureMaterial(texture);
lineMaterial.bothSides = true;
var 
line : SegmentSet = new SegmentSet();
line.material = lineMaterial; // if commented works fine..
var lineSegment : LineSegment = new LineSegment(p0, p1, 0xdedede, 0xdedede, 5);
line.addSegment(lineSegment);
_view.scene.addChild(line); 
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X