# Create a line whose thickness on screen stays independent of camera position

**URL:** <https://forum.babylonjs.com/t/create-a-line-whose-thickness-on-screen-stays-independent-of-camera-position/5757>\
**Category:** Questions\
**Created:** [September 20, 2019, 11:15am UTC](https://forum.babylonjs.com/t/create-a-line-whose-thickness-on-screen-stays-independent-of-camera-position/5757 "2019-09-20T11:15:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![issabln](https://avatars.discourse-cdn.com/v4/letter/i/ce73a5/32.png) [@issabln](https://forum.babylonjs.com/u/issabln)\
**Post date:** [September 20, 2019, 11:15am UTC](https://forum.babylonjs.com/t/create-a-line-whose-thickness-on-screen-stays-independent-of-camera-position/5757/1 "2019-09-20T11:15:23Z")

</div>

I made these yellow lines with Windows’ Paint to illustrate what I’m trying to achieve

near perspective:

 ![grafik](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/0/0a63d5336fa7d4445ff6163103d236d95f312955.png)

far perspective - zoom out: ( watch the linewidth - it stays the same)

 ![grafik](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/f/fb00017e09658d8ce7045b5a0767ce73e16f3f11.png)

farer away:

 ![grafik](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/b/be5c67b224e596c754aea75c6a3150d04351af54.png)  
So the goal is that the thickness (on the screen) stays the same.  
Is this possible in BJS?

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [September 20, 2019, 1:22pm UTC](https://forum.babylonjs.com/t/create-a-line-whose-thickness-on-screen-stays-independent-of-camera-position/5757/2 "2019-09-20T13:22:20Z")

</div>

Assuming you are using CreateLines for the line then the answer is no, it will always be 1px wide.

When you create a line using a tube the line thickness will change with distance

[https://www.babylonjs-playground.com/#W34AAP](https://www.babylonjs-playground.com/#W34AAP)

Since the tubes will be thin then you can decrease the tessellation (number of points around circumference) from 64 to 3 to save vertices

[https://www.babylonjs-playground.com/#W34AAP#1](https://www.babylonjs-playground.com/#W34AAP#1)
