Hi Guys,
I would use MilkShape if it were free, but, having been credit-
crunched, I don't have a mechanism for buying it and I would prefer a
solution that was rather more permanent than a 30 day trial. But
thanks for the advise, anyway.
Incidentally, I decided to go back to square one and create a really
minimalist MD2. I can parse it, but now it seems unable to access the
animationLibrary. It throws the error on the last of these lines:
md2 = new Md2();
md2.fps = 10;
model = md2.parseGeometry(MD2Mesh) as Mesh;
model.material = material;
model.scale(0.05);
scene.addChild(model);
model.animationLibrary.getAnimation("walk").animator.play();
I get the following error:
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at Main/initObjects()[C:\Inetpub\wwwroot\md2\src\Main.as:192]
at Main/init()[C:\Inetpub\wwwroot\md2\src\Main.as:138]
at flash.display::DisplayObjectContainer/addChild()
at Preloader/startup()[C:\Inetpub\wwwroot\md2\src\Preloader.as:68]
at Preloader/checkFrame()[C:\Inetpub\wwwroot\md2\src\Preloader.as:41]
Again the MD2 file I'm using animates properly in Misfit 3D. It's all
very frustrating. I think I'll go to the pub.
Regards,
John Wilson
On Sep 15, 9:52 am, Michael Iv <[email protected]> wrote:
> Hey guys , why you wouldn't use MilkShape?
>
> On Wed, Sep 15, 2010 at 10:49 AM, Aji Pamungkas <
>
>
>
>
>
> [email protected]> wrote:
> > Hai John,
>
> > I just had the same problem like you. :D
> > I have 9 MD2 weapons, and one of them causes the same above error
> > messages, the last one exported from Blender.
>
> > It seems in "Vertex.a"s, in function "setValue",
> > "geometry.notifyGeometryUpdate" code is the one that causes this
> > error, because geometry is null. I don't know why only one MD2 weapon
> > which has this problem. :((
> > All of my MD2 weapons were exported using the same script without any
> > problem, i even can view them using MD2 Viewer, but only the last one
> > that causes error.
>
> > My solution is to add "if (geometry)" before
> > "geometry.notifyGeometryUpdate" in "setValue" function, in
> > "Vertex.as", because in function set x, set y and set z, all of them
> > are using "if (geometry)".
>
> > On Sep 14, 7:35 am, John Wilson <[email protected]>
> > wrote:
> > > Thanks,
>
> > > I am using the latest SVN. The problem may be Blender, but the MD
> > > file still performs properly with older versions of Away3D. Odd. I
> > > will inverstigate further.
>
> > > On Sep 14, 12:32 am, Aji Pamungkas <[email protected]>
> > > wrote:
>
> > > > I don't have any problem too when using MD2 in Away3D 3.5. I use
> > > > Blender 2.49b and Bob Holcomb's MD2 Exporter.
> > > > Maybe you should update your Away3D 3.5 from SVN.
>
> > > > On Sep 13, 8:29 pm, Michael Iv <[email protected]> wrote:
>
> > > > > I have been working with md2 in 3.5 quite a long time and have not
> > experienced any problems except of rubbish character in the names when
> > exported from milkshape. May be blender is your problem ?
>
> > > > > Sent from my iPhone
>
> > > > > On Sep 13, 2010, at 6:33 PM, John Wilson <
> > [email protected]> wrote:
>
> > > > > > I have been trying to parse an embedded MD2 file in Away3d 3.5. I
> > > > > > had no problems with the same MD2 file in earlier versions of
> > Away3d
> > > > > > (I'm not sure which versions, but they were whatever was current a
> > > > > > year or so ago).
>
> > > > > > But now, although the ogre.md2 file parses perfectly, mine give the
> > > > > > following runtime errors:
>
> > > > > > TypeError: Error #1009: Cannot access a property or method of a
> > null
> > > > > > object reference.
> > > > > > at
> > away3d.core.base::Vertex/setValue()[C:\Inetpub\wwwroot\bsp_street
> > > > > > \src\away3d\core\base\Vertex.as:237]
> > > > > > at away3d.animators::VertexAnimator/updateProgress()[C:\Inetpub
> > > > > > \wwwroot\bsp_street\src\away3d\animators\VertexAnimator.as:56]
> > > > > > at away3d.animators::Animator/set progress()[C:\Inetpub\wwwroot
> > > > > > \bsp_street\src\away3d\animators\Animator.as:211]
> > > > > > at
> > away3d.loaders::Md2/buildAnimations()[C:\Inetpub\wwwroot\bsp_street
> > > > > > \src\away3d\loaders\Md2.as:55]
> > > > > > at
> > away3d.loaders::Md2/parseNext()[C:\Inetpub\wwwroot\bsp_street\src
> > > > > > \away3d\loaders\Md2.as:153]
> > > > > > at
> > away3d.loaders::AbstractParser/parseGeometry()[C:\Inetpub\wwwroot
> > > > > > \bsp_street\src\away3d\loaders\AbstractParser.as:424]
> > > > > > at
> > Main/initAway3D()[C:\Inetpub\wwwroot\bsp_street\src\Main.as:246]
> > > > > > at Main/init()[C:\Inetpub\wwwroot\bsp_street\src\Main.as:181]
> > > > > > at flash.display::DisplayObjectContainer/addChild()
> > > > > > at
> > Preloader/startup()[C:\Inetpub\wwwroot\bsp_street\src\Preloader.as:
> > > > > > 68]
> > > > > > at Preloader/checkFrame()[C:\Inetpub\wwwroot\bsp_street\src
> > > > > > \Preloader.as:41]
>
> > > > > > My file was created in and exported from Blender 2.49b and then
> > loaded
> > > > > > into Misfit Model 3D 1.3.8 - a process that worked well before.
> > Does
> > > > > > anyone have any ideas?
>
> > > > > > Regards,
>
> > > > > > John Wilson- Hide quoted text -
>
> > > > - Show quoted text -
>
> --
> Michael Ivanov ,Programmer
> Neurotech Solutions Ltd.
> Flex|Air
> |3D|Unity|www.neurotechresearch.comhttp://blog.alladvanced.nethttp://www.meetup.com/GO3D-Games-Opensource-3D/
> Tel:054-4962254begin_of_the_skype_highlighting 054-4962254 end_of_the_skype_highlighting
> [email protected]
> [email protected] Hide quoted text -
>
> - Show quoted text -