# Vray sun random creation

**URL:** <https://forums.chaos.com/t/vray-sun-random-creation/40578>\
**Category:** Issues\
**Created:** [March 2, 2012, 6:02pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578 "2012-03-02T18:02:18Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karonte](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/karonte/32/23699_2.png) [@Karonte](https://forums.chaos.com/u/Karonte)\
**Post date:** [March 2, 2012, 6:02pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/1 "2012-03-02T18:02:18Z")

</div>

hi guys  
in the last few days i’ve encountered several times a new, really tedious problem.

I am normally working on my scenes when, suddenly, a “VraySun” is created.  
The thing seems to happen completely random, and i get aware of it only by the suddenly fully-clamped white viewport or, at worst, at render time. No errors, no freezing, no strange outputs of the macro recorder. Nothing. It just appears.

This happened at least 7-8 times, on different files and different kinds of work (animations, architectural scenes with imported cads and fully “max-native” scenes). It happened in scenes where the sun+sky wasn’t even ever used, and on more then one pc; one of them was a bare max+vray render node, with no plugins, scripts or other stuff on it.

Any clue? I’m currently using vray 2.20.03, and i often use vrayRT.

---

<div class="post-metadata">

**Author:** ![super\_gnu](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@super\_gnu](https://forums.chaos.com/u/super_gnu)\
**Post date:** [March 2, 2012, 6:24pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/2 "2012-03-02T18:24:48Z")

</div>

happens to me all the time.. its an old bug that i thought had gone away, but seems to have cropped up again recently. vlado?

---

<div class="post-metadata">

**Author:** ![Karonte](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/karonte/32/23699_2.png) [@Karonte](https://forums.chaos.com/u/Karonte)\
**Post date:** [March 2, 2012, 6:29pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/3 "2012-03-02T18:29:47Z")

</div>

it’s Strange. I have Vray since long tome but never happens… And i Have FOUR licences in different pc. Strange it’s happened now…

---

<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 2, 2012, 6:34pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/4 "2012-03-02T18:34:13Z")

</div>

Are you merging objects from other scenes which contain the V-Ray sun? Or are you loading render presets that were saved with a VRaySky in the environment slot?

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![Karonte](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/karonte/32/23699_2.png) [@Karonte](https://forums.chaos.com/u/Karonte)\
**Post date:** [March 2, 2012, 6:47pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/5 "2012-03-02T18:47:12Z")

</div>

case1) I Open a scene in Vray, work and the new Sun appear.  
case2) I start 3dsmax, import a dxf cad from autocad, start to put material and light…and a new sun Appear.  
case3) in the last work, Yes I merged object from scene with VraySun

could be something related to the vraysky?

---

<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 2, 2012, 7:52pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/6 "2012-03-02T19:52:49Z")

</div>

> [@Karonte](#):
>
> could be something related to the vraysky?

Yes, if you have the sun explicitly connected to the sky, it may be dragged along with the sky texture.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![Karonte](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/karonte/32/23699_2.png) [@Karonte](https://forums.chaos.com/u/Karonte)\
**Post date:** [March 2, 2012, 8:50pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/7 "2012-03-02T20:50:52Z")

</div>

ok. but it’s not our case unfortunately.  
This afternoon we create a new file for an animation. We modeled some poly and apply some materials.  
Than we create a Composite material with a Vraycolor and a Vraysun appeared. Very Strange… new scene… no Vraysky…

---

<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 2, 2012, 8:54pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/8 "2012-03-02T20:54:41Z")

</div>

Ok, very odd. If you can remember the exact steps that you did to get the sun in there, it will be useful. I can’t think of anything right away that will cause this behavior.

Also, can you tell me something about the new sun? What is its position and orientation in the scene?

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![Karonte](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/karonte/32/23699_2.png) [@Karonte](https://forums.chaos.com/u/Karonte)\
**Post date:** [March 2, 2012, 9:09pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/9 "2012-03-02T21:09:40Z")

</div>

It is created always in the same position. In the top View of 3dsMax (2011 64bit in our case…) it is created South/Ovest to North/East. Tomorrow i will try to keep more usefull information.

---

<div class="post-metadata">

**Author:** ![Karonte](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/karonte/32/23699_2.png) [@Karonte](https://forums.chaos.com/u/Karonte)\
**Post date:** [March 5, 2012, 11:39am UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/10 "2012-03-05T11:39:01Z")

</div>

it happened again.  
a new sun appeared.  
the only thing I did was to import a simple vraymaterial ( a light gray..so no textures) from the material editor. The file from which I took the material does not have the sky nor the sun.  
I realize that there are 2 suns on stage only at the rendertime because I usually hide lights ( after finish placing) .

 ![sun.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/3/9/39ac5b82704c4b5a070f61ee344e33f90e1b3bc1.jpeg)

---

<div class="post-metadata">

**Author:** ![Karonte](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/karonte/32/23699_2.png) [@Karonte](https://forums.chaos.com/u/Karonte)\
**Post date:** [March 5, 2012, 11:57am UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/11 "2012-03-05T11:57:14Z")

</div>

after writing th last post i tried to delete the extra sun. Here my steps :  
1) I deleted the old VRaySky from the environment slot  
2) I deleted its instance from the material editor ( so no sky at all)  
than…  
3) I left my sun in the scene called “SOLESTRO” capitalized.  
4) I create a NEW map Vraysky called “cielo” in the material editor.( i changed sun intensity parameter to 2). i choose my “SOLENOSTRO” sun.  
5) I instanced it into environment slot.

…  
.. i use 3dsmax “UNHIDE ALL” to see all object in the scene…and a new “solenostro” (write with no capital letters) is created!!!

---

<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 5, 2012, 2:43pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/12 "2012-03-05T14:43:55Z")

</div>

If you’re using the new material browser (not editor) which leaves the scenes you merged a material from open in between instances of max, it will bring those suns back in the second you press m.

you’re making a new map, which involves using the map browser - and somewhere in your map browser you’ve still got a scene linked. Use the old one, the new one is completely useless because of this.

---

<div class="post-metadata">

**Author:** ![Karonte](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/karonte/32/23699_2.png) [@Karonte](https://forums.chaos.com/u/Karonte)\
**Post date:** [March 5, 2012, 3:26pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/13 "2012-03-05T15:26:46Z")

</div>

We will try. HOPE it will resolve our problems…  
thanks

---

<div class="post-metadata">

**Author:** ![Morbid\_Angel](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/morbid_angel/32/21272_2.png) [@Morbid\_Angel](https://forums.chaos.com/u/Morbid_Angel)\
**Post date:** [March 5, 2012, 4:22pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/14 "2012-03-05T16:22:25Z")

</div>

almost sounds like sun is bound to some short cut key? i’d say blow away max prefs and see if that works? I never personally had this problem.

---

<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 5, 2012, 4:24pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/15 "2012-03-05T16:24:39Z")

</div>

Hm, Dmitry may be right - maybe you can try to reinstall V-Ray with the “Register V-Ray menus” option disabled. We don’t register any shortcuts, just menus, but one never knows…

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![Karonte](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/karonte/32/23699_2.png) [@Karonte](https://forums.chaos.com/u/Karonte)\
**Post date:** [March 5, 2012, 4:52pm UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/16 "2012-03-05T16:52:29Z")

</div>

seems strange to me too… Never had this problem since i use Vray ( lot of years).  
Same problem in 4 different pc. In one of them ,the only thing i did is to upgrade vray with the new one. I will test another 2 days and keep you informed.  
regards.

---

<div class="post-metadata">

**Author:** ![Karonte](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/karonte/32/23699_2.png) [@Karonte](https://forums.chaos.com/u/Karonte)\
**Post date:** [March 6, 2012, 10:06am UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/17 "2012-03-06T10:06:07Z")

</div>

My colleague, in his pc, has created a new scene.  
After 10 minutes of work a VRaySun has created named “Solemio” and not the default name “vraysun001”. more and more strange…

---

<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 6, 2012, 10:41am UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/18 "2012-03-06T10:41:39Z")

</div>

Have you changed to the old material browser?  
The only way to do it is to go to:

- C:\Users\*USERNAME\*\AppData\Local\Autodesk\3dsMaxDesign\2011 - 64bit\enu\plugcfg
- Open up the SME.ini file in notepad
- Find & Change “UseoldMtlBrowser=” to “1”
- File\>Save and close

---

<div class="post-metadata">

**Author:** ![Karonte](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/karonte/32/23699_2.png) [@Karonte](https://forums.chaos.com/u/Karonte)\
**Post date:** [March 6, 2012, 10:44am UTC](https://forums.chaos.com/t/vray-sun-random-creation/40578/19 "2012-03-06T10:44:11Z")

</div>

> [@cubiclegangster](#):
>
> Have you changed to the old material browser?  
> Go to:
> 
> - C:\Users\*USERNAME\*\AppData\Local\Autodesk\3dsMaxDesign\2011 - 64bit\enu\plugcfg
> - Open up the SME.ini file in notepad
> - At the bottom, change “ShowMtlBrowser=” to “0”
> - Change “UseoldMtlBrowser=” to “1”
> - File\>Save and close

yes. I changed it yesterday as you told me.
