#Runtime Landscape Visibility & Collision Masking

1 messages · Page 1 of 1 (latest)

amber eagle
#

A neat trick to allow for dynamically created holes in the landscape for a variety of use cases, tunnel entrance, bomb crater, mining mechanic, player built house basement, ect.

grim python
#

oooooo very good

amber eagle
#

increased performance, can update each frame with low cost (overkill for most use cases but no hitches is good)

foggy gale
grim python
foggy gale
amber eagle
#

voxels are probably overkill if you just need to be able to put a hole in the landscape for occasional gameplay mechanics

#

like a bomb crater type thing ect

#

but if landscape modification is core to your design then yea voxels are a good option

#

with this you can cull an arbitrary shaped hole (using a static mesh as a shape reference) which will let objects pass through, however you yourself have to implement what will be on the underground exposed area

grim python
#

Sounds like a good idea compared to voxel. But my main draw to voxel is a tangibly procedurally generated planet, adding caves and other landscape related things is just a bonus feature.

foggy gale
#

My game is a war game with trench digging

#

Although it looks cooler with voxel destruction with artillery so I might just keep it

grim python
amber eagle
#

yea bomb craters would be probably one of the simpler use cases potentially, still got alot more hours ahead to refine this

grim python
#

I guess it depends on which method you use. I was thinking a real time bomb crater that is formed from a players actions

amber eagle
#

since i generate a spline on the perimeter of the hole mesh that can be used for example with PCG to generate the crater interior

#

with some simple depth value selected from spline length + modifier for explosion intensity ect

tribal geode
amber eagle
#

rvt used to mask landscape

#

dynamic mesh to make an overlap area over the hole to change components collision to ignore landscape

#

its setup to change the collision when most of the object is overlapping

#

i also have a spline that roughly follows the 2d shape of the rvt inputting mesh and use that to check how inside the hole stuff is aswell