Jump to content

LODs and CSG


Amarth2Estel
 Share

Recommended Posts

Hi everybody,

I am currently working on a project for which I use different levels of detail for my meshes. I also need to use CSG to perform Boolean operations. 

As you can see on this PG, despite refreshing the CSG at each frame, only the high-poly mesh is used in the intersection, even if it is a low-poly mesh that is displayed.

I have already considered several methods to achieve the desired result:

  • In the case of CSG with static meshes, I could of course perform my Boolean operations upstream, and use the results directly in my LODs system.
  • In the case of CSG with dynamic meshes (whose vertex data, position, rotation or scale can evolve), I would have to recover the event of the passage from one LOD to one other (is there an observable?) in order to do the boolean operation between the actually displayed meshes.
    If the switch between LODs is not listenable/observable, I will probably have to recode part of the LOD system, but why not.

Do you have other ideas to effectively combine these two features?
It would be great if Babylon could handle this natively!

Thanks in advance!
 

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...