# Reflection probe and arc camera

**URL:** https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468
**Category:** Questions
**Created:** [July 25, 2022, 12:00pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468 "2022-07-25T12:00:14Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![amark](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/amark/32/25897_2.png) [@amark](https://forum.babylonjs.com/u/amark)
#### Post date: [July 25, 2022, 12:00pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/1 "2022-07-25T12:00:14Z")

</div>

HI,  
I m struggling to achieve fixed reflection of PBR material from object. but my findings are.

Here, you can see in while using a **free camera**** reflection is in same place**

free camera object reflection : [https://playground.babylonjs.com/#FEEK7G#458](https://playground.babylonjs.com/#FEEK7G#458)

here, you can see using arc camera the reflection moving with camera rotation  
arc camera object reflection : [https://playground.babylonjs.com/#FEEK7G#459](https://playground.babylonjs.com/#FEEK7G#459)

i want to achieve reflection to be at same position using arc camera like achieved in free camera.

can anyone plz help. thanks

---

<div class="post-metadata">

### Author: ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)
#### Post date: [July 25, 2022, 12:39pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/2 "2022-07-25T12:39:50Z")

</div>

@sebavan - it feels like one of them is not working as expected?

---

<div class="post-metadata">

### Author: ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)
#### Post date: [July 25, 2022, 2:06pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/3 "2022-07-25T14:06:45Z")

</div>

Looks the same to me assuming the same position ?

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/f/6/f6c7bdb59a0fc93a99a85f0ff1843362d6a2c867.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/6/9/6929bc7e57e53561b9febb33a21207b24d709574.jpeg)

---

<div class="post-metadata">

### Author: ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)
#### Post date: [July 25, 2022, 2:13pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/4 "2022-07-25T14:13:13Z")

</div>

What I am referring to is to the behavior when the camera’s position changes, which is exactly what the OP is asking - one camera’s reflection behaves differently that the other one when the camera changes its position

---

<div class="post-metadata">

### Author: ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)
#### Post date: [July 25, 2022, 2:31pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/5 "2022-07-25T14:31:34Z")

</div>

I can t see it happening let me ping you offline 🙂

---

<div class="post-metadata">

### Author: ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)
#### Post date: [July 25, 2022, 2:50pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/6 "2022-07-25T14:50:40Z")

</div>

Discussed offline! 🙂

@amark, would you be able to explain what the actual issue is, or what the expected behavior a little more than a single screenshot?  
My assumption is that you mean that when you rotate the arc rotate camera the reflection doesn’t behave the same. This is the expected behavior, since you are only changing your position but not changing the target

---

<div class="post-metadata">

### Author: ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)
#### Post date: [July 25, 2022, 3:59pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/7 "2022-07-25T15:59:51Z")

</div>

With the arc camera, you will see the same behaviour if you do panning (right click mouse button + move mouse).

---

<div class="post-metadata">

### Author: ![amark](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/amark/32/25897_2.png) [@amark](https://forum.babylonjs.com/u/amark)
#### Post date: [July 26, 2022, 3:58am UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/8 "2022-07-26T03:58:39Z")

</div>

Hi,

thanks for quick response, i guess my explanation was not clear.

if you see i this room the shadow of commode in room is unchanged in different rotation of the camera, here i m using arc camera to rotate this cube.

the same way i m expecting the reflection of the object on floor must be same from any rotation angle. i understand that reflection changes with camera view angle, but here i don’t want reflection of object on floor to be change.

 ![screenshot_-7-25_20-40](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/6/1/61fe28026dab43d2ed6e490dad440d24f1bac738.jpeg)

 ![screenshot_-7-25_20-40 (1)](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/3/2383cd396fed1b721563b13fc8a68a8460d20ff4.png)

 ![screenshot_-7-25_20-44](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/0/c/0cc93f5d2648450bdeab17d760fb07680146622d.jpeg)

---

<div class="post-metadata">

### Author: ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)
#### Post date: [July 26, 2022, 9:44am UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/9 "2022-07-26T09:44:45Z")

</div>

can you reproduce this on the playground, explaining with code? I am still not sure what exactly you are asking…

---

<div class="post-metadata">

### Author: ![tanpopo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/tanpopo/32/32025_2.png) [@tanpopo](https://forum.babylonjs.com/u/tanpopo)
#### Post date: [July 26, 2022, 11:18am UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/10 "2022-07-26T11:18:29Z")

</div>

I guess I’ve understand what you said. In the first PG, reflection don’t change because the camera’s position don’t change while you move around using your mouse, but in the second PG, the arcrotatecamera’ position will be changed. It is the camera’ position that effects the reflection.  
If you try to use arrow keys to move the camera in the first PG, you will also see the reflection change.  
For what you want to achieve, maybe you can create a rtt to create a static texture for reflection and bake it to the diffuseTexture / albedoTexture.

---

<div class="post-metadata">

### Author: ![amark](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/amark/32/25897_2.png) [@amark](https://forum.babylonjs.com/u/amark)
#### Post date: [July 26, 2022, 3:11pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/11 "2022-07-26T15:11:07Z")

</div>

here, is the below image for reference to understand.

**in this image, The reflection of chair, which is appeared because of light and surface glossiness, the position of reflection wont be change, if i move around it in real life.**

[![](https://thumbs.dreamstime.com/b/table-chairs-living-room-reflection-furniture-63761155.jpg) ](https://thumbs.dreamstime.com/b/table-chairs-living-room-reflection-furniture-63761155.jpg)

the same thing i m looking for in program, but in current program while moving camera , the reflection position is kept changing because of behavior .

---

<div class="post-metadata">

### Author: ![amark](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/amark/32/25897_2.png) [@amark](https://forum.babylonjs.com/u/amark)
#### Post date: [July 26, 2022, 3:13pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/12 "2022-07-26T15:13:38Z")

</div>

i agree, change of camera position reflection position will change too, Here **that shouldn’t happen**. this is what i m expecting.

---

<div class="post-metadata">

### Author: ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)
#### Post date: [July 26, 2022, 3:17pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/13 "2022-07-26T15:17:07Z")

</div>

you need to bake the reflection in the albedo or emissive texture. Or to use NME to customize the shader with a new texture for this.

by the way the chair example would look really weird looking at the table from the opposite corner.

---

<div class="post-metadata">

### Author: ![amark](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/amark/32/25897_2.png) [@amark](https://forum.babylonjs.com/u/amark)
#### Post date: [July 26, 2022, 3:18pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/14 "2022-07-26T15:18:23Z")

</div>

HI, here all object are dynamically adding in to room, all 3d objects are in glb format, baking will be process again.

---

<div class="post-metadata">

### Author: ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)
#### Post date: [July 27, 2022, 3:10pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/15 "2022-07-27T15:10:09Z")

</div>

so nme might be the best fit to use a custom extra map.

---

<div class="post-metadata">

### Author: ![amark](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/amark/32/25897_2.png) [@amark](https://forum.babylonjs.com/u/amark)
#### Post date: [July 30, 2022, 10:51am UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/16 "2022-07-30T10:51:29Z")

</div>

i found mirror texture, can we achieve this on PBR material ?

> **[Babylon.js Playground](https://playground.babylonjs.com/#KA93U%23243)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

### Author: ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)
#### Post date: [August 1, 2022, 2:37pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/17 "2022-08-01T14:37:46Z")

</div>

ohhhhh it is what you meant by not moving from the beginning … sorry for the confusion !!!

Yes it would work if you place it in the reflectionTexture of a PBR Material. But it will not handle blurring from the roughness correctly unfortunately ☹

I really think this is something we should try to improve. Maybe @Evgeni_Popov have some ideas ?

---

<div class="post-metadata">

### Author: ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)
#### Post date: [August 1, 2022, 3:40pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/18 "2022-08-01T15:40:58Z")

</div>

It seems the roughness is taken into account? See:

> **[Babylon.js Playground](https://playground.babylonjs.com/#12J1WW%234)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

However, it does more a dimming than a blurring…

There’s also the possibility to apply a custom blur pass if the effect from the roughness is not visible enough:

> **[Babylon.js Playground](https://playground.babylonjs.com/#12J1WW%233)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

### Author: ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)
#### Post date: [August 31, 2022, 2:02pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/19 "2022-08-31T14:02:34Z")

</div>

@sebavan is there anything to follow up on this? 🤔

---

<div class="post-metadata">

### Author: ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)
#### Post date: [August 31, 2022, 2:47pm UTC](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468/20 "2022-08-31T14:47:19Z")

</div>

I added here to be sure we do not forget: [Improve SSR / SSAO / Mirror reflections · Issue #12630 · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/issues/12630)

but yes definitely something weird going on here.

[Next page](https://forum.babylonjs.com/t/reflection-probe-and-arc-camera/32468.md?page=2)
