This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?showtopic=170&pid=929&mode=threaded&show=&st=& as retrieved on 16 Aug 2007 17:15:26 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:xdGcACxtg5IJ:www.flashsandy.org/forum/index.php%3Fshowtopic%3D170%26pid%3D929%26mode%3Dthreaded%26show%3D%26st%3D%26+site:www.flashsandy.org+showtopic&hl=en&ct=clnk&cd=82


Google is neither affiliated with the authors of this page nor responsible for its content.
These terms only appear in links pointing to this page: showtopic

Welcome Guest ( Log In | Register )

> Front skin not always back skin - Sandy 1.1, For a Plane3D the front skin is not copied as back skin
Petit
post Nov 6 2006, 03:46 PM
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.


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
kiroukou
post Nov 6 2006, 05:09 PM
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?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post



Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

- Lo-Fi Version Time is now: 16th August 2007 - 04:52 PM
phpMyVisites