Author Topic: Ideas on making caves  (Read 2503 times)

0 Members and 1 Guest are viewing this topic.

duke54

  • World Machine Guru
  • ****
  • Posts: 76
    • View Profile
Ideas on making caves
« on: March 10, 2016, 08:08:25 PM »
Anybody have any experience/ideas on making caves for your favorite 3D software using WM?

I'm going to try making some caves for Unreal 4 by creating a terrain mesh and flipping it back onto the terrain to act as a ceiling.

I'll post whatever ideas I come up with and if anyone else has some experience with caves, please do share :)

ilbiffi

  • World Machine Guru
  • ****
  • Posts: 66
    • View Profile
Re: Ideas on making caves
« Reply #1 on: March 11, 2016, 07:28:26 AM »
I don't think WM is the right tool for a cave, it generates a heightmap, so it can't handle these things. You could generate some rough rounded terrain but then you would need a 3d tool to excavate it and create a ceiling.

duke54

  • World Machine Guru
  • ****
  • Posts: 76
    • View Profile
Re: Ideas on making caves
« Reply #2 on: March 11, 2016, 09:00:22 PM »
Indeed, sir, WM is not a 3D modeling program, but it can produce meshes and heightmaps that together, in your favorite 3D modeling program, will produce terrains and ceilings that combine into a cave.
« Last Edit: March 11, 2016, 09:04:27 PM by duke54 »

sfriedberg

  • World Machine Guru
  • ****
  • Posts: 64
    • View Profile
Re: Ideas on making caves
« Reply #3 on: March 14, 2016, 12:52:11 PM »
I've never attempted this, but I think I'd start with a layout generator to define the "plan view" of the caves.  Without some way to force both the floor and roof to meet consistently, you'd have an awful patch job to do.  So given a definite outline, you'd want both floor/roof to blend to a fixed height at the outline.  Further from the outline, more of the "raw" floor/roof graphs gets used.  I'd probably start with a blend to 100% roof at whatever WM scale corresponds to 10 real-work (or game-world) feet, then add a bit of noise to that scale distance.

For the floor and roof, besides general rockiness, you can obviously toss in stalactite/stalagmite spikes.  If you want a Hollywood cave, keep the floor and ceiling amplitudes fairly small (so things are flattish).  For more realism, I'd add in some substantial amplitude low-frequency noise, so the top and bottom (can) come close enough together to force a crawl or at least a crouch in places.

Getting back to the fixed height.  You may get a more realistic look by letting that "fixed" height be some low-frequency noise with amplitude a healthy fraction of the cave interior height.  That way the floor/roof seam isn't so obviously horizontal.

duke54

  • World Machine Guru
  • ****
  • Posts: 76
    • View Profile
Re: Ideas on making caves
« Reply #4 on: March 20, 2016, 07:00:50 PM »
I realize now I'm looking more for a tunnel system, because I'm making maps for Ark Survival Evolved. Also, the tunnels don't need to look picturesque, but instead need to function as an interesting paths for players to explore when they enter a mountain.

What I have made so far is a system that can generate 1km boxes filled with pathways and rooms. No layouts are used so I can generate a whole new tunnel system with the 'random' button.

Not shown is the mesh ceiling output, complete with stalactites, it matches the shape of the underlying floor contours. When placed over the box, the environment is completely enclosed. The peg sticking up in the corner of the box wall matches a similar peg in the mesh ceiling and is used to align them.

The entire box terrain would be placed inside of a mountain in the main terrain. Etrances/exits are created in the Unreal Engine itself, by painting holes in the terrain box walls, and inserting a short mesh tunnel to the outside terrain.



« Last Edit: March 20, 2016, 07:14:12 PM by duke54 »

duke54

  • World Machine Guru
  • ****
  • Posts: 76
    • View Profile
Re: Ideas on making caves
« Reply #5 on: March 23, 2016, 09:56:20 PM »
Here's some 'hero' caves I custom made. The caves get covered in a mesh that's an upside-down version of the caves.
« Last Edit: March 23, 2016, 09:59:41 PM by duke54 »

Glen C

  • Community Member
  • **
  • Posts: 2
    • View Profile
Re: Ideas on making caves
« Reply #6 on: April 12, 2016, 08:27:37 AM »
You've got me thinking....... I'm going to try this in Terragen. I'll create a simple terrain file. Save it, I'll press combine in the Terrain box, then hit copy.  Invert one layer, then click combine.  Have you googled that question? If my idea fall flat on it's face, I'm sure someone will know somewhere. I remember years ago, mid 2000's, I created a cave, but that was by rendering two landscaped and flipping one over the other as someone mentioned.