MadCat Posted February 19, 2017 Share Posted February 19, 2017 Hi All Is a way of making a hole in the terrain? To make a cave or tunel 1 Quote Link to comment Share on other sites More sharing options...
Genebris Posted February 19, 2017 Share Posted February 19, 2017 No, you will need to use regular model for that. Quote Link to comment Share on other sites More sharing options...
MadCat Posted February 21, 2017 Author Share Posted February 21, 2017 So how can you make a something like a sewer under a city? Quote Link to comment Share on other sites More sharing options...
reaper2259 Posted February 21, 2017 Share 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 Link to comment Share on other sites More sharing options...
Genebris Posted February 21, 2017 Share 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 Link to comment Share on other sites More sharing options...
AggrorJorn Posted February 21, 2017 Share Posted February 21, 2017 Very creative genebris. Quote Link to comment Share on other sites More sharing options...
MadCat Posted February 22, 2017 Author Share Posted February 22, 2017 Thanks I'll give it a try Quote Link to comment Share on other sites More sharing options...
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.