# Vraysun render position not matching viewport position

**URL:** <https://forums.chaos.com/t/vraysun-render-position-not-matching-viewport-position/49058>\
**Category:** Issues\
**Created:** [March 17, 2014, 2:20pm UTC](https://forums.chaos.com/t/vraysun-render-position-not-matching-viewport-position/49058 "2014-03-17T14:20:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tricky](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/tricky/32/56653_2.png) [@tricky](https://forums.chaos.com/u/tricky)\
**Post date:** [March 17, 2014, 2:20pm UTC](https://forums.chaos.com/t/vraysun-render-position-not-matching-viewport-position/49058/1 "2014-03-17T14:20:50Z")

</div>

I am positioning the vray sun in-camera so that it appears just behind a particular bit of geometry. It is not connected to any kind of daylight system. When I render, the position of the sun ‘orb’ is very different to the viewport position.

Any ideas?

 ![sun position.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/8/f/8f0c38df110621846c2e8826cc556df875002d0e.jpeg)

---

<div class="post-metadata">

**Author:** ![Dave\_Wortley](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@Dave\_Wortley](https://forums.chaos.com/u/Dave_Wortley)\
**Post date:** [March 17, 2014, 5:14pm UTC](https://forums.chaos.com/t/vraysun-render-position-not-matching-viewport-position/49058/2 "2014-03-17T17:14:01Z")

</div>

How close is your sun node to the rest of your objects in the scene, Remember the Sun Position is supposed to be a few million miles away so you may need to move your sun light object back in distance a bit to get a more accurate viewport representation of where your sun is in the sky.

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [March 17, 2014, 5:30pm UTC](https://forums.chaos.com/t/vraysun-render-position-not-matching-viewport-position/49058/3 "2014-03-17T17:30:36Z")

</div>

Dave is right, you’ll need to move the sun further away to get a better idea of where it will be in the image.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![MoonDoggie](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/moondoggie/32/68517_2.png) [@MoonDoggie](https://forums.chaos.com/u/MoonDoggie)\
**Post date:** [March 17, 2014, 11:57pm UTC](https://forums.chaos.com/t/vraysun-render-position-not-matching-viewport-position/49058/4 "2014-03-17T23:57:11Z")

</div>

haha, change your coord mode to local, and select your move tool. Set your transform to relative transformations and in Z, type -92,960,000 miles

---

<div class="post-metadata">

**Author:** ![Dave\_Wortley](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@Dave\_Wortley](https://forums.chaos.com/u/Dave_Wortley)\
**Post date:** [March 18, 2014, 12:27am UTC](https://forums.chaos.com/t/vraysun-render-position-not-matching-viewport-position/49058/5 "2014-03-18T00:27:14Z")

</div>

> [@Vray RT engine problems with Maya 2013 (#2)](https://forums.chaos.com/t/vray-rt-engine-problems-with-maya-2013-2/44464/2):
>
> haha, change your coord mode to local, and select your move tool. Set your transform to relative transformations and in Z, type -92,960,000 miles

That might be a little excessive… a few 100m will normally do ok.

---

<div class="post-metadata">

**Author:** ![Neilg](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/neilg/32/7044_2.png) [@Neilg](https://forums.chaos.com/u/Neilg)\
**Post date:** [March 18, 2014, 12:32am UTC](https://forums.chaos.com/t/vraysun-render-position-not-matching-viewport-position/49058/6 "2014-03-18T00:32:35Z")

</div>

the sun target has to be aligned to the camera too, yours is off to one side.

---

<div class="post-metadata">

**Author:** ![MoonDoggie](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/moondoggie/32/68517_2.png) [@MoonDoggie](https://forums.chaos.com/u/MoonDoggie)\
**Post date:** [March 18, 2014, 1:58am UTC](https://forums.chaos.com/t/vraysun-render-position-not-matching-viewport-position/49058/7 "2014-03-18T01:58:36Z")

</div>

> [@Render elements that I'd like :D](https://forums.chaos.com/t/render-elements-that-id-like-d/44389/6):
>
> That might be a little excessive… a few 100m will normally do ok.

I disagree. Exact distances only.

---

<div class="post-metadata">

**Author:** ![tricky](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/tricky/32/56653_2.png) [@tricky](https://forums.chaos.com/u/tricky)\
**Post date:** [March 18, 2014, 9:22am UTC](https://forums.chaos.com/t/vraysun-render-position-not-matching-viewport-position/49058/8 "2014-03-18T09:22:13Z")

</div>

Thanks guys. I will do this. I just assumed WYSIWYG as with spotlights/omni/ies etc.
