Many meshes or complex meshes, whats best?

Software: Away3D 4.x

Seger, Newbie
Posted: 01 September 2011 09:04 PM   Total Posts: 1

First things first! Great job, all of you on away3d.

I am quite new at away 4.0 but I have found out that I can load a highres model with lots of polygons and it runs smooth.
But when I have many meshes (e.g. 500 plane primitives) then it becomes real slow and laggy when I move the camera.

I do reuse geometry and material.

I need to have many meshes to be able to click on different walls in a house, furnish the house. Move the walls and so on.

How should I tackle this?

Best regards

Daniel

   

Avatar
Alexander Seifert, Moderator
Posted: 05 September 2011 12:33 PM   Total Posts: 129   [ # 1 ]

Mouse interaction so far can get really slow as a pre-render pass is done internally with all mouse-interactable objects. They are rendered color-coded and the pixel beneath the mouse cursor is read back into a bitmap object from the render buffer, which is an awfully expensive operation. Depending on the color code of the pixel, the correct mesh will receive mouse events. However, there is currently no other way of achieving mouse interaction except this one with that high penalty.

I’d be interested to hear some of the expert’s opinion on this. I guess David Lenaerts would be #1 on this =)

 Signature 
signature_image

http://www.deltastrike.org

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X