Thanks for the fix, katopz I've added thickness property to WireframeMaterial.as (I've used as reference WireColorMaterial)
package away3dlite.materials { import flash.display.*; /** * Outline material. */ public class WireframeMaterial extends Material { private var _color:uint; private var _alpha:Number; private var _thickness:Number; /** * Defines the color of the outline. */ public function get color():uint { return _color; } public function set color(val:uint):void { if (_color == val) return; _color = val; (_graphicsStroke.fill as GraphicsSolidFill).color = _color; } /** * Defines the transparency of the outline. */ public function get alpha():Number { return _alpha; } public function set alpha(val:Number):void { if (_alpha == val) return; _alpha = val; (_graphicsStroke.fill as GraphicsSolidFill).alpha = _alpha; } /** * Defines the thickness of the outline. */ public function get thickness():Number { return _thickness; } public function set thickness(val:Number):void { if (_thickness == val) return; _thickness = val; _graphicsStroke.thickness = _thickness; } /** * Creates a new <code>WireframeMaterial</code> object. * * @param color The color of the outline. * @param alpha The transparency of the outline. * @param thickness The thickness of the outline. */ public function WireframeMaterial(color:int = 0xFFFFFF, alpha:Number = 1, thickness:Number = 1) { super(); _color = color; _alpha = alpha; _thickness = thickness; _graphicsStroke.fill = new GraphicsSolidFill(_color, _alpha); _graphicsStroke.thickness = _thickness; graphicsData = Vector.<IGraphicsData>([_graphicsStroke, _triangles]); graphicsData.fixed = true; trianglesIndex = 1; } } } On Sep 30, 10:58 am, katopz <kat...@gmail.com> wrote: > thx ConteZero, fix via svn plz chk :) > > On 30/09/2009, ConteZero <o...@contezero.com> wrote: > > > > > > > I've found where is the problem with WireframeMaterial alpha property, > > in WireframeMaterial.as the following line > > > _graphicsStroke.fill = new GraphicsSolidFill(_color); > > > should be changed with > > > _graphicsStroke.fill = new GraphicsSolidFill(_color, > > _alpha); > > > ConteZero > > > On Sep 29, 3:02 pm, ConteZero <o...@contezero.com> wrote: > >> Thanks for your reply Rob. > >> Cube6 mapping works now. > >> I've tried to use addChild() and removeChild() to toggle objects > >> visibility, > >> with some hacks it works, but I don't know if it is correct to use > >> this method. > >> For cube faces visibility I've not found a working solution. > >> I really hope linesegment could be added in future releases, because > >> my app cannot > >> work without it. > >> Now I've a new problem: WireframeMaterial alpha property doesn't work > >> for me. > > >> Cheers > > >> ConteZero > > >> On Sep 28, 1:51 pm, Rob Bateman <rob.bate...@gmail.com> wrote: > > >> > Hey ConteZero > > >> > Cube6 mapping explained here: > > >> >http://groups.google.com/group/away3d-dev/browse_thread/thread/611203... > > >> > the visible property is not currently linked up for faces or objects. > >> > will > >> > try and rectify asap! > > >> > linesegment is a tricky one because this is not something that fits > >> > easily > >> > into the draw routines. we can see what can be done here or future > >> > releases > >> > of lite > > >> > cheers > > >> > Rob > > >> > On Fri, Sep 25, 2009 at 3:51 PM, ConteZero <o...@contezero.com> wrote: > > >> > > I'm trying to port my app to Away3d Lite, but I've found some > >> > > problems: > >> > > - if I use bitmapmaterial with cube6 the bitmap is not correctly > >> > > scaled; it's a bug or I'm doing something wrong? > >> > > - in away3d I use "visible" property to toggle objects visibility, > >> > > with Away3d Lite it doesn't work > >> > > - for speed reasons in Away3d I use > >> > > cube.faces[i].visible = false; > >> > > to toggle visibility of faces on a Cube primitive; how I can do the > >> > > same with Cube6 in away3dlite? > >> > > - in my app I use many Linesegment primitives, there is a plan to add > >> > > this to Away3d Lite > >> > > in the future? > > >> > > Cheers > > >> > > ConteZero > > >> > -- > >> > Rob Bateman > >> > Flash Development & Consultancy > > >> > rob.bate...@gmail.comwww.infiniteturtles.co.ukwww.away3d.com > > -- > katopzhttp://www.sleepydesign.com