# Switch between scene

**URL:** https://discourse.threejs.org/t/switch-between-scene/29521
**Category:** Questions
**Tags:** scene
**Created:** [September 2, 2021, 11:10am UTC](https://discourse.threejs.org/t/switch-between-scene/29521 "2021-09-02T11:10:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Djo](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@Djo](https://discourse.threejs.org/u/Djo)
#### Post date: [September 2, 2021, 11:10am UTC](https://discourse.threejs.org/t/switch-between-scene/29521/1 "2021-09-02T11:10:21Z")

</div>

hi all  
i want to switch between two scene using class constructor when i click on mesh with raycaster  
i try this  
[https://jsfiddle.net/infomejdi/xhwj5poL/2/](https://jsfiddle.net/infomejdi/xhwj5poL/2/)  
and the new scene is renderer just when i move the cursor i dont know why  
help plz

---

<div class="post-metadata">

### Author: ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)
#### Post date: [September 2, 2021, 12:53pm UTC](https://discourse.threejs.org/t/switch-between-scene/29521/2 "2021-09-02T12:53:40Z")

</div>

Could you double-check if the linked jsfiddle works as it should 🤔 ? It appears blank - the code also seems a bit all over the place 😅

---

<div class="post-metadata">

### Author: ![Djo](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@Djo](https://discourse.threejs.org/u/Djo)
#### Post date: [September 2, 2021, 1:54pm UTC](https://discourse.threejs.org/t/switch-between-scene/29521/3 "2021-09-02T13:54:36Z")

</div>

thank you for your answer i solved my problem  
it was because of light source
