Page 1 of 2

Physical sky without sun

Posted: Wed Jan 23, 2008 11:39 pm
by Pibuz
..sorry i bother again (i don't even know if it's the right place to post), but i'd like to ask Whaat if it sould be possible to implement the "Sun and sky" section by adding a checkbox about exporting sun's direct light. I mean, sometimes i found useful to have the possibility to maintain sky colors' shade at a certain hour of the day, but without direct sunlight.

(i used to see this checkbox in Maxwell..)

Could this be possible?

Posted: Thu Jan 24, 2008 12:51 am
by psor
@Pibuz

Sorry to say that, but AFAIK Indigo will output an error if you try to
remove the sun from the skylight element. :? :( :roll: :wink:



take care
psor

Posted: Thu Jan 24, 2008 2:45 am
by Pibuz
Hi Psor! Thank you for your quick answer!

..but..
I think the implementation i'm speaking about is not so difficult..

I mean: i'm not a programmer, of course, and i can be really wrong..
But i say: INDIGO already recognizes a Global Illumination coming from the sky (shaded in relation to sun's coordinates); all it would have to do in addition, would be to "ignore" direct lighting..

Is it really that difficult?

Posted: Thu Jan 24, 2008 3:08 am
by Kram1032
Why should you want to entirely remove the sun?
You can simply set the sun direction to 0 0 0 ;)
This wont give any error.

Posted: Thu Jan 24, 2008 3:26 am
by Pibuz
..but like this i'll only obtain ONE shade of sky! (..or not?)

Instead, i could want the 6-PM sky, let's say, but without the 6-PM shadows..

6-PM sky is very different from 10-AM sky, as everybody knows :D

..i don't know if i'm clear..
i'm sure that if anyone here has ever used maxwell (even for trial only) he knows what i'm speaking about :roll:

Posted: Thu Jan 24, 2008 3:56 am
by Kram1032
I don't know, how it looks, actually. I just know, it works^^

Well, about the time: Indigo changes the sun position with and without BiDir or Exit Portals, anyway, so it wont be that accurate, as long as Ono doesn't spot the reason and fixes it. And I guess, it's a hard one to spot....

One idea, though: If you have a quite clean sky - and the sky usually clears out quickly - you can simply use the healing brush or something to remove the sun ;)

Posted: Thu Jan 24, 2008 5:51 am
by Pibuz
I know: it is absolutely no work, erasing a small dot in the sky (the sun, obviously); it's just that i don't want sun's SHADOWS!

You know: in Skindigo you can set "sun and sky" or "sketchup background color" as an environment. If you choose "sun and sky" you get a nice sky shade (according to sun position), and sun's direct shadows.
If you choose "sketchup background color" you get a diffuse lighting and no direct shadow.

I just want no direct shadows and the nice sky shade, simply..

Posted: Thu Jan 24, 2008 6:00 am
by crojack
Out of curiosity, why would you not want shadows? I'm not questioning your wants :) just curious. Is it to have a nice sky, but then have shadows from lights you place or??

In my experiments with exr maps, I've gotten a "sky" but the shadows are almost non-existent, no hard shadows at all. maybe that would work.

Posted: Thu Jan 24, 2008 6:07 am
by Zom-B
It seems you have to go for env_maps dude!

generating an cloud free sky is very easy using a gradient,but you need to do this in 32bit mode!

Hmmm... some fre Programm did exactly this!
(or a plugin for a tonemaping app?! I can't remember)

**EDIT**
ohhh.... the older CloudWright Beta period is over and it doesn't work anymore :(

Posted: Thu Jan 24, 2008 6:12 am
by dougal2
To soften or remove the shadows you can place your scene in a Glossy Transparent glass-house:

http://www.indigorenderer.com/joomla/fo ... php?t=3397

You should still be able to see the sky colour through the glass and the shadows are controllable by using the Exponent setting on the Glossy Transparent glass.

Posted: Thu Jan 24, 2008 6:18 am
by Pibuz
@ crojack

After a few trial and error, i found that simple models lit by a physical sky only (without direct sunlight) most of the times give the idea of a real model photographs. It's useful for us architects when we have to give photos of model for competitions and we have no time for making a real model.. :roll:

So, does any developer (...magic whaat?) think that a "sun and sky" system is something realizeable? PLEASEPLEASEPLEASE......

Posted: Thu Jan 24, 2008 6:47 am
by OnoSendai
Hi Pibuz, it would have to be done in Indigo.
It's kind of a silly request (clear sky without a sun? :) ) but I'll think about it.

Posted: Thu Jan 24, 2008 6:58 am
by crojack
Pibuz wrote:@ crojack

After a few trial and error, i found that simple models lit by a physical sky only (without direct sunlight) most of the times give the idea of a real model photographs. It's useful for us architects when we have to give photos of model for competitions and we have no time for making a real model.. :roll:

So, does any developer (...magic whaat?) think that a "sun and sky" system is something realizeable? PLEASEPLEASEPLEASE......
That's what I do all day long (architecture), but in the outside models I've done, having the shadows there helps greatly in the realization of the model. how else to show the nuances of small shadow lines in the building, or depth? matter of opinion of course :)

I'd like to see an example though if possible, even if it is with maxwell.

Posted: Thu Jan 24, 2008 6:58 am
by Zom-B
OnoSendai wrote:Hi Pibuz, it would have to be done in Indigo.
It's kind of a silly request (clear sky without a sun? :) ) but I'll think about it.
If you think about it, perhaps think about a feature to generate a gradient, by defining position & color... maybe even a value for a possible noisy transition using some perlin... :)

Posted: Thu Jan 24, 2008 7:25 am
by Kram1032
If you just don't want the shadows, you can do it like this:
sun direction 0 0 0 (the light should come uniformly from all the directions)
2nd render with *only* the sky
3rd with alpha-channel-mode of your scene :)

or the same but instead of direction 0 0 0, use a kinda sky-coloured BGcolour ;) (around 6500-7500 K, if you use an emitter dome... though, you can change it, so that it kinda fits your sky... that way, you'd become any colour you want ;))