Jump to content

Terrain


MadCat
 Share

Recommended Posts

either two separate maps or like Genebris said to make your entire map in something like blender then import it as an object.

 

If you must use the leadwerks terrain then you could do something like having the terrain and city on top then when the player gets to a sewer man hole it teleports him to another part of the map or under it into the sewer.

Link to comment
Share on other sites

I have quickly tried to edit terrain shader and realized you can actually cutout fragments depending on texture color to make a visual "hole". If you also add a trigger that toggles player collision with terrain, you will actually be able to do this, but in a messy way.

 

 

I have added this to the end of terrain shader:

if (outcolor.x==1)
discard;

I barely have any idea of what I did because I know nothing about shaders, but I meant to remove red fragments from terrain and it worked.

Add trigger that does this and you can walk through.

Collision:SetResponse(Collision.Character, Collision.Scene, Collision.None)
  • Upvote 10
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...