Digging a hole

Started by
15 comments, last by clayt 20 years, 6 months ago
How would you go about the act of digging a hole in the ground or maybe into a wall? What I would like to do would be to do is to allow for somebody to dig a whole to whatever depth and width for the sole purpose of discovering something (mineral, weapon, chest, etc). Also, the hole would have to be real so that a character could go into the hole. Any ideas? I''ve looked around and don''t want to have to use voxels.
theclaytster
Advertisement
This is a very complex issue that has yet to be solved in a very nice way. The best method is to either use voxels or metaballs. Using standard polygons is far too complicated to get good holes without creating millions of polygons.

Try searching around for deformable terrain and/or deformable geometry.


Good luck!

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

Assuming you''re talking about full 3D rather than something 2D like Worms or Lemmings...


Alternatively take a look at CSG (Constructive Solid Geometry).

Howver, as ApochPiQ mentions, making holes in things has lots of problems and issues - for example what does the texture of "inside" the hole look like? - usually not the same as the outside surface.

Volume textures combined with plain Z buffering can be used to do some of this - if supported on your target hardware.

Most games that allow things to be deformed to that extent tend to cheat and only have the holes available at certain places - and define what the inside looks like (in shape and texture).

--
Simon O''Connor
3D Game Programmer &
Microsoft DirectX MVP

Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

How would you dig a hole in 2D?

.lick
This is for full 3D and I definately would not want to limit it to specific areas. I had thought about the textures being different, but it''s the concept of how to structure everything and the lack of existing articles, etc that has me both curious and frustrated.
theclaytster
The lack of writing is due to the lack of reliable methods for doing what you want to do. The only really viable methods are voxels and metaballs, and you''ll need volume texturing. It hasn''t been done a lot before because its very hard to do

Wielder of the Sacred Wands
[Work - ArenaNet] [Epoch Language] [Scribblings]

Here''s a voxel technique you may like to look at.
You are not the one beautiful and unique snowflake who, unlike the rest of us, doesn't have to go through the tedious and difficult process of science in order to establish the truth. You're as foolable as anyone else. And since you have taken no precautions to avoid fooling yourself, the self-evident fact that countless millions of humans before you have also fooled themselves leads me to the parsimonious belief that you have too.--Daniel Rutter
Come to think of, there is another method you could consider, and that is the layered terrain system that the upcoming Worms 3D uses. It may only be good in the sort of cartoony world that they use, but it''s probably worth looking into.
You are not the one beautiful and unique snowflake who, unlike the rest of us, doesn't have to go through the tedious and difficult process of science in order to establish the truth. You're as foolable as anyone else. And since you have taken no precautions to avoid fooling yourself, the self-evident fact that countless millions of humans before you have also fooled themselves leads me to the parsimonious belief that you have too.--Daniel Rutter
You could use 3D decals, as were described in a recent gamedev article.
-~-The Cow of Darkness-~-
You can have a simple hole and shoot a blinding amount of particles out of it to give effect of digging.

This topic is closed to new replies.

Advertisement