[Papervision3D] TriangleMaterial.as 1020 error
Tyler
i.am.tyler.jones at gmail.com
Wed Jan 7 17:56:38 PST 2009
Thanks for noticing that! However, it doesn't work even after I fix
that... I still get that same error...
On Jan 7, 2009, at 5:50 PM, "Justine Walsh" <justine.walsh at gmail.com>
wrote:
> addEvenListener(Event.ENTER_FRAME, loop);
> Left the “t” out of event. I’m so new to it all too...Good Luc
> k.
>
> JW
>
>
>
>
>
> From: papervision3d-bounces at osflash.org [mailto:papervision3d-bounces at osflash.org
> ] On Behalf Of Tyler Jones
> Sent: Thursday, 8 January 2009 9:57 AM
> To: papervision3d at osflash.org
> Subject: [Papervision3D] TriangleMaterial.as 1020 error
>
>
>
> Hi, I'm trying to do anything at all in papervision and no matter
> what I try I get this same error. It says, "TriangleMaterial.as,
> Line 24 1020:Method marked override must override another method".
> The specific thing I'm trying to do right now is just follow the
> gotoandlearn tutorial for creating an interactive cube in
> papervision 2.0. I've downloaded the zip file called:
> Papervision3D_rev851.zip so those are the papervision classes I'm
> working from. I've never used papervision before so there couldn't
> be coflict with older versions of the classes. Here is the code
> that I'm using, if anyone could please help me out by showing me why
> I get this error everytime... I'm not even doing any OOP right now,
> I'm just writing my code of frame 1 of the timeline because I just
> wanna get it working. Here is the code:
>
> import org.papervision3d.scenes.*;
> import org.papervision3d.cameras.*;
> import org.papervision3d.objects.*;
> import org.papervision3d.objects.special.*;
> import org.papervision3d.objects.primitives.*;
> import org.papervision3d.materials.*;
> import org.papervision3d.materials.special.*;
> import org.papervision3d.materials.shaders.*;
> import org.papervision3d.materials.utils.*;
> import org.papervision3d.lights.*;
> import org.papervision3d.render.*;
> import org.papervision3d.view.*;
> import org.papervision3d.events.*;
> import org.papervision3d.core.utils.*;
> import org.papervision3d.core.utils.virtualmouse.VirtualMouse;
>
> var viewport:Viewport3D = new Viewport3D(0, 0, true, true);
> addChild(viewport);
> viewport.buttonMode = true;
>
> var renderer:BasicRenderEngine = new BasicRenderEngine();
>
> var scene:Scene3D = new Scene3D();
>
> var camera:Camera3D = new Camera3D();
> camera.zoom = 11;
> camera.focus = 100;
>
> var mm:MovieMaterial = new MovieMaterial(cubeFace);
> mm.interactive = true;
> mm.animated = true;
> mm.smooth = true;
>
> var cube:Cube = new Cube(new MaterialsList({front:mm, left:mm,
> right:mm, top:mm, bottom:mm, back:mm}), 250, 250, 250, 10, 10, 10);
> scene.addChild(cube);
>
> addEvenListener(Event.ENTER_FRAME, loop);
>
> function loop(evt:Event):void {
> var xDist:Number = mouseX - stage.stageWidth * 0.5;
> var yDist:Number = mouseY - stage.stageHeight * 0.5;
> cube.rotationY += xDist * 0.05;
> cube.rotationX += yDist * 0.05;
> renderer.renderScene(scene, camera, viewport);
> }
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20090107/49624eda/attachment-0001.html>
More information about the Papervision3D
mailing list