- Home /
how to draw a laneway/tunnel dynamically and simulate bombed hole
hello, everyone! I wanna to draw a laneway/tunnel dynamically and then bomb it, and i also want to simulate the bomb effect, when the bomb explode, there should be a hole and some other shatters on the laneway/tunnel. i have realized the shatters' effect, but i do not know how to draw the laneway/tunnel and the hole dynamically.Is there a good idea? Any answer will be appreciated!
Answer by Macdude2 · Jun 12, 2011 at 04:00 PM
Could you just make a prefab of the tunnel and change the scale in x, y and z if the dimensions need to be changed? You could then instantiate this prefab anywhere. As for the texture of the tunnel, there are scripts that will tile it with regards to the scale of the object the textures are applied to.
As for the bomb, look up mesh deformation in google.
Is it a good way to Use a $$anonymous$$esh to draw the tunnel/laneway? Is it complex?
It is complex if you have never done it before. If you understand how it works it's not that hard though. Look at the tuberenderer to have at least an example of how you'd do it.
Answer by Joshua · Jun 12, 2011 at 05:12 PM
For the tunnel I would use the TubeRenderer.js, for the bombed hole look into the Unity's procedural example project/mesh deformation.
First of all, thanks a lot. I come across another problem: using TubeRenderer to draw a model seems to not be so good. The model drawn is not completely shown as the model imported from other 3d application. Why ?
Your answer
![](https://koobas.hobune.stream/wayback/20220612103546im_/https://answers.unity.com/themes/thub/images/avi.jpg)