|
| Petit |
Post
#1
|
|
Advanced Member Group: Moderator Posts: 590 Joined: 21-June 06 From: Borgholm, Sweden Member No.: 38 |
In the description for Object3D is says:
QUOTE This
method will set the the new Skin to all his faces. Warning : If no
backface skin has benn applied, the skin will be applied to the back
side of faces too! For Plane3D this doesn't seem to happen. When I switch off back face culling and rotate the plane, the back side has the default SimpleLineSkin. Applies to Sandy 1.1 Is this a bug? CODE function createScene(Void):Group{ var g:Group = new Group(); var skin:TextureSkin = new TextureSkin(BitmapData.loadBitmap("monalisa")); plane = new Plane3D(100,100,10,'quad'); plane.setSkin( skin ); plane.enableBackFaceCulling = false; // Transforms var ease:Ease = new Ease(); var tg:TransformGroup = new TransformGroup(); rotint = new RotationInterpolator( ease.create(),200 ); rotint.setAxisOfRotation( new Vector( 1, 0 , 1)); rotint.addEventListener(RotationInterpolator.onEndEVENT,this,onTransformEnd); tg.setTransform(rotint); tg.addChild(plane); g.addChild(tg); return g; } The createScene returns the root group of the World3D. The onTransformEnd event handler just calls rotint.redo() to continue the rotation. |
| kiroukou |
Post
#2
|
|
Administrator Group: Root Admin Posts: 920 Joined: 12-June 06 Member No.: 1 |
Hm ok.
That's true if we consider that the first skin applied is the SimpleSkin in fact. And it is applied automatically. I should add a test to follow the doc, otherwise change the doc. Is there some people who prefer one solution than the other? |
| Lo-Fi Version | Time is now: 16th August 2007 - 04:52 PM |