cy_1989
2011-01-17 03:06:27 UTC
hi, i try to import my spaceshuttle model form 3ds max in .DAE format.
However, it doesnt appear , i wonder what is wrong?
below is my code, could you please tell me how to get the space shuttle to
appear on the screen?
package
{
import flash.display.Sprite;
import org.papervision3d.lights.PointLight3D;
import org.papervision3d.objects.parsers.DAE;
import org.papervision3d.view.BasicView;
[SWF(width="1920", height="1200", backgroundColor="#000000",
frameRate="30")]
public class TestShuttle extends BasicView
{
public var shuttle:DAE;
public var light:PointLight3D;
public function TestShuttle()
{
super(1920 , 1200,true,false);
shuttle = new DAE();
shuttle.load("../dae/shuttle.DAE");
shuttle.x = 300;
shuttle.y = 400;
light = new PointLight3D(true);
light.z = -300;
light.x = -200;
light.y = -200;
scene.addChild(shuttle);
}
}
}
However, it doesnt appear , i wonder what is wrong?
below is my code, could you please tell me how to get the space shuttle to
appear on the screen?
package
{
import flash.display.Sprite;
import org.papervision3d.lights.PointLight3D;
import org.papervision3d.objects.parsers.DAE;
import org.papervision3d.view.BasicView;
[SWF(width="1920", height="1200", backgroundColor="#000000",
frameRate="30")]
public class TestShuttle extends BasicView
{
public var shuttle:DAE;
public var light:PointLight3D;
public function TestShuttle()
{
super(1920 , 1200,true,false);
shuttle = new DAE();
shuttle.load("../dae/shuttle.DAE");
shuttle.x = 300;
shuttle.y = 400;
light = new PointLight3D(true);
light.z = -300;
light.x = -200;
light.y = -200;
scene.addChild(shuttle);
}
}
}
--
View this message in context: http://papervision3d.758870.n4.nabble.com/i-need-help-tp3220645p3220645.html
Sent from the Papervision3D mailing list archive at Nabble.com.
View this message in context: http://papervision3d.758870.n4.nabble.com/i-need-help-tp3220645p3220645.html
Sent from the Papervision3D mailing list archive at Nabble.com.