DEV Community

Kwesikwaa Hayford
Kwesikwaa Hayford

Posted on

1

Houdini: Setup Fractured Glass The Right Way For Seamless Rendering

You have a fractured window glass pane, or a glass ball for RBD simulation and rendering, but the inside faces of the fractured pieces show in the render even before the fractured simulation plays. The demo below shows the problem on the left and the fix on the right

Image description

The obvious solution is to resort to "tricks" to hide the pieces but Houdini since 18 introduced nodes to handle that problem; two nodes actually.

Let's go!

  • A basic geometry fractured with the glass preset of the "RBD MaterialFracture" node. = The first important step is to drop an "RBD ConnectedFaces" node
  • The next step is to do whatever you wish to do with the fractured object. ie. the sim or animation or whatever it is you want to do.

network

  • The last step is to drop an "RBD Disconnected Faces" node and choosing Delete Connected Mode disconnected faces

That is it !! Simple! huh? What happens is that, all the inside faces of the "unsimmed" faces are deleted while the simed faces are not. This creates a hollow geometry of a sort and only fills the areas that get disturbed. In the wireframe below, the first box is a clipped version of the fracture box. It is clear that the box is hollow at that point until any area gets hits and has to fall apart (last image).

hollow

fractured

Image description

Have fun!

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more