Page 1 of 2

hdr + sun the return

Posted: Thu Nov 08, 2012 12:19 am
by rickyinmotion
as we can't mix a sun with hdri, I make two render one with the hdri and the other with phys sky and mix them in photoshop. No need a high sample image for the phys sky one sample 12 is enough.

Re: hdr + sun the return

Posted: Thu Nov 08, 2012 3:18 pm
by dariolanza
Hello rickinmotion,

If you need the direct contribution of a Sun plus and hdr skydome, I also recommend you this workaround:

- Create an squared plane (9m x 9m) and apply an emitter material to it (1000000 Watts and 5777K color). You can apply a round mask to the whole material if you want to ensure its round shape.

- Put the emitter 1km away form the center of the scene. These proportions (9m side and 1km away produce the same sun aspect and size than the actual sun diameter at the actual distance).

- Parent the sun object to a null locator in the center of the scene just to be able to rotate the sun freely.

This way allows you to get the result you want (custom sun + hdr lighting), but the benefit is that you get it in the same render time (no need to launch a different render and then compose them).

In addition, you can enable MultiLight and thus have custom control over the hdr and sun intensities separately.

Even more: if you enabled Color MultiLight (take care of your Ram consumption), you could adjust the sun color as well.

And all of this in one render ; )

I hope this were helpful.

Greetings

Dario Lanza

Re: hdr + sun the return

Posted: Thu Nov 08, 2012 4:50 pm
by rickyinmotion
Thanks for this helpful workaround.
But why not integrate this in the next release of Maxwell :roll:

Re: hdr + sun the return

Posted: Thu Nov 08, 2012 5:04 pm
by arch3d
Nice technique, thank you for share

Thanx

Re: hdr + sun the return

Posted: Thu Nov 08, 2012 6:36 pm
by Gary Bidwell
Hi Dario,

nice info, cheers.

What Efficacy would you suggest using on the sun light?

cheers,

Steve

Re: hdr + sun the return

Posted: Thu Nov 08, 2012 7:14 pm
by Half Life
That is a nice tip, but it doesn't take into account atmospheric conditions (only the sun disk itself) so things like the "sun halo" effect do not appear... so it really is only appropriate for space renders (where there is no atmospheric scattering present).

Best,
Jason.

Re: hdr + sun the return

Posted: Fri Nov 09, 2012 2:29 pm
by AlexP
But halo will be visible from HDRI most probably, usually it's not clipped by camera when taking photo.

Re: hdr + sun the return

Posted: Fri Nov 09, 2012 4:06 pm
by Half Life
If all you are trying to do is add back contrast (strong/sharp shadows) to a poorly made HDR then editing it in Photoshop is faster and easier by far. This technique makes the most sense in IBL where the sun is completely hidden from view( cloudy day, etc.) and you want to inject a "sun" into the scene. However without atmospheric scattering to soften/diffuse the "sun" you will get a result that is far too "contrasty" -- yielding ridiculously unrealistic hard shadows... except for a space render (which I do from time to time) where this technique is very helpful :D

Best,
Jason.

Re: hdr + sun the return

Posted: Fri Nov 09, 2012 4:27 pm
by sandykoufax
My old solution is here

Just hole for HDRI dome
Image

direct Sun lighting
Image

HDRI lighting
Image

Final lighting with Multilight
Image

Re: hdr + sun the return

Posted: Fri Nov 09, 2012 5:44 pm
by Half Life
Yes, that's a much more natural looking solution :D

Here are some renders to show what I mean -- I used the default physical sky which is going to be as "contrasty" as the sky will ever be (much more so than a cloudy day), and even here you can easily see the that the disk solution is harsher and artificial looking... now you could fiddle with multi-light to get the color and intensity to be a closer match for a particular time of day. However at the end of the day the disk solution takes twice as long to render (than Physical Sky Sun) and is not nearly as natural looking.

Disk - Noon
Image
Sun - Noon
Image
Disk - Morning
Image
Sun - Morning
Image

With effort it could be made to be OK in certain circumstances but the old solution(post above mine) is generally faster and more natural looking.

Best,
Jason.

Re: hdr + sun the return

Posted: Fri Nov 09, 2012 6:14 pm
by rusteberg
Half Life wrote:Dario, you're crazy for suggesting that idea. It's bogus at best. Since my chubby little fingers cannot type fast enough in order to convey the massive amount of information running through my brain at any given point in time, Here are some renders to show what I mean -- I used the default physical sky because I love baked potatoes (much more so on a sunny day than a cloudy day), and even here you can easily see that adding bacon bits, butter, sour cream, and gummy bears makes the potato harsher and artificial looking... now you could fiddle with your toppings to get the color and intensity to be a closer match to a real potato for a particular time of day. However at the end of the day I just like potatoes.

With effort, your potatoes could be made to be OK in certain circumstances but potatoes with more toppings generally taste better if you ask me.

Best,
Mr. Potato.

Re: hdr + sun the return

Posted: Fri Nov 09, 2012 6:45 pm
by rickyinmotion
The other solution and works great as well is using hdrlightstudio 4 with the sun shade function
my 2 cents for this thread

Re: hdr + sun the return

Posted: Sun Nov 11, 2012 11:06 am
by choo-chee
I do it a bit different - for interiors esp.:
1 render with sun - no glass in windows
1 render with sky dome (no sun) and glass in windows
merge it and you have physical sun with "ambient occlusion"....

Re: hdr + sun the return

Posted: Sun Nov 11, 2012 2:49 pm
by dynaraton
I do it very easy.

1. I make a sphere for my skydome and apply my sky pano mxi (or hdri).
2. I apply the Maxwell tag "hide from GI" to the sphere (skydome).
Bingo - I have sun that enters the sphere and thus have the Maxwell sun in my scene.
Everything can be adjusted with multi-light as I do it even with the standard sun/sky anyway.

I only use the fake sun method when I want soft shadows...this is when I make an array of spheres to give a soft shadow effect like when the sun is passing over some clouds. I use the 5777k temperature also for daytime scenes but this value gets a bit tricky when you want the sun closer to morning/dusk because that value is not good any more an you have to lower/tweak your temperature value. Render times also seem to be much higher than using the Maxwell sun.

Re: hdr + sun the return

Posted: Sun Nov 11, 2012 5:34 pm
by eric nixon
I apply the Maxwell tag "hide from GI" to the sphere
This is a mistake, it does more than just let the sun through, it also stops the lightsource from contributing to second bounces (in recesses and corners) best to avoid such hacks, and also bear in mind that if you hide to gi you also need to hide from ref, if you want a correct render.

Dario has correctly recommended the best technique, he omitted to mention that you need to choose an appropriate hdr and align it, prob because thats quite obvious and didnt need saying. The other technique which is quicker but less flexible is just painting/boosting the sun spot in PS, as has been mentioned.