What the maximum number of vertices?

Software: Away3D 4.x

John Brookes, Moderator
Posted: 03 October 2011 11:19 AM   Total Posts: 732

Just trying some high poly meshes.

In Maya it says I have 17,662 triangulated faces.
So thats 52,986 vertices 158,958 numbers (vertices components).

trace(e.asset.name +”\t”+Mesh(e.asset).geometry.subGeometries[0].vertexData.length);
//polySurface45172 158,958

This mesh shows up fine with no errors.


Merge class uses a max of 64998.

So what the limit?

   

Avatar
Alejandro Santander, Administrator
Posted: 03 October 2011 12:48 PM   Total Posts: 414   [ # 1 ]

You can find information about this sort of limitations in Adobe’s Actionscript Reference, in Context3D.as: http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/display3D/Context3D.html#createVertexBuffer()

On such docs, it says that the maximum is 65535 vertices per vertex buffer.

   

John Brookes, Moderator
Posted: 03 October 2011 02:27 PM   Total Posts: 732   [ # 2 ]

Thanks.

In that case I think the merge class is a bit off.

In Merge.as
private const LIMIT:uint = 64998;

multiply that by 3 and merge still works and you get less subgeometries.

   

Avatar
Fabrice Closier, Administrator
Posted: 03 October 2011 09:43 PM   Total Posts: 1265   [ # 3 ]

Indeed now we should safely push bit more data in there (65535 minus loops requirements) and generate less subgeometries. I’ll update the class (and few others using similar limit values) asap after a few stress tests.

In meanwhile you can of course change the value and see for yourself. The class should behave just fine.

UPDATE: just updated the Merge class, we can now push 196605 Numbers entries. Excellent news smile

   

Avatar
Alejandro Santander, Administrator
Posted: 04 October 2011 04:03 PM   Total Posts: 414   [ # 4 ]

Whoa! Thanks Fab and John. Certainly an improvement.

   

Avatar
80prozent, Sr. Member
Posted: 07 October 2011 12:28 AM   Total Posts: 430   [ # 5 ]

hi

i was just looking through the obj and 3ds parsers and checked that there is the same private const LIMIT:uint = 64998;

maybe that could be higher too?

 Signature 

sorry…i hope my actionscript is better than my english…

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X