# Env light working differently in viewport than in vfb

**URL:** <https://forums.chaos.com/t/env-light-working-differently-in-viewport-than-in-vfb/53852>\
**Category:** Issues\
**Created:** [May 21, 2015, 2:58am UTC](https://forums.chaos.com/t/env-light-working-differently-in-viewport-than-in-vfb/53852 "2015-05-21T02:58:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![soulburn3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/soulburn3d/32/46297_2.png) [@soulburn3d](https://forums.chaos.com/u/soulburn3d)\
**Post date:** [May 21, 2015, 2:58am UTC](https://forums.chaos.com/t/env-light-working-differently-in-viewport-than-in-vfb/53852/1 "2015-05-21T02:58:06Z")

</div>

So here’s an odd one. I have a scene in 3dsmax that contains a sphere, a vray camera and a dome vray light with a VrayHDRI map assigned to the texture slot. When I turn on the Activeshade in the viewport, I get image #1 below, which is totally wrong.

I close the activeshade viewport. Then when I change the renderer to “Active Shade Mode” in the Render Setup Floater and hit render, it render image #2 below in the vfb, which is the correct result.

Then I turn the active shade viewport back on, and now it renders correctly too (image 3)  
.

Any idea what might be happening?

- Neil

 ![1.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/e/8/e84a523f2b41395d39889ea13ee1336559810383.jpeg)  
 ![2.jpg](https://europe1.discourse-cdn.com/chaosprd/original/2X/8/84d1cfed4c0710e2a1582baddc3a07ec72be72bc.jpeg)  
 ![3.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/f/f/ff04c6579fcd1457d99e71327fd0053bdb89b102.jpeg)

---

<div class="post-metadata">

**Author:** ![tashko.zashev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/tashko.zashev/32/275280_2.png) [@tashko.zashev](https://forums.chaos.com/u/tashko.zashev)\
**Post date:** [May 21, 2015, 5:26am UTC](https://forums.chaos.com/t/env-light-working-differently-in-viewport-than-in-vfb/53852/2 "2015-05-21T05:26:37Z")

</div>

Hi Neil,

I’m not able to reproduce it in my tests. What is the exact V-Ray/3DS Max version? Can you post the scene file to check the entire setup?

---

<div class="post-metadata">

**Author:** ![soulburn3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/soulburn3d/32/46297_2.png) [@soulburn3d](https://forums.chaos.com/u/soulburn3d)\
**Post date:** [May 21, 2015, 2:47pm UTC](https://forums.chaos.com/t/env-light-working-differently-in-viewport-than-in-vfb/53852/3 "2015-05-21T14:47:00Z")

</div>

Thanks for looking into this, attached is a max file. Max 2014, vray 3.20.01

- Neil  
[rtbroken.zip](https://forums.chaos.com/uploads/short-url/luiTXsrYGo6pXW1cgEbSQxWAngu.zip) (483 KB)

---

<div class="post-metadata">

**Author:** ![tashko.zashev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/tashko.zashev/32/275280_2.png) [@tashko.zashev](https://forums.chaos.com/u/tashko.zashev)\
**Post date:** [May 22, 2015, 7:02am UTC](https://forums.chaos.com/t/env-light-working-differently-in-viewport-than-in-vfb/53852/4 "2015-05-22T07:02:29Z")

</div>

Thank you Neil,

Got the same result with your scene file here. There is something strange, because I’m not able to reproduce it on a completely new scene setup even with the exactly the same objects and V-Ray settings. Furthermore the Active Shade (RT) works fine in all viewports (front, left, top) except the lower right perspective (camera) one.

Have you made any specific adjustments to this viewport? The viewport Active shade renderer seems to use different camera type.

---

<div class="post-metadata">

**Author:** ![tashko.zashev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/tashko.zashev/32/275280_2.png) [@tashko.zashev](https://forums.chaos.com/u/tashko.zashev)\
**Post date:** [May 22, 2015, 11:40am UTC](https://forums.chaos.com/t/env-light-working-differently-in-viewport-than-in-vfb/53852/5 "2015-05-22T11:40:38Z")

</div>

The reason for this wrong active shade render is the locked view.

I will send a bug report to our devs.

 ![2015-05-22 14_31_36}.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/f/9/f95a32a645633728fbe49863cb8b038f76ddaaec.jpeg)

---

<div class="post-metadata">

**Author:** ![soulburn3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/soulburn3d/32/46297_2.png) [@soulburn3d](https://forums.chaos.com/u/soulburn3d)\
**Post date:** [May 22, 2015, 4:40pm UTC](https://forums.chaos.com/t/env-light-working-differently-in-viewport-than-in-vfb/53852/6 "2015-05-22T16:40:00Z")

</div>

Thanks for figuring this out. So is it that the view being locked means vrayRT is giving the wrong camera information to the viewport?

- Neil

---

<div class="post-metadata">

**Author:** ![tashko.zashev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/tashko.zashev/32/275280_2.png) [@tashko.zashev](https://forums.chaos.com/u/tashko.zashev)\
**Post date:** [May 23, 2015, 1:02pm UTC](https://forums.chaos.com/t/env-light-working-differently-in-viewport-than-in-vfb/53852/7 "2015-05-23T13:02:37Z")

</div>

Actually it is difficult to say exactly what is happening because I can’t export a .vrscene file for this setup and find which camera or view is used.  
However, our developers will take care of it.

---

<div class="post-metadata">

**Author:** ![soulburn3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/soulburn3d/32/46297_2.png) [@soulburn3d](https://forums.chaos.com/u/soulburn3d)\
**Post date:** [May 23, 2015, 2:44pm UTC](https://forums.chaos.com/t/env-light-working-differently-in-viewport-than-in-vfb/53852/8 "2015-05-23T14:44:50Z")

</div>

Cool. I did some more poking and it seems that just turning on that lock messes everything up, turning if off makes everything work. So maybe turning on the lock just negates the entire scene. Anyways, glad it’ll get fixed, locking viewports is a very common thing to do. Thanks for the help!

- Neil

---

<div class="post-metadata">

**Author:** ![tashko.zashev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/tashko.zashev/32/275280_2.png) [@tashko.zashev](https://forums.chaos.com/u/tashko.zashev)\
**Post date:** [May 25, 2015, 5:22am UTC](https://forums.chaos.com/t/env-light-working-differently-in-viewport-than-in-vfb/53852/9 "2015-05-25T05:22:55Z")

</div>

> I did some more poking and it seems that just turning on that lock messes everything up, turning if off makes everything work.  
> Yes, this is exactly what is happening when the current render is V-Ray Adv. If you change the render mode to Active shade, then it will work fine again even with locked view.

---

<div class="post-metadata">

**Author:** ![soulburn3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/soulburn3d/32/46297_2.png) [@soulburn3d](https://forums.chaos.com/u/soulburn3d)\
**Post date:** [December 19, 2015, 10:37pm UTC](https://forums.chaos.com/t/env-light-working-differently-in-viewport-than-in-vfb/53852/10 "2015-12-19T22:37:03Z")

</div>

Fixed in 3.3. Thanks!

- Neil
