Hi i was playing some games and noticed ,some buildings were literally borried in ground , and there was no holes in the ground , but some how when you were looking inside the building
(even from out side) terrain in house was not visible .
It was like house were actually cutting terrain rendering .
Soo my question was , is there any way to make it possible here ?
Lets say i have a geometry House in node House,
and i have geometry terrain in node Terrain .
Is there any way to make it soo the house cuts terrain rendering
or terrain gets not rendered at collision between house and terrain , and inside house geom as well ?
if you use JME terrain, you could little modify shader to use additional texture map that will discard pixels where painted. Problem would be only physics that would consider discarded pixels as mesh.
(but there is always also option to do like “if in building, remove terrain from physics for character”.
but its kind of tricky…
trully i always thought they just lower terrain where building is so basement would be possible.