Is anyone can help me with making breakable glass mesh. Main idea to make breakable glass like in the Control game by Remedy.
I need a box divided by voronoi to small tiles. Each tile has caped polygons from all sides and back.
Unfortantly i have no Houdini license, but pretty sure that is easy and fast with Houdini.
What actually i need.
10 meter x 10 meter x 0.01 meter Box dimension (1000 x 1000 x 1 Unreal Engine / max / maya units)
Divide box with Voronoi to the random tiles with random radius 15-30 centimeters with caped side and back polygons
Export to the FBX format.
See picture for detailed explanation. Hope someone help me!
Thanks!
Python script for Blender.
Divide glass surface to tiles, create bones and bind each bone to the appropriate tile.
Rectangle, ring and cylindrical glass shapes are supported by default.
I see a lot of polygons in your mesh, that you dont need and will hit performance.
what we did was small voronoi fractures then make clusters to get the shape you say (green line)
then preserving the edges we made a clean low poly mesh, and then extruded back to the original glass size.
the small cracks is just a texture dont even match with the corners most of the time.
hope it helps
You can adjust how many polygons need, just decrease subdivision factor. Yeah, small cracks it’s texture. For modern GPU, many polygons is not heavy task. Optimization can be made by hand, but my research tell me about minus 15-20% from initial polygons count. Seems not so effectively for hand made task vs required time. Also optimized mesh need to be UV remapped.
Extruded by contour is good for flat glass, but does not works for bent (cylindrical, car, arc) glass.
On final stage. Core logic and toolset finised. Supported all glass shapes except spherical and with internal holes.
Glass code is 100% blueprint.
Toolchain: Python script for Blender and C++ Project for UE4.
Thanks! Currently testing with different surface shapes - squared, arc, cylindrical, etc… implementing particle system and glass material. Works well, performance not tested yet, but with 55 tiles on first look here is no any fps impact.
Glass blueprint can be nativized with UE nativization tool or rewritten to native C++ code. Is not too complex code inside.
Cracks texture finished. 4k x 4k size. Generated inside Blender with voronoi shader node. 4 hours of hand work to creating seamless texture…ohmg… feels like monkey worker ))