Sign in to follow this  
Ericky14

Tons of Animations

Recommended Posts

Hello,

 

Is there any way to optimize animations? If I want to animate a lot of meshes at the same time, over 200 or 300 instances... they all are having their scaling animated, but at different times.

Share this post


Link to post
Share on other sites

https://www.babylonjs-playground.com/#10RCC9#1

BJS does pretty well, under the right circumstances.  :)  (PG by Jerome, I suspect)

Eriky's question feels like a "How large am I allowed to dream?" question, eh?  It's difficult to predict WHERE JS/webGL will get "too slow"... and it's difficult to decide WHAT IS TOO SLOW?  Wingy been there.  Lives there.  :D  LOD is the boss... for these "high poly-count dreams", in many ways.

I SPECULATE... if a person 'manages' their LOD, layers, blend depths, post-processing, and camera maxZ nicely, they can triple the performance of a "fat coder" like Wingnut.  heh

Share this post


Link to post
Share on other sites

https://www.babylonjs-playground.com/#7EEDJJ#4 for 500 mesh

you just manage your scale and move or rotate condition per each mesh in vertex shader code (line 20 - 35 )

you can make more by SPS Too and More by GPU SPS  (very complicated ) again but in all GPU solution you miss collision and Physics 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.