# Lighting for interior

**URL:** <https://discourse.threejs.org/t/lighting-for-interior/6364>\
**Category:** Questions\
**Tags:** environment-map, lighting\
**Created:** [March 1, 2019, 3:57pm UTC](https://discourse.threejs.org/t/lighting-for-interior/6364 "2019-03-01T15:57:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![doum](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/doum/32/5825_2.png) [@doum](https://discourse.threejs.org/u/doum)\
**Post date:** [March 1, 2019, 3:57pm UTC](https://discourse.threejs.org/t/lighting-for-interior/6364/1 "2019-03-01T15:57:58Z")

</div>

I’m making a project for interior like [showroom.littleworkshop.fr](http://showroom.littleworkshop.fr),  
 ![image](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/threejs/original/2X/f/f74f4f55347da4e154e24e3c1fc1d0310961df8f.jpeg)  
I don’t know what’s config the light for this object. Current I using only HemisphereLight and AmbientLight. then this’s my result  
 ![image](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/threejs/original/2X/c/c2b27aa9485aef8911927ec54b537c9491f46225.jpeg)

I read the source code from donmccurdy  
material.envMap = envMap;

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [March 1, 2019, 10:00pm UTC](https://discourse.threejs.org/t/lighting-for-interior/6364/2 "2019-03-01T22:00:39Z")

</div>

Do you want to achieve reflections similar to the table in the showcase? Using an environment map is the right approach for this. However, the reflections highly depends on the material configuration. It might be easier to provide useful feedback if you show you the rest of your material is set up.

Apart from the reflections, the demo uses ambient occlusion maps in order to create the realistic lighting in the room. Achieving a similar effect just with some lights and without post-processing is not possible with `three.js`. If you google “ambient occlusion maps”, “lightmaps” or “baked lighting”, you will find many resources for this topic.

---

<div class="post-metadata">

**Author:** ![doum](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/doum/32/5825_2.png) [@doum](https://discourse.threejs.org/u/doum)\
**Post date:** [March 2, 2019, 1:53am UTC](https://discourse.threejs.org/t/lighting-for-interior/6364/3 "2019-03-02T01:53:19Z")

</div>

> [@Mugen87](#):
>
> Do you want to achieve reflections similar to the table in the showcase? Using an environment map is the right approach for this. However, the reflections highly depends on the material configuration. It might be easier to provide useful feedback if you show you the rest of your material is set up.
> 
> Apart from the reflections, the demo uses ambient occlusion maps in order to create the realistic lighting in the room. Achieving a similar effect just with some lights and without post-processing is not possible with `three.js` . If you google “ambient occlusion maps”, “lightmaps” or “baked lighting”, you will find many resources for this topic.

I using [https://gltf-viewer.donmccurdy.com/](https://gltf-viewer.donmccurdy.com/) for review my object like this !

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/a/a3756507f0465b8bb161766bfd9ca09932de32bf.jpeg)  
Is this correct ?  
I realized they used a lot of different envMap for each object, whether this makes the project complicated

---

<div class="post-metadata">

**Author:** ![looeee](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/looeee/32/59_2.png) [@looeee](https://discourse.threejs.org/u/looeee)\
**Post date:** [March 2, 2019, 2:53am UTC](https://discourse.threejs.org/t/lighting-for-interior/6364/4 "2019-03-02T02:53:59Z")

</div>

> [@Mugen87](#):
>
> Using an environment map is the right approach for this.

_**EDIT: Since I wrote this there was a box projected cube map example added, and then removed from three.js. [You can find the code here](https://github.com/mrdoob/three.js/pull/15897).**_

Using an environment map is the _best_ approach available in three.js.  
It’s not the _correct_ approach for indoor scenes though since it assumes an environment at an infinite distance.

I don’t think it would be possible to get the correct parallax from the windows on the coffee table like this using an environment map:

 ![table](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/0/0286701b7added20182e79001b81feb2cf1a2efe.png)

Instead, you would need to use light probes or something similar.

Then again, the more I look at it, the less correct the window reflection looks to me so maybe they are using an environment map 😅

---

<div class="post-metadata">

**Author:** ![Thanh\_Ha](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/thanh_ha/32/20150_2.png) [@Thanh\_Ha](https://discourse.threejs.org/u/Thanh_Ha)\
**Post date:** [August 16, 2021, 7:24am UTC](https://discourse.threejs.org/t/lighting-for-interior/6364/5 "2021-08-16T07:24:13Z")

</div>

I want to build a room like this too. But I can not get the idea. Was the showroom built form ‘gltf file’?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [August 16, 2021, 8:43am UTC](https://discourse.threejs.org/t/lighting-for-interior/6364/6 "2021-08-16T08:43:45Z")

</div>

The showcase is now many years old and at that time glTF was not that established like today. The project used a custom JSON format for defining the scene. If you want to develop a similar application now, I would recommend to use glTF.

---

<div class="post-metadata">

**Author:** ![Thanh\_Ha](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/thanh_ha/32/20150_2.png) [@Thanh\_Ha](https://discourse.threejs.org/u/Thanh_Ha)\
**Post date:** [August 16, 2021, 1:01pm UTC](https://discourse.threejs.org/t/lighting-for-interior/6364/7 "2021-08-16T13:01:11Z")

</div>

Do you know how to create a list sphere to choose material for object when click to it like that showroom?
