I’m trying to get my head into 3d space and found a cool example done by Kris Temmerman at
http://www.neuroproductions.be/experiments/basic-3d-shading-test/
I can’t get it to run. The only thing that seemed to be missing is Point3d so I made a class.
package
{
public class Point3D
{
public var x:Number
public var y:Number;
public var z:Number;
public function Point3D(x, y, z):void
{
x=this.x;
y=this.y;
z=this.z;
}
}
}
When I run the thing it only shows the sun. I also noticed that tri.color is always equal to zero.
Anyone have any insight into why this isn’t working for me? I’m running this in Flash CS4 and I’m not getting any errors.
Thanks in advanced for any hints!