JigLib + away3d

Software: Away3D 4.x

Miker89, Newbie
Posted: 30 January 2013 02:10 PM   Total Posts: 4

Hi,

Anyone has experience with Jiglib and away3d?

Iam currently working on a race game with 8 cars, its almost finished and the time to tweak is near:)
Iam working on the performance which can drop pretty bad.
Mostly on old computers.. When driving with 1 car its oke but when there are more then 4 its getting worse.

Not sure where to begin for tweaking so I was hoping someone has any tips to send me in the right direction..

Thanks!

   

Miker89, Newbie
Posted: 30 January 2013 03:47 PM   Total Posts: 4   [ # 1 ]

maxTrianglesPerCell and minCellsize..
Anyone got a good setting for those 2?

createMesh(skin:Mesh,initPosition:Vector3D,initOrientation:Matrix3D,maxTrianglesPerCell:int = 10, minCellSize:Number = 10)

   

synkarius, Member
Posted: 30 January 2013 09:31 PM   Total Posts: 64   [ # 2 ]

Don’t use JTriangleMeshes for the cars. Use JBoxes. The only thing you’d lose is the car’s ability to roll on its roof longwise accurately, and you’d gain performance.

   

Miker89, Newbie
Posted: 31 January 2013 07:45 AM   Total Posts: 4   [ # 3 ]

Thanks for the reply,
Im using Jbox for the cars, the code I posted was for my ground.
But for JTriangleMeshes u can set
maxTrianglesPerCell:int , minCellSize:Number when you create it.
Ive been working on that yesterday and I noticed that performance can increase if you set them correct… Only building the mesh takes longer now.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X