About Store Forum Documentation Contact
Donations:
158$/mo



Post Reply 
Viewport Sky
Author Message
Rabishan Offline
Member

Post: #1
Viewport Sky
Hi everyone,

this may be a stupid question. how do we enable/disable sky in viewport?

thanks in advance.
03-28-2013 12:32 PM
Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #2
RE: Viewport Sky
That depends on if you mean in code or in the editor. In code you use Sky.atmospheric (take a look at Sky.h). In the 1.0 editor you can disable it in the envirnoment options and I believe in the 2.0 editor you use an environment asset to control the sky.
03-28-2013 02:44 PM
Find all posts by this user Quote this message in a reply
Rabishan Offline
Member

Post: #3
RE: Viewport Sky
thanks for the reply @fatcoder
i use this code in the DrawViewport() function.
Code:
Sky.atmospheric().frac(0.5);
Sky.atmosphericDensityExponent(1);
Sky.atmosphericHorizonExponent(4);
Sky.atmosphericHorizonColor(Vec4(127,158,223,255));
Sky.atmosphericSkyColor(Vec4(159,208,231,230));

i get this settings from environment editor settings

but in output i get all white background as in the pic.


Attached File(s) Image(s)
   
03-29-2013 07:36 AM
Find all posts by this user Quote this message in a reply
Koniu Offline
Member

Post: #4
RE: Viewport Sky
In editor you have enabled bloom?
If no, you must disabled bloom in your code
03-29-2013 11:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Rabishan Offline
Member

Post: #5
RE: Viewport Sky
turning off bloom seemed to do the trick. thanks @Koniu for the suggestion.
04-01-2013 06:27 AM
Find all posts by this user Quote this message in a reply
Post Reply