# \#headless-render

**URL:** https://discourse.threejs.org/tag/headless-render/852.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [A working example that renders a .glb file on the server side (node)](https://discourse.threejs.org/t/a-working-example-that-renders-a-glb-file-on-the-server-side-node/18072)

<div class="topic-metadata">

**Author:** [@mehran](https://discourse.threejs.org/u/mehran)\
**Replies:** 8\
**Last updated:** [October 4, 2024, 9:00am UTC](https://discourse.threejs.org/t/a-working-example-that-renders-a-glb-file-on-the-server-side-node/18072 "2024-10-04T09:00:27Z")

</div>

Hi. Newbie here. I’m trying to render my first image in a node js script (no browser). After lots of hassle, I’ve managed to eliminate all the errors. But it seems like I eliminated too much! Here’s my code: import jsd…

---

## [Headless Rendering Memory Usage](https://discourse.threejs.org/t/headless-rendering-memory-usage/60618)

<div class="topic-metadata">

**Author:** [@Fareck\_Allony](https://discourse.threejs.org/u/Fareck_Allony)\
**Replies:** 2\
**Last updated:** [January 25, 2024, 8:36am UTC](https://discourse.threejs.org/t/headless-rendering-memory-usage/60618 "2024-01-25T08:36:46Z")

</div>

Hello everyone. I am using headless-gl to do some offscreen rendering. In my case I have a scene where add some objects to it, take a screen shot and then add more objects and then take another screen shot and so on, t…

---

## [Failed to create a WebGL2 context - bindToCurrentThread](https://discourse.threejs.org/t/failed-to-create-a-webgl2-context-bindtocurrentthread/58490)

<div class="topic-metadata">

**Author:** [@poeticGeek](https://discourse.threejs.org/u/poeticGeek)\
**Replies:** 0\
**Last updated:** [November 23, 2023, 1:39pm UTC](https://discourse.threejs.org/t/failed-to-create-a-webgl2-context-bindtocurrentthread/58490 "2023-11-23T13:39:09Z")

</div>

Hello, We’re running three.js (+r3f +drei) on the server using puppeteer + chrome (119) on AWS ECS container with GPU (nvidia/cuda:12.2.2-base-ubuntu22.04) With these args: \[“–no-sandbox”, “–ignore-gpu-blocklist”, “–u…

---

## [Backend rendering of a preview image](https://discourse.threejs.org/t/backend-rendering-of-a-preview-image/43112)

<div class="topic-metadata">

**Author:** [@fleixi](https://discourse.threejs.org/u/fleixi)\
**Replies:** 2\
**Last updated:** [April 14, 2023, 1:27pm UTC](https://discourse.threejs.org/t/backend-rendering-of-a-preview-image/43112 "2023-04-14T13:27:44Z")

</div>

I have a working threejs-based viewer an now i like to generate preview image in the backend. I like t o load the website and than catch the first rendered scene. No move or rotation. I already have a working code in jav…

---

## [Color geometry with vertex colors in headless environment](https://discourse.threejs.org/t/color-geometry-with-vertex-colors-in-headless-environment/24368)

<div class="topic-metadata">

**Author:** [@Hankybree](https://discourse.threejs.org/u/Hankybree)\
**Replies:** 1\
**Last updated:** [March 14, 2021, 9:58am UTC](https://discourse.threejs.org/t/color-geometry-with-vertex-colors-in-headless-environment/24368 "2021-03-14T09:58:29Z")

</div>

I created a function that renders a cube and colors it with a float array using a MeshPhongMaterial with vertex colors. This works in browser environment but in headless environment it renders the cube white. I’ve logged…

---

## [renderer.domElement.toDataURL() returns transparent image with headless-gl but works in browser](https://discourse.threejs.org/t/renderer-domelement-todataurl-returns-transparent-image-with-headless-gl-but-works-in-browser/23722)

<div class="topic-metadata">

**Author:** [@Hankybree](https://discourse.threejs.org/u/Hankybree)\
**Replies:** 4\
**Last updated:** [February 22, 2021, 7:54pm UTC](https://discourse.threejs.org/t/renderer-domelement-todataurl-returns-transparent-image-with-headless-gl-but-works-in-browser/23722 "2021-02-22T19:54:47Z")

</div>

I am trying to create a node.js endpoint which creates a PNG out of a scene. When running this in a browser all is well but using the same code with headless-gl creates a totally transparent image. What am I missing? Al…
