Hi,

I'm facing a problem with the consistency of phong shaded textures.
(PhongBitmapMaterial and PhongColorMaterial)

The problem: When I change the radius of a sphere via TweenMax the
texture seems to change from phong to normal shading at certain
regions of the sphere.

An image making the problem obvious:
http://www.leerraum-imaginationen.de/Bilder/buhaway3d.jpg

Code:

mm = new BuHTexture(); // is a movieclip
bmpd  = new BitmapData(236, 236, false);
bmpd.draw(mm);

pbm = new PhongBitmapMaterial(bmpd);
pbm.shininess = 5;
pbm.specular = .175;

// material applied like this
formanceSphere = new Sphere({material:pbm, radius: 40, segmentsH:14,
segmentsW:14});

public function sphereClick (ev:MouseEvent3D) : void
                {
                        trace("sphere clicked");

                        removeEventListener(Event.ENTER_FRAME, rotateStator);

                        formanceSphere.useHandCursor = false;
                        traceSphere.useHandCursor = false;
                        telligenceSphere.useHandCursor = false;
                        tributeSphere.useHandCursor = false;

                        formanceSphere.removeOnMouseUp(sphereClick)
                        traceSphere.removeOnMouseUp(sphereClick)
                        tributeSphere.removeOnMouseUp(sphereClick)
                        telligenceSphere.removeOnMouseUp(sphereClick)

                        formanceSphere.removeOnMouseOver(playSound)
                        traceSphere.removeOnMouseOver(playSound)
                        tributeSphere.removeOnMouseOver(playSound)
                        telligenceSphere.removeOnMouseOver(playSound)

                        TweenMax.to(stator,           1.2, { rotationY: 
stator.rotationY-
(stator.rotationY%360)} );
                        TweenMax.to(rotor,           .6, { rotationX: 0 });
                        TweenMax.to(traceSphere,      .6, { x:-210, y:402, z:0, 
radius:
12, delay: 1} );
                        TweenMax.to(formanceSphere,   .6, { x:-388, y:402, z:0, 
radius: 12,
delay:1.2} );
                        TweenMax.to(tributeSphere,    .6, { x:-72,   y:402, 
z:0, radius:
12, delay:1.4} );
                        TweenMax.to(telligenceSphere, .6, { x:-565,  y:402, 
z:0, radius:
12, delay:1.6, onComplete: initMainMenuButtons, onCompleteParams:
[ev]  } );

}

Is this already known or is it just a bug and I need to fix it myself?

Regards
leerraum

Reply via email to