Jump to content

Make a hole in the ground?


Yue
 Share

Go to solution Solved by gamecreator,

Recommended Posts

Hi, I need to know if it is possible to make a hole in the ground. The idea is that you need to create a shelter beneath the surface of Mars, and I need to remove some of the ground to create an access inside the shelter.

Any suggestions?

Or in such a case when this inside hide the ground, is that possible?

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

Making an actual hole in the terrain would be getting pretty complicated. (if possible at all in Leadwerks.)

However if you simply want to hide the terrain while you're in a "hole" you could simply have another World and use World::SetCurrent to switch to a terrain-less world.

There was a thread a while back where people discussed the issues of trying to hide terrain via code, one issue being that if you disable collision on the terrain, all the entities in the world are going to fall! the other being that LE's renderer seems to forcefully draw the terrain regardless of whether or not it's hidden... now there are definitely ways to force it to not be rendered, but the world method is probably your best bet.

  • Upvote 1
Link to comment
Share on other sites

What you are asking for is called voxel terrain.  Leadwerks does not have voxel terrain.

You COULD create a ground plane and then programmatically perform a CSG substraction for the hole (not sure if you can perform editor function in code).

But what you are really looking for is voxel terrain - which allows you to add or subtract terrain through the use of blobs - not to be confused with minecraft, which is a blocky version of voxel editing.  There are engines and tools to create voxel terrain, but only an engine would allow you to terraform in realtime.

For Unity:

https://www.assetstore.unity3d.com/en/#!/content/8131

VoxelFarm:

http://www.voxelfarm.com/index.html

We can ask Josh if he can implement VoxelFarm into Leadwerks - right now it's available for Unity and Unreal out of the box and it does have a SDK.

That's about it - there are a LOT of solutions for Unity, but none for Leadwerks.  I, for one, would LOVE to see voxels implemented in Leadwerks.

Mike

  • Upvote 1

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives

Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives

My Patreon page: https://www.patreon.com/michaelfelkercomposer

My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213

Custom synths and sounds - http://www.supersynths.com

Link to comment
Share on other sites

There is a shader around that let's you hide a section of the terrain. This was generally done at design time so I'm not 100% sure if you can do it at run-time. It would also create a circle patch and would look strange. You would probably fake this in various ways to make it look good but in general LE doesn't do this very well.

  • Upvote 1
Link to comment
Share on other sites

The idea was to create an elevator to go down to the shelter .... it seems that I will have to think of something else. It could be the best thing to enter the refuge when the player teleports below the section of the terrain. This would imply giving it a lower position in the same room that will be in two parts, one above the ground and one below the ground.
 

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

  • Solution

The elevator going down to the shelter is absolutely doable without a hole in the terrain.  Once the elevator doors close, you can teleport the player and elevator to any location and just visually make it look like it's going down or up inside.  This is assuming the camera is in the elevator while it's "moving" and that the elevator doesn't have glass to look outside.

  • Upvote 1
Link to comment
Share on other sites

Actually, the elevator would be a level or you could use LE's excellent world builder to create a very large vertical shaft and then drop it very slowly to make it seem to go farther than it actually is.  You could use animated textures to also give the illusion of travelling down.  The shelter could be at the bottom.  If you want rocky walls, there are cave construction kits that have this in a modular fashion.

Look at www.arteria3d.com for excellent modular kits for Leadwerks.

Mike

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 980 GTX with 16gb vram / SSD drives

MSI Dominator Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1060 GTX with 8gb vram / SSD drives

Alienware Laptop - Core i7 - 8 cores / 3ghz / 32gb RAM / Nvidia 1070 Ti with 16gb vram / SSD drives

My Patreon page: https://www.patreon.com/michaelfelkercomposer

My music for sale: https://www.tgcstore.net/category/513?format=all&perpage=30&textures=undefined&price=all&order=default&artists[]=87213

Custom synths and sounds - http://www.supersynths.com

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...