# \#greasedline

**URL:** https://forum.babylonjs.com/tag/greasedline/467.md

[Latest](https://forum.babylonjs.com/latest.md) · [Categories](https://forum.babylonjs.com/categories.md) · [Tags](https://forum.babylonjs.com/tags.md)

---

## [Greasedline problem](https://forum.babylonjs.com/t/greasedline-problem/64002)

<div class="topic-metadata">

**Author:** [@hbwow123](https://forum.babylonjs.com/u/hbwow123)\
**Replies:** 5\
**Last updated:** [August 26, 2026, 9:43am UTC](https://forum.babylonjs.com/t/greasedline-problem/64002 "2026-08-26T09:43:03Z")

</div>

I created a greased line and gave it a width. However, the width of the corner position on the online version has significantly decreased. How should this be resolved? THIS IS PG

---

## [GreasedLines rendering performances](https://forum.babylonjs.com/t/greasedlines-rendering-performances/59495)

<div class="topic-metadata">

**Author:** [@Tricotou](https://forum.babylonjs.com/u/Tricotou)\
**Replies:** 6\
**Last updated:** [August 19, 2026, 8:17am UTC](https://forum.babylonjs.com/t/greasedlines-rendering-performances/59495 "2026-08-19T08:17:53Z")

</div>

Hello there :slight\_smile: I’m working on a project where I’ll need to render thousands of wires (electrical cabling). At first I used MeshBuilder.CreateTube, with the idea in mind to “optimize later”. Now that I want …

---

## [Disposing and recreating a GreasedLineMaterial](https://forum.babylonjs.com/t/disposing-and-recreating-a-greasedlinematerial/62190)

<div class="topic-metadata">

**Author:** [@SerialF](https://forum.babylonjs.com/u/SerialF)\
**Replies:** 3\
**Last updated:** [July 15, 2026, 10:13pm UTC](https://forum.babylonjs.com/t/disposing-and-recreating-a-greasedlinematerial/62190 "2026-07-15T22:13:57Z")

</div>

Hello, disposing a greased line along with its material will make subsequent created greased lines invisible https://playground.babylonjs.com/#H1LRZ3#795 The reason is disposing the material will also dispose the (sha…

---

## [Potential memory leak in \`WebGPUCacheBindGroups\`?](https://forum.babylonjs.com/t/potential-memory-leak-in-webgpucachebindgroups/62697)

<div class="topic-metadata">

**Author:** [@regna](https://forum.babylonjs.com/u/regna)\
**Replies:** 2\
**Last updated:** [March 7, 2026, 9:36am UTC](https://forum.babylonjs.com/t/potential-memory-leak-in-webgpucachebindgroups/62697 "2026-03-07T09:36:43Z")

</div>

Sorry to bother again, though I think I found another WebGPU memory leak Thanks to fixes by Evgeni, I was able to get my WebGPU project in a state with no memory leaks. Now I’m enabling game features one by one to see i…

---

## [Merry christmas everyone!](https://forum.babylonjs.com/t/merry-christmas-everyone/61856)

<div class="topic-metadata">

**Author:** [@CrashMaster](https://forum.babylonjs.com/u/CrashMaster)\
**Replies:** 5\
**Last updated:** [December 19, 2025, 8:24pm UTC](https://forum.babylonjs.com/t/merry-christmas-everyone/61856 "2025-12-19T20:24:55Z")

</div>

https://playground.babylonjs.com/frame.html#WGZLGJ#11427 I used the fireworks from GreasedLine as a poor man's particle system - #3 by roland with the tree from https://www.cgtrader.com/free-3d-models/plant/conife…

---

## [GreasedLine Arrowheads](https://forum.babylonjs.com/t/greasedline-arrowheads/61318)

<div class="topic-metadata">

**Author:** [@apowers313](https://forum.babylonjs.com/u/apowers313)\
**Replies:** 3\
**Last updated:** [November 12, 2025, 8:59am UTC](https://forum.babylonjs.com/t/greasedline-arrowheads/61318 "2025-11-12T08:59:15Z")

</div>

I’ve been playing around with creating arrows using greased lines for a graph visualization project. I have aspiration to create a bunch more arrowheads, inspired by graphviz, cytoscape, and other projects. What’s kill…

---

## [GreasedLineMesh: preallocate buffers](https://forum.babylonjs.com/t/greasedlinemesh-preallocate-buffers/60383)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 3\
**Last updated:** [September 8, 2025, 1:56am UTC](https://forum.babylonjs.com/t/greasedlinemesh-preallocate-buffers/60383 "2025-09-08T01:56:55Z")

</div>

Background Currently GreasedLineMesh.\_setPoints allocates many buffers for each new TypedArray call, there is even memory allocation in loop, this preallocated the buffer needed to reduce memory pressure. Proposed chang…

---

## [Greased line visual glitch at large scale](https://forum.babylonjs.com/t/greased-line-visual-glitch-at-large-scale/59320)

<div class="topic-metadata">

**Author:** [@CrashMaster](https://forum.babylonjs.com/u/CrashMaster)\
**Replies:** 12\
**Last updated:** [August 9, 2025, 5:04pm UTC](https://forum.babylonjs.com/t/greased-line-visual-glitch-at-large-scale/59320 "2025-08-09T17:04:25Z")

</div>

Hey there, I am making large scale orbit meshes and I want to use greased lines as thick lines are really cool :ok\_hand: I am having some artifacts when making the orbits very large: And this does not happen with …

---

## [GreasedLine fully ported to WebGPU / WGSL](https://forum.babylonjs.com/t/greasedline-fully-ported-to-webgpu-wgsl/55219)

<div class="topic-metadata">

**Author:** [@roland](https://forum.babylonjs.com/u/roland)\
**Replies:** 4\
**Last updated:** [January 6, 2025, 5:59pm UTC](https://forum.babylonjs.com/t/greasedline-fully-ported-to-webgpu-wgsl/55219 "2025-01-06T17:59:18Z")

</div>

Hey everyone! I’ve ported all GreasedLine shaders to WGSL. You can use all GreasedLine material types with WebGPU/WGSL. Material types docs Please keep in mind that you must use RGBA texures with WebGPU when using you…

---

## [WebGPU: Small fix for conflicting variable type in GreasedLine shader](https://forum.babylonjs.com/t/webgpu-small-fix-for-conflicting-variable-type-in-greasedline-shader/55572)

<div class="topic-metadata">

**Author:** [@Propolisa](https://forum.babylonjs.com/u/Propolisa)\
**Replies:** 1\
**Last updated:** [December 27, 2024, 3:52am UTC](https://forum.babylonjs.com/t/webgpu-small-fix-for-conflicting-variable-type-in-greasedline-shader/55572 "2024-12-27T03:52:55Z")

</div>

Hey there, I just noticed while trying to use the lazy loading GreasedLine playground ( https://playground.babylonjs.com/?webgpu#H1LRZ3#39 ) in WebGPU mode, there is a small bug (wrong type in WGSL). I’ve created the ti…

---

## [GreasedLine.setPoints broken?](https://forum.babylonjs.com/t/greasedline-setpoints-broken/55033)

<div class="topic-metadata">

**Author:** [@Tricotou](https://forum.babylonjs.com/u/Tricotou)\
**Replies:** 8\
**Last updated:** [November 29, 2024, 2:10am UTC](https://forum.babylonjs.com/t/greasedline-setpoints-broken/55033 "2024-11-29T02:10:00Z")

</div>

Hello :slight\_smile: Coming back to my wire physics project I noticed that the lines between points won’t render : After a quick investigation, it appears it comes from GreasedLine.setPoints method. Here is a minima…

---

## [greasedLineSimpleMaterial infnite loop in .color getter](https://forum.babylonjs.com/t/greasedlinesimplematerial-infnite-loop-in-color-getter/53841)

<div class="topic-metadata">

**Author:** [@HiGreg](https://forum.babylonjs.com/u/HiGreg)\
**Replies:** 3\
**Last updated:** [September 30, 2024, 1:17pm UTC](https://forum.babylonjs.com/t/greasedlinesimplematerial-infnite-loop-in-color-getter/53841 "2024-09-30T13:17:01Z")

</div>

It looks like getting color from greasedLineSimpleMaterial results in an infinite loop because it attempts to get the getter again (this.color), not the backing store (this.\_color) bug: greasedLineSimpleMaterial.ts, lin…

---

## [GreasedLine mesh doesn't respect doNotSyncBoundingInfo](https://forum.babylonjs.com/t/greasedline-mesh-doesnt-respect-donotsyncboundinginfo/53829)

<div class="topic-metadata">

**Author:** [@HiGreg](https://forum.babylonjs.com/u/HiGreg)\
**Replies:** 2\
**Last updated:** [September 29, 2024, 11:33am UTC](https://forum.babylonjs.com/t/greasedline-mesh-doesnt-respect-donotsyncboundinginfo/53829 "2024-09-29T11:33:01Z")

</div>

When doing some memory profiling, I think I found that GreasedLineMesh doesn’t respect the doNotSyncBoundingInfo property. The case that is impacting me is in greasedLineMesh.ts, Line 204 in protected \_setPoints() at the…

---

## [GreasedLine and PrepassRenderer PostProcess](https://forum.babylonjs.com/t/greasedline-and-prepassrenderer-postprocess/51001)

<div class="topic-metadata">

**Author:** [@Joe\_Kerr](https://forum.babylonjs.com/u/Joe_Kerr)\
**Replies:** 3\
**Last updated:** [June 3, 2024, 8:21am UTC](https://forum.babylonjs.com/t/greasedline-and-prepassrenderer-postprocess/51001 "2024-06-03T08:21:06Z")

</div>

Hi everyone, Please see here: Babylon.js Playground When the PrePassRenderer requires a texture (PrePassEffectConfiguration: {texturesRequired}), the GreasedLine loses its color. How can I make both work? Best wishes …

---

## [Create dashed meshes](https://forum.babylonjs.com/t/create-dashed-meshes/49623)

<div class="topic-metadata">

**Author:** [@roland](https://forum.babylonjs.com/u/roland)\
**Replies:** 1\
**Last updated:** [April 15, 2024, 4:51pm UTC](https://forum.babylonjs.com/t/create-dashed-meshes/49623 "2024-04-15T16:51:01Z")

</div>

Hello! You can use GreasedLinePluginMaterial not just on GreasedLine but on any mesh to have dashing capabilities: The hard part here is to calculate the counters array for more complex meshes …

---

## [Sprites using GreasedLine](https://forum.babylonjs.com/t/sprites-using-greasedline/49622)

<div class="topic-metadata">

**Author:** [@roland](https://forum.babylonjs.com/u/roland)\
**Replies:** 0\
**Last updated:** [April 13, 2024, 9:49am UTC](https://forum.babylonjs.com/t/sprites-using-greasedline/49622 "2024-04-13T09:49:23Z")

</div>

Hi! Here is an example how can you use GreasedLine to draw sprites. You have full control of the sprite’s corners so you can easily rotate them, flip them, skew them, move them… The sprites are not rendered in billboar…
