source of examples

Software: Away3D 4.x

Ded Sirijus, Newbie
Posted: 18 July 2012 02:32 PM   Total Posts: 6

Since awayphysics.com site presents a godaddy landing page, and compiling github examples gives far too many errors, is there any other source of examples on awayphysics, or for that matter jiglib, running on latest Away 3D?

I have fair amount of projects written in Away3D and it seems to me that I just cannot jump into working on it.

   

John Brookes, Moderator
Posted: 18 July 2012 02:37 PM   Total Posts: 732   [ # 1 ]

No no other examples.

compiling github examples gives far too many errors

What errors?

   

Ded Sirijus, Newbie
Posted: 18 July 2012 02:38 PM   Total Posts: 6   [ # 2 ]

Mesh requiring at least one parameter constiture majority of them.

   

Ded Sirijus, Newbie
Posted: 18 July 2012 02:43 PM   Total Posts: 6   [ # 3 ]

Here’s a full list http://pastie.org/4278256

Ignore the name of the dir (jiglibflash-examples-fp11), I just put stuff in there.

   

John Brookes, Moderator
Posted: 18 July 2012 02:52 PM   Total Posts: 732   [ # 4 ]

Ahh sorry thought you meant awayPhyisics (Bullet).
I would guess theyve not been updated for the new release. The Jiglib stuff did work last time I tried.
File a bug report on Git.

Or use the bullet version, works fine (at least last time I tried wink)

   

Ded Sirijus, Newbie
Posted: 18 July 2012 02:54 PM   Total Posts: 6   [ # 5 ]

You have a link to a Bullet physics version perhaps? I don’t really care which one is it, as long as it works with latest Away3D.

   

John Brookes, Moderator
Posted: 18 July 2012 02:58 PM   Total Posts: 732   [ # 6 ]

awayphysics-core-fp11 and awayphysics-examples-fp11

https://github.com/away3d

   

Ded Sirijus, Newbie
Posted: 18 July 2012 03:00 PM   Total Posts: 6   [ # 7 ]

I AM using those. These are the errors for using latest:
away3d-core-fp11,
awayphysics-core-fp11, and
awayphysics-examples-fp11.

   

John Brookes, Moderator
Posted: 18 July 2012 03:09 PM   Total Posts: 732   [ # 8 ]

Yeah your right, sorry im using a slightly older version of Away.
Just pass in null to the mesh
Mesh(null)

should work.

   

Avatar
Ringo Blanken, Administrator
Posted: 19 July 2012 07:52 PM   Total Posts: 120   [ # 9 ]

Yikes, the example’s shouldn’t have any errors with Away3d Gold.
Will recheck them again once I have time.

Cheers for letting us know.

 Signature 

Freelancer: http://www.ringo.nl/en/
http://www.jiglibflash.com
http://www.awayphysics.com
http://www.away3d.com

   

random, Newbie
Posted: 21 July 2012 05:17 PM   Total Posts: 10   [ # 10 ]

Yes, I’ve been dealing with those errors too for the past couple days in physics-examples-fp11

It is basically the Mesh call.  I can see that previously you could state:

thing = new Mesh();

But not it seems to require at least 1 argument, the following works:

thing = new Mesh(geometry, material);

I guess geometry is the required one.

Thanks for the passing Null tip, I will try that while waiting for updates smile

   

random, Newbie
Posted: 26 July 2012 02:58 PM   Total Posts: 10   [ # 11 ]

Passing Null does not work.

The code must be updated to create the geometry and material/texture before the Mesh and pass them into the Mesh() call.  I think I may have noticed that you can also just pass geometry for bare minimum, but in most cases you have a material ready anyway so probably easiest to pass it through.

Can you tell us when this is updated?  Can I be of help?

   

John Brookes, Moderator
Posted: 26 July 2012 03:35 PM   Total Posts: 732   [ # 12 ]

It does work, but some others fail because of the way the mesh is created…

Anyhoo, the examples have been updated a couple of days ago with the “usual” way of creating a mesh. Also the animation/character example is updated.

   

Avatar
Ringo Blanken, Administrator
Posted: 28 July 2012 02:08 PM   Total Posts: 120   [ # 13 ]

I checked all the examples today and all worked.
Let me know if you still have issues after updating from git.

 Signature 

Freelancer: http://www.ringo.nl/en/
http://www.jiglibflash.com
http://www.awayphysics.com
http://www.away3d.com

   

Avatar
loth, Sr. Member
Posted: 28 July 2012 03:56 PM   Total Posts: 236   [ # 14 ]

for mesh on awayphysics exemple

you have to remplace all empty mesh by
var n:Mesh = new Mesh();
by
var n:Mesh = new Mesh(new Geometry())

i’m on new exemple for awayphysics
here https://github.com/lo-th/loth_labs

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X