# Marking and annotations and draw line to for it

**URL:** <https://forum.babylonjs.com/t/marking-and-annotations-and-draw-line-to-for-it/26149>\
**Category:** Questions\
**Created:** [December 17, 2021, 4:06pm UTC](https://forum.babylonjs.com/t/marking-and-annotations-and-draw-line-to-for-it/26149 "2021-12-17T16:06:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayakannan](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jayakannan](https://forum.babylonjs.com/u/jayakannan)\
**Post date:** [December 17, 2021, 4:06pm UTC](https://forum.babylonjs.com/t/marking-and-annotations-and-draw-line-to-for-it/26149/1 "2021-12-17T16:06:52Z")

</div>

Kindly have a look into the below link, how to create this kind of marking with line to mention (annotation).

[https://human.biodigital.com/widgets/mt-sinai/?m=client/Mt\_Sinai/heart\_anatomy\_tour\_hr.json&ui-tour.chapters=true&bgstd=200,220,240,255,255,255&dk=10cf5c6d634dc6b59eb9dada328732cef9cc4d99](https://human.biodigital.com/widgets/mt-sinai/?m=client/Mt_Sinai/heart_anatomy_tour_hr.json&ui-tour.chapters=true&bgstd=200,220,240,255,255,255&dk=10cf5c6d634dc6b59eb9dada328732cef9cc4d99)

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [December 17, 2021, 4:23pm UTC](https://forum.babylonjs.com/t/marking-and-annotations-and-draw-line-to-for-it/26149/2 "2021-12-17T16:23:03Z")

</div>

Example - [https://playground.babylonjs.com/#XCPP9Y#20](https://playground.babylonjs.com/#XCPP9Y#20)  
Docs - [The Babylon GUI | Babylon.js Documentation](https://doc.babylonjs.com/divingDeeper/gui/gui#tracking-positions)

---

<div class="post-metadata">

**Author:** ![jayakannan](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jayakannan](https://forum.babylonjs.com/u/jayakannan)\
**Post date:** [December 20, 2021, 3:44am UTC](https://forum.babylonjs.com/t/marking-and-annotations-and-draw-line-to-for-it/26149/3 "2021-12-20T03:44:10Z")

</div>

It is looking slightly similar to that, But not exactly. Just rotate the model, then the marking will change and the hotspot will automatically pick the point and markings also being as 2d whenever the model gets rotated. How this is working? any idea?

---

<div class="post-metadata">

**Author:** ![jayakannan](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jayakannan](https://forum.babylonjs.com/u/jayakannan)\
**Post date:** [December 28, 2021, 10:12am UTC](https://forum.babylonjs.com/t/marking-and-annotations-and-draw-line-to-for-it/26149/4 "2021-12-28T10:12:24Z")

</div>

Any solutions or references for this?

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [December 28, 2021, 11:41am UTC](https://forum.babylonjs.com/t/marking-and-annotations-and-draw-line-to-for-it/26149/5 "2021-12-28T11:41:20Z")

</div>

I believe that you may

1. Take the abovementioned example with GUI labels
2. Cast a ray from the camera to some predefined point or model’s mesh.
3. Check if this mesh is visible and apply some logic (hide label, move label etc as you like to).

---

<div class="post-metadata">

**Author:** ![MarianG](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mariang/32/138_2.png) [@MarianG](https://forum.babylonjs.com/u/MarianG)\
**Post date:** [April 26, 2023, 5:41pm UTC](https://forum.babylonjs.com/t/marking-and-annotations-and-draw-line-to-for-it/26149/6 "2023-04-26T17:41:41Z")

</div>

Hi,  
You can do it from html

> **[Babylon.js Playground](https://playground.babylonjs.com/#4M4PMR%2316)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

Click on cat to add the html label, it is up to you how you style it  
Or from babylon GUI

> **[Babylon.js Playground](https://playground.babylonjs.com/#BHTT8U)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

later edit :))  
I would go with babylonjs GUI and use occlusion query if you want to hide them when are ocluded
