Hi,
i was wondering if it is possible to substract, intersect or union two nodes or meshes with irrlicht.
I need to cut on cube out of a nother one and the poistion must be dynamic so its not possible to create a mesh with a hole before an import it into my code.
I'm looking forward to any suggestions
greets
bool operations (substract a mesh from a mesh)
You mean like in a modelling tool, right?
I don't think it's possible to do that in real time. There's a lot of calculation involed and even if you managed to write an algorithm, your UV mapping would be messed up. So, you would also need to texture the new mesh dynamically which feels impossible
I don't think it's possible to do that in real time. There's a lot of calculation involed and even if you managed to write an algorithm, your UV mapping would be messed up. So, you would also need to texture the new mesh dynamically which feels impossible
Never take advice from someone who likes to give advice, so take my advice and don't take it.
No, you will have to to write this yourself. It's possible in real-time, how complex it will be depends probably on what you exactly need. The most complex solution would be programming a csg (constructive solid geometry) editor (many game-editors use that).
But it sounds like you only need to cut holes into walls. I suppose you will have to write your own function which can construct such wall-meshes with holes.
But it sounds like you only need to cut holes into walls. I suppose you will have to write your own function which can construct such wall-meshes with holes.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm