I’m trying to draw a simple shape using the LineSegment and SegmentSet classes ( like you would do with a normal sprite ). All is going well, except the fact that the segments are only visible while looking from a certain direction / angle. Tried to apply a double sided material to the SegmentSet and asign a light to it ( didn’t seem to need it, but wth…) but that didn’t change anything.
Ultimately i went ahead and used LinearExtrude, but since the lines i’m aiming at don’t need to be thick and the camera uses a very large zoom out value, the resulting mesh looks like a dashed line from that distance ( didn’t have that problem with the LineSegment).
If any of you have any idea of how i can make those line segments viewable from any angle, it would be a huge help
Below is some line segment code ( in case i’m doing something wrong ).
var pathVertices:Vector.<Vector3D> = new Vector.<Vector3D>;
var v:Vector3D;
var ls:SegmentSet = new SegmentSet();
for (var angle:Number = 0; angle <= 360; angle += 1)
{
v = new Vector3D(radiusX * Math.cos(angle * Math.PI / 180), 0, radiusZ * Math.sin(angle * Math.PI / 180));
pathVertices.push(v);
if(pathVertices.length > 2)
ls.addSegment(new LineSegment(pathVertices[pathVertices.length - 2], pathVertices[pathVertices.length - 1], 0xffffff, 0xffffff));
}
scene.addChild(ls);
camera lens / far values are [0.1, 100000] and i’m also using a hover controller for it
Well hope someone can help me with my noobishness