Lales.Charles Posted January 16, 2025 Posted January 16, 2025 Hi, Is there any way to extrude some meshes? For example here, I would try to use the blue box to generate a hole in the red panel, at end hidding the blue box of course. Alternatively using a decal? Another approach? Regards, Charles
silent Posted January 17, 2025 Posted January 17, 2025 Hi Charles, Mesh boolean operations are required for that kind of task, I'm afraid. You can try to integrate one of the 3rd party libraries that can do that, such as: Meshlib: https://github.com/MeshInspector/MeshLib mcut: https://github.com/cutdigital/mcut CGAL: https://github.com/CGAL/cgal Thanks! 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Amerio.Stephane Posted January 17, 2025 Posted January 17, 2025 (edited) Hi, I think Charles would be OK with a shader based solution (so no mesh boolean, just a visualization of the boolean result). One classic solution would have been to use the stencil buffer, with dedicated material graph, but I couldn't find anything stencil related in Unigine. In his specific case, the cutter is always a collection of boxes, and the cut object is also always a box (similar to a thin wall with movable doors and windows) EDIT: the goal is to do the edit/visualization inside the editor, not in a runtime app. Edited January 17, 2025 by Amerio.Stephane 1
silent Posted January 20, 2025 Posted January 20, 2025 Yes, with stencil it would become quite easy task, however, stencil is not yet exposed in the materials and API, so you can't really use it atm. I hope the situation would change in the future and stencil support will be eventually added to ULON (and material graph), so you can easily use it in your materials. So far I have no exact ETA for this, but if something will change I will surely let you know. 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts