Jump to content

Sprite occlusion for performance


simon_bg
 Share

Recommended Posts

Hello everyone, 

Is is possible to implement some occlusion or LOD-like mechanism for sprites in Babylon?  I have a scene with a very large terrain and some forest areas represented by thousands of tree sprites. There are so many sprites that they actually affect performance. 

Could someone point me in the right direction? Is there a way to adapt LOD for sprites? Or could I put the camera into some kind of transparent mesh and in some way occlude the sprites behind the mesh walls?
 

Link to comment
Share on other sites

Thank you for your response!

I tried to do that, but unfortunately the performance is waaay worse with meshes, even using instances and LOD with small distance to the camera:

https://www.babylonjs-playground.com/#KBBWVT#1

With 10000 sprites it renders with 60 FPS on my computer, but using 10000 planes with instances and LOD results in 20 FPS :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...