I think the general rule of thumb with away3d is to try and keep the element count below 10,000. Here's some random tips:
- I believe billboards have been replaced with the Sprite3D class - dont use 64 planes for your board. Use one solid plane with a texture. When you need to highlight a square, place a new plane over it and highlight it. - make your chess pieces lower poly and use prefab to bake textures and add normal maps if you want them to look nicer - Is the board always viewed from the same angle? Sprite3D may be appropriate then - Are you using the basic renderer? Using CORRECT_Z_ORDER or INTERSECTING_OBJECTS can really slow down your scene. Basic rendering in combination with ownCanvas, pushfront, pushback, and z offsets can give you the desired appearance with much less rendering overhead. For example, your board planes will always be behind your pieces so you can easily use pushback on them. Can we see a screenshot of what you have so far to get a better idea? On May 3, 11:17 am, manno <[email protected]> wrote: > Hi all, > > [sorry, but pretty much a noob at 3d programming, insight in needed > mesh count for good looking models and lighting / texture options] > > I'm busy with a playable version of a chess variation. Chessboard and > 40 (yes 40, not 32) pieces. > > Chessboard is 64 separate planes to allow for individual highlighting > and another plane for the margins of the board. > > Chesspieces were collada but I've converted them to AS3 objects with > preFab. All pieces are made up from the 6 piece Classes. At the moment > with a ColorMaterial only. Vertice count of the pieces varies from 287 > to 419, face count from 404 to 764. They were provided. > > The scene totals in a whopping 23+K elements (t elements as stated in > Stats) and framerate grinds to a halt... Never mind a PhongShader. > > Now, I've seen visually more complex scenes > like:http://www.infiniteturtles.co.uk/projects/away3d/demos/FrustumHotelRo... > > Which perform OK and have a mere fraction of elements to render from > what I have. > > Can anyone advice on a path to take to get at least some performance? > Willing to spend time ofcourse, but just stuck not knowing where to > look :( > > I thought about using billboards with prerendered bitmaps for the > pieces, but the BillBoard class seems to have been dropped from the > latest version(?) No mention of it in the docs, and nowhere to be > found in the classes. > > Thanks in advance, > Manno Bult
