About Store Forum Documentation Contact



Post Reply 
Custom sun ray colour not working
Author Message
Hokan Offline
Member

Post: #1
Custom sun ray colour not working
As title - if I create custom sun via SunClass constructor (reason - I want to have two suns), its ray_colour member won't affect sun's rendering. BUT this works with so called "Main Sun" - global "Sun" variable.

Code:
vigilantEye.sun.image = UID(2922889087, 1171051764, 3010789764, 3570309810); // Images/sun
vigilantEye.sun.size = 0.05;
Vec lightColour(255, 242, 161);
lightColour /= 255;
/**********************************************/
Vec raysColour(171, 171, 171);
raysColour /= 255;
vigilantEye.sun.rays_color = raysColour;
/**********************************************/
Vec imageColour = lightColour * 255;
vigilantEye.sun.light_color = lightColour;
vigilantEye.sun.image_color.set(imageColour.x, imageColour.y, imageColour.z);
vigilantEye.sun.glow = 255;
vigilantEye.sun.highlight_front = 0.275;
vigilantEye.sun.highlight_back = 1.0;

How it suppose to work (as Sun parameter of Environment):
[Image: 4PZ9og.png]

How it works in application (to the right glowing of Editor's sun):
[Image: JBghbG.png]

So my questions are:
1. Is there an option to make "rays_color" work on custom suns?
2. Is it a bug or native behavior (and Engine renders external Sun specificly)?
3. If it is a bug, will it be fixed or is it fixed? (I'm using version from Feb.'15)
07-22-2015 07:48 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #2
RE: Custom sun ray colour not working
Ray colour should be the colour of the sunlight going through/around objects. That's not visible in your example.

http://daverand.com/main-page-pics/god-rays.jpg
07-23-2015 07:12 AM
Find all posts by this user Quote this message in a reply
Hokan Offline
Member

Post: #3
RE: Custom sun ray colour not working
Ok, maybe "rays_color" describe god rays (and not "light_vol", "light_vol_exp" and "light_vol_steam" parameters), but as you see it also describe sun's light source brightness, and it's working for main sun.
07-23-2015 08:48 AM
Find all posts by this user Quote this message in a reply
Post Reply