MadCat Posted February 19, 2017 Posted February 19, 2017 Hi All Is a way of making a hole in the terrain? To make a cave or tunel 1 Quote
Genebris Posted February 19, 2017 Posted February 19, 2017 No, you will need to use regular model for that. Quote
MadCat Posted February 21, 2017 Author Posted February 21, 2017 So how can you make a something like a sewer under a city? Quote
reaper2259 Posted February 21, 2017 Posted February 21, 2017 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. Quote
Genebris Posted February 21, 2017 Posted February 21, 2017 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) 10 Quote
Recommended Posts
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.