Topic: Drawing Element, How to Draw Object while following the map Contour?

Is there any ways to draw an object while following the Contour of the map? It usually clipped through even though it is different layers when I used 3D map terrain with Bing Elevation.

Re: Drawing Element, How to Draw Object while following the map Contour?

Hello.

Unfortunately, I don't understand what "draw an object while following the Contour of the map" means.
Please explain this in more detail.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

3 (edited by moonflow123 2022-09-12 01:59:28)

Re: Drawing Element, How to Draw Object while following the map Contour?

Alex Vertax wrote:

Hello.

Unfortunately, I don't understand what "draw an object while following the Contour of the map" means.
Please explain this in more detail.


So basically I wanted to draw a drawing while following the map terrain. For example, if there's a mountain, then the drawing automatically will match the terrain. As you can see in this picture, the drawing will clip through the mountain. I can unclip it through the repositioning of the Y-axis, but because of that it made it float way above the ground.

Post's attachments

Attachment icon Ex.png 426.57 kb, 3 downloads since 2022-09-12 

Re: Drawing Element, How to Draw Object while following the map Contour?

You have two ways:
1. Make custom shader for drawings with Z-Offset or ZTest Always.
https://docs.unity3d.com/Manual/SL-Offset.html
An example shader is attached.
2. (Not recommended as it's slow) Use Drawing as Overlay.
https://infinity-code.com/doxygen/onlin … 2b898bca42

Post's attachments

Attachment icon TilesetDrawingElementZOffset.shader 762 b, 4 downloads since 2022-09-12 

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.