# Ceiling Lights Effect Using THREE.JS

**URL:** <https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482>\
**Category:** Questions\
**Tags:** lights, rectarea-light, lightmap\
**Created:** [December 21, 2017, 10:41am UTC](https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482 "2017-12-21T10:41:11Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![darshithedpara](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/darshithedpara/32/5305_2.png) [@darshithedpara](https://discourse.threejs.org/u/darshithedpara)\
**Post date:** [December 21, 2017, 10:41am UTC](https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482/1 "2017-12-21T10:41:11Z")

</div>

I want achieve this type of light in ceiling of my house object in Three.js

rectLight = new THREE.RectAreaLight( 0xffffff, 500, 10, 10 );  
rectLight.position.set( 5, 5, 0 );  
scene.add( rectLight );  
rectLightHelper = new THREE.RectAreaLightHelper( rectLight );  
scene.add( rectLightHelper );

I have Tried all the light type for example pointLight , DirectionalLight , SpotLight and in last i found this ReactAreaLight but still i don’t achieve this type of light in my three.js scene.

![lights](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/threejs/original/1X/ca401a54591d37e88ffb64032abed46f5ce97a3e.jpg) ![lights2](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/threejs/original/1X/b1f88f050d45e9d0673d534cf00b96def4641b88.jpg)

---

<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:** [December 21, 2017, 10:44am UTC](https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482/2 "2017-12-21T10:44:14Z")

</div>

This discussion might help you further: [About light map](https://discourse.threejs.org/t/about-light-map/1152)

---

<div class="post-metadata">

**Author:** ![darshithedpara](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/darshithedpara/32/5305_2.png) [@darshithedpara](https://discourse.threejs.org/u/darshithedpara)\
**Post date:** [December 21, 2017, 10:49am UTC](https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482/3 "2017-12-21T10:49:39Z")

</div>

that link not very use full to me @Mugen87

i need some help or give me direction to achieve this type of effect.

because i have been searching for this about past week. and still got nothing.

and three.js forum has not very active members. what should i do ?

thanx in advance 🙂

---

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [December 21, 2017, 10:50am UTC](https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482/4 "2017-12-21T10:50:12Z")

</div>

> [@darshithedpara](#):
>
> I have Tried all the light type for example pointLight , DirectionalLight , SpotLight and in last i found this ReactAreaLight but still i don’t achieve this type of light in my three.js scene.

This paragraph and given pictures explain nothing. Should we create working examples ourselves, offer them to you, that you can choose an appropriate one, say “Thank you, guys” and disappear? What do you expect, asking such question?

---

<div class="post-metadata">

**Author:** ![darshithedpara](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/darshithedpara/32/5305_2.png) [@darshithedpara](https://discourse.threejs.org/u/darshithedpara)\
**Post date:** [December 21, 2017, 10:51am UTC](https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482/5 "2017-12-21T10:51:44Z")

</div>

No i did not mean that but i just wanna know where to start next ? 🙂

---

<div class="post-metadata">

**Author:** ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)\
**Post date:** [December 21, 2017, 10:54am UTC](https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482/6 "2017-12-21T10:54:32Z")

</div>

> [@darshithedpara](#):
>
> that link not very use full to me @Mugen87

Could you explain why? Any pictures from your project?

---

<div class="post-metadata">

**Author:** ![darshithedpara](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/darshithedpara/32/5305_2.png) [@darshithedpara](https://discourse.threejs.org/u/darshithedpara)\
**Post date:** [December 21, 2017, 10:59am UTC](https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482/7 "2017-12-21T10:59:09Z")

</div>

here u can see this my object and  
i’hve implemented all the control for walking into room  
also implemented VR efferect with remote controls…

i i stuck in Lights .

here u can see my house object

![vrLocal](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/threejs/original/1X/7857bbc4b639e82203075268a4d3a6931b983d6e.jpg)

---

<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:** [December 21, 2017, 11:17am UTC](https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482/8 "2017-12-21T11:17:50Z")

</div>

The discussion that @Mugen87 linked above is the right approach here. I suggest that you look over it again.

The key phrases you should be taking from it to help in your research are “texture baking” and “light maps”.

---

<div class="post-metadata">

**Author:** ![darshithedpara](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/darshithedpara/32/5305_2.png) [@darshithedpara](https://discourse.threejs.org/u/darshithedpara)\
**Post date:** [December 21, 2017, 11:19am UTC](https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482/9 "2017-12-21T11:19:34Z")

</div>

> [@looeee](#):
>
> “texture baking” and “light maps”.

ok thanx 🙂

---

<div class="post-metadata">

**Author:** ![pailhead](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pailhead/32/85_2.png) [@pailhead](https://discourse.threejs.org/u/pailhead)\
**Post date:** [December 21, 2017, 10:40pm UTC](https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482/10 "2017-12-21T22:40:08Z")

</div>

^ which was in the first comment

---

<div class="post-metadata">

**Author:** ![pailhead](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/pailhead/32/85_2.png) [@pailhead](https://discourse.threejs.org/u/pailhead)\
**Post date:** [December 21, 2017, 10:41pm UTC](https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482/11 "2017-12-21T22:41:46Z")

</div>

Maybe the missing piece is

> Someone gave you an asset - house\_without\_textures\_and\_light\_maps

You need to be in a situation:

> Someone gave you an asset - house\_with\_light\_maps

The image you linked is not something that can be generated with three.js.

---

<div class="post-metadata">

**Author:** ![MasterJames](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/masterjames/32/119_2.png) [@MasterJames](https://discourse.threejs.org/u/MasterJames)\
**Post date:** [December 26, 2017, 11:05pm UTC](https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482/12 "2017-12-26T23:05:15Z")

</div>

You can only achieve true lighting with true light aka with high dynamic range so 24 bit on textures, maybe baking, final image etc.never tried with three or GL. It’s a math physics thing you need high power in the lights and an image format that can convey it. If you do get said HDR image also look at Natron the free compositor to try and validate what is scientific fact.

---

<div class="post-metadata">

**Author:** ![Umbawa\_Sarosong](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/umbawa_sarosong/32/30107_2.png) [@Umbawa\_Sarosong](https://discourse.threejs.org/u/Umbawa_Sarosong)\
**Post date:** [December 6, 2025, 3:32pm UTC](https://discourse.threejs.org/t/ceiling-lights-effect-using-three-js/1482/13 "2025-12-06T15:32:32Z")

</div>

to achieve the quality you are looking for you must do render to texture in blender or 3ds max, which means that you do not actually render lightings and shadows in three.js but the lights and shadows are rendered in blender or 3ds max or any rendering software.
