Mesh not rendered

Software: Away3D 4.x

arconus2, Newbie
Posted: 21 November 2012 03:34 PM   Total Posts: 4

I have a mesh that is rendered correctly, but when i play an animation on it, even if the animation must be on screen, when the “not animated mesh” is not on screen, the animated mesh is not rendered.
You could see that on
http://almina.sulkyland.com/course3d/debug.aspx
Press the right arrow key to move the horse to the left, until it have just get out the screen.
Then press P key to start animation.
You could see the horse cast its shadow, but is not rendered. If you just press the left arrow key, it will reappear.
Has someone an idea to solve this problem ?

   

Avatar
Fabrice Closier, Administrator
Posted: 21 November 2012 03:58 PM   Total Posts: 1265   [ # 1 ]

renders ok on my machine.

correction: I see it desapear and is considered out of frustrum.
I took freedom to look at your md5’s.
Thats because the bounds is defined from the original bounds state. In your case, the volume of the horse when its still, point to z in your example. When it runs however its rotated 90 degrees, but as the bounds are not updated the object is considered out of frustrum before actually being out completly.

 

   

arconus2, Newbie
Posted: 21 November 2012 04:52 PM   Total Posts: 4   [ # 2 ]

I have found a solution. I extend the mesh class to set the bounds manually, and now it’s work.
Thank’s.

 

   

Avatar
Fabrice Closier, Administrator
Posted: 21 November 2012 07:58 PM   Total Posts: 1265   [ # 3 ]

That’s something we’ve discussed in team a while back, that we should have bounds per state as they may differ greatly. I’ll bring it up again next team chat.
Glad to see the info was usefull to you and that you managed to fix your issue.

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X