You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Set up environment lighting and skyboxes in Blender for the web — with automatic compression for fast loading
4
+
---
5
+
6
+
# Environment Lighting
7
+
8
+
Set up environment lighting and skyboxes in Blender and export them to the web. Use any HDRI you want — Needle Engine automatically compresses it for fast loading and low memory usage.
You can use any `.exr` or `.hdr` file — including large, high-resolution environment maps. Needle Engine takes care of compressing them for you during the build.
-[Poly Haven](https://polyhaven.com/hdris) — Hundreds of free CC0 HDRIs
33
+
-[ambientCG](https://ambientcg.com/) — Free PBR materials and HDRIs
34
+
35
+
---
36
+
37
+
## Automatic Compression (FastHDR)
38
+
39
+
You don't need to worry about environment map file sizes. When you **build your project** or **deploy to Needle Cloud**, Needle Engine automatically converts your environment maps into the [FastHDR](/docs/fasthdr) format. This means:
40
+
41
+
-**Use any size** — 2K, 4K, or larger HDRIs all work great
42
+
-**Automatic compression** — files get dramatically smaller (e.g. a 21 MB EXR becomes ~7 MB)
43
+
-**Fast loading** — environments load in milliseconds instead of seconds
44
+
-**Low memory usage** — uses up to 21x less GPU memory than raw EXR
45
+
-**Same visual quality** — your lighting and reflections look identical
46
+
47
+
This all happens behind the scenes during the build step — no manual work required.
48
+
49
+
:::tip Preview compressed results locally
50
+
Want to see how your scene looks with compression applied? Enable **Auto Compress** in the Needle Engine dropdown above the viewport. This gives you a local preview of the optimized result.
51
+
:::
52
+
53
+
---
54
+
55
+
## Environment Camera
56
+
57
+
By default, the environment map is used for both **lighting** (reflections and ambient light) and the **background** (the visible skybox).
58
+
59
+
You can control the background appearance separately using the environment camera settings.
60
+
61
+

62
+
63
+
---
64
+
65
+
## Tips
66
+
67
+
**Quality:**
68
+
- Higher-resolution HDRIs (4K+) give sharper reflections, especially on glossy surfaces
- FastHDR environments load fast even on mobile devices and low-end hardware
73
+
- If you don't need a visible skybox, you can still use an HDRI for lighting only by setting `World Opacity` to **0**
74
+
75
+
**Troubleshooting:**
76
+
- If colors look off, check your [Color Management settings](/docs/blender/#fix-color-management) — set `View` to **Standard**
77
+
- If your scene has a greenish tint after building, see the [FAQ](/docs/reference/faq#why-does-my-blender-scene-have-a-green-tint-or-different-color-after-building-deploying-to-needle-cloud)
78
+
79
+
---
80
+
81
+
## Next Steps
82
+
83
+
-**[FastHDR Deep Dive](/docs/fasthdr)** — Learn more about how environment compression works
84
+
-**[Lightmapping](/docs/blender/lightmapping)** — Combine environment lighting with baked lightmaps
85
+
-**[Optimization Guide](/docs/how-to-guides/optimization/)** — More ways to optimize your scenes for the web
86
+
87
+
---
88
+
89
+
**Need Help?**
90
+
-[Discord Community](https://discord.needle.tools) - Ask questions about environment setup
91
+
-[Forum](https://forum.needle.tools) - Share your projects and get feedback
Copy file name to clipboardExpand all lines: documentation/blender/index.md
+30-87Lines changed: 30 additions & 87 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,13 +106,29 @@ Download and **open any sample `.blend` file** in Blender. These samples show wh
106
106
When you save your `.blend` file, Needle Engine automatically re-exports your scene and refreshes the browser. This hot reload makes iteration super fast!
107
107
:::
108
108
109
-
:::tip AI for Blender
110
-
Needle already lets you use AI with Blender. Connect Claude, Copilot, Cursor, or OpenAI/Codex through Needle MCP to search your scene hierarchy, inspect selected objects, materials, and components, read project context, and even select objects in Blender. You can also launch Needle Cloud AI directly from Blender with the built-in `Ask AI about Project` action. [Learn more about Needle MCP →](/docs/ai/needle-mcp-server)
109
+
:::tip AI-Assisted Workflow
110
+
Need help with Needle Engine while working in Blender? Connect AI coding assistants like Claude, Copilot, or Cursor through Needle MCP — they can search your scene hierarchy, inspect objectsand materials, read project context, and help you write components. You can also use the built-in `Ask AI about Project` action to get answers directly in Blender. [Learn more about Needle MCP →](/docs/ai/needle-mcp-server)
111
111
:::
112
112
113
113
---
114
114
115
-
## Step 3: Add Basic Interactivity
115
+
## Step 3: Set Up Environment Lighting
116
+
117
+
Your HDRI environment is automatically exported and used for lighting — objects in your scene will reflect it and receive ambient light from it. The visible background is separate: it can show the skybox or render as a solid color.
118
+
119
+
**To set up your environment:**
120
+
1. Open **Viewport Shading** options (top right of 3D viewport)
121
+
2. Assign an HDRI cubemap
122
+
3. Optionally, set `World Opacity` to **1** to also show it as the background skybox
**✓ Checkpoint:** Save and check the browser — your scene should now have environment lighting (and a visible skybox if you set World Opacity to 1)!
126
+
127
+
**[Learn more about environment lighting →](/docs/blender/environment)** — custom HDRIs, automatic compression for fast loading, and more.
128
+
129
+
---
130
+
131
+
## Step 4: Add Basic Interactivity
116
132
117
133
Now let's add camera controls so users can explore your scene.
118
134
@@ -144,15 +160,10 @@ Components are reusable behaviors you add to objects. Needle Engine includes 100
144
160
145
161
---
146
162
147
-
## Step 4: Configure Essential Settings
148
-
149
-
Before going further, let's fix two common issues.
150
-
151
-
### Fix Color Management
163
+
## Step 5: Set Up Color Management
152
164
153
-
By default, Blender uses `Filmic` which makes colors look different in the browser.
165
+
By default, Blender uses `Filmic` which makes colors look different in the browser. Switch to `Standard` so what you see in Blender matches the web output.
154
166
155
-
**To fix:**
156
167
1. Go to **Render Properties** tab
157
168
2. Find **Color Management** section
158
169
3. Set `View` to **Standard**
@@ -161,24 +172,6 @@ By default, Blender uses `Filmic` which makes colors look different in the brows
161
172
162
173
**✓ Checkpoint:** Colors now match between Blender and the web!
163
174
164
-
### Setup Environment Lighting
165
-
166
-
Your HDRI environment exports automatically, but you need to make it visible.
167
-
168
-
**To show skybox:**
169
-
1. Open **Viewport Shading** options (top right of 3D viewport)
**✓ Checkpoint:** Save and see your skybox appear in the browser!
175
-
176
-
:::tip Fast environment maps — use any size you want
177
-
You can use large, high-quality EXR environment maps without worrying about file size or loading speed. When you build your project or deploy to Needle Cloud, Needle Engine automatically compresses your environment into the [FastHDR](/docs/fasthdr) format — making it dramatically smaller and faster to load while keeping the same visual quality. This happens behind the scenes, no extra steps needed.
178
-
179
-
Want to preview the compressed result locally? Enable **Auto Compress** in the Needle Engine dropdown above the viewport.
180
-
:::
181
-
182
175
---
183
176
184
177
## What You've Learned
@@ -195,66 +188,16 @@ Your Blender scenes are now running on the web with hot reload!
Production builds automatically generate mesh LODs, texture LODs, and apply compression — your scenes load instantly and stream in detail on demand. You can override compression format, max size, and LOD settings per texture in **Properties → Material tab → Needle Material Settings**.
229
-
230
-
**[Deploy Your Project →](/docs/how-to-guides/deployment/)**
231
-
Publish your interactive scene to the web for everyone to see.
-[Component Reference](/docs/reference/components) - All built-in components
300
-
-[How-To Guides](/docs/how-to-guides/) - Specific tasks
301
-
302
-
**Community:**
303
-
-[Discord Community](https://discord.needle.tools) - Ask questions, share work
304
-
-[Forum](https://forum.needle.tools) - Discussions and examples
305
-
-[Samples & Showcase](https://samples.needle.tools/#showcase) - Get inspired
306
-
307
-
---
308
-
309
-
## Inspiration: What Will You Create?
310
-
311
-
Needle Engine gives you **superpowers** as a 3D artist:
312
-
313
-
- 🎨 Your art becomes **interactive and alive**
314
-
- 🌐 Reaches **anyone, anywhere, instantly**
315
-
- 📱 Works on **every device automatically**
316
-
- 🥽 Supports **VR and AR natively**
317
-
- ⚡ Loads **fast and runs smoothly**
318
-
319
-
Whether you're showcasing your portfolio, creating client work, building an art installation, or just exploring creative possibilities—Needle Engine makes your 3D work accessible to the world.
320
-
321
-
**The best part?** You don't need to be a programmer. You're a 3D artist, and that's exactly what Needle Engine needs.
322
-
323
-
---
324
-
325
265
## Next Steps
326
266
327
-
Start your journey:
328
-
329
-
1.**Install the Add-on** - [Download from needle.tools](https://needle.tools)
330
-
2.**Watch a Quick Start Video** - [YouTube](https://www.youtube.com/@needle-tools)
331
-
3.**Open a Sample Project** - See working examples in Blender
332
-
4.**Join the Community** - [Discord](https://discord.needle.tools) for help and inspiration
333
-
5.**Create Something Amazing** - Your first interactive 3D experience!
334
-
335
-
:::tip Share Your Work!
336
-
When you create something, share it in the Discord! The community loves seeing what artists create, and you'll get helpful feedback and encouragement.
337
-
:::
338
-
339
-
---
340
-
341
-
**Ready to bring your 3D art to life on the web? Let's go! 🚀**
0 commit comments