EnvMap + (fake) Sun Tutorial

Tutorials/guides/tips on how to use Indigo and the Indigo exporters
User avatar
juan_irender
Indigo 100
Posts: 251
Joined: Tue Jun 23, 2009 12:37 pm
Location: Spain
3D Software: Cinema 4D

Re: EnvMap + (fake) Sun Tutorial

Post by juan_irender » Fri Oct 09, 2009 3:26 am

Hi!
This is my own attempt to do a environment + sun scene, an outdoor illuminated one.
I´ve used a 16 bit PNG texture for the environment, since it´s rendered with Indigo 2.2.2.
It´s very convenient to manage as separate light layers the environment and the sun :D .

Bye!
Attachments
Dragon.jpg
Dragon.jpg (188.65 KiB) Viewed 10305 times
C4D R18 Studio user
Blender user :D

User avatar
madcoo
Indigo 100
Posts: 206
Joined: Thu Jun 11, 2009 9:05 pm
Location: in France, near Orange (84)
Contact:

Re: EnvMap + (fake) Sun Tutorial

Post by madcoo » Fri Oct 09, 2009 4:18 am

:shock:

Brilliant!!!
Visit my website!
http://www.fairview-3d.com Studio 3D

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: EnvMap + (fake) Sun Tutorial

Post by Zom-B » Fri Oct 09, 2009 6:01 am

I prefer to use 16bit TIFF files since Indigo once some time ago did load 16bit PNGs but clamped to 8bit... maybe this issue is sorted out by now.

Anyway... you can still use float 32bit spheric angular images :)

Get some of these here: http://www.debevec.org/Probes/

Using qtpfsgui you can convert your existing 32bit files to angular or mirror ball and then save as float with HDRshop. Its quite a workaround, and a fix would be more welcome...

Here the code to include the angular image in your scene:

Code: Select all

    <env_map>
        <spherical>
            <path>textures/preview_map.float</path>
            <gain>700000</gain>
            <width>640</width>
        </spherical>
    </env_map>
Last edited by Zom-B on Sat Oct 10, 2009 5:49 am, edited 1 time in total.
polygonmanufaktur.de

User avatar
juan_irender
Indigo 100
Posts: 251
Joined: Tue Jun 23, 2009 12:37 pm
Location: Spain
3D Software: Cinema 4D

Re: EnvMap + (fake) Sun Tutorial

Post by juan_irender » Fri Oct 09, 2009 9:32 am

Thanks, Madcoo!
Thanks again, ZomB. I´ll try this workaround :wink: .

Cheers.
C4D R18 Studio user
Blender user :D

User avatar
juan_irender
Indigo 100
Posts: 251
Joined: Tue Jun 23, 2009 12:37 pm
Location: Spain
3D Software: Cinema 4D

Re: EnvMap + (fake) Sun Tutorial

Post by juan_irender » Fri Oct 09, 2009 10:57 am

Hi again, ZomB.
I´ve converted an .exr file to angular and saved in .hdr format, then I opened in HDR Shop and save the file in .float format.
Now, I´m exporting the scene from Cinema 4D using Cindigo. But unfortunately, Indigo (2.0.12 or 2.2.2) hangs, as occurs with .exr files, so for now, we have only the 16 bit tiff option for MDR quality environments! :?
C4D R18 Studio user
Blender user :D

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: EnvMap + (fake) Sun Tutorial

Post by Zom-B » Sat Oct 10, 2009 5:48 am

Sorry, I totally forgot to give you the code to include the angular float image:

Code: Select all

    <env_map>
        <spherical>
            <path>textures/preview_map.float</path>
            <gain>700000</gain>
            <width>640</width>
        </spherical>
    </env_map>
I updated my previous post too...
polygonmanufaktur.de

User avatar
juan_irender
Indigo 100
Posts: 251
Joined: Tue Jun 23, 2009 12:37 pm
Location: Spain
3D Software: Cinema 4D

Re: EnvMap + (fake) Sun Tutorial

Post by juan_irender » Sat Oct 10, 2009 11:08 pm

Hi, ZomB.
Good news, the .exr files can be used on Indigo 2.2.3 inside an env_map statement with the latlong type.
The sintax is:

Code: Select all

    <env_map>
        <latlong>
            <path>Tex\Environ3.exr</path>
            <gain>80000000</gain>            
        </latlong>
    </env_map>
I´ve render the dragon figure using an HDR environment as the only light source in the scene, I´m amazed at how well defined are the shadows produced by the sun of the HDR map.
Bye!
Attachments
Dragon_env.jpg
Dragon_env.jpg (222.78 KiB) Viewed 10151 times
C4D R18 Studio user
Blender user :D

User avatar
galinette
1st Place Winner
Posts: 923
Joined: Sat Jan 09, 2010 1:39 am
Location: Nantes, France
Contact:

Re: EnvMap + (fake) Sun Tutorial

Post by galinette » Sun Jul 11, 2010 8:14 pm

Not sure that the base problem (soft shadows) does not come from the fact that the envmap is not a real HDR (with physically correct dynamic range). The sun pixels should be something like 30000 to 100000 times brighter than other pixels. In that case, I see no reason why indigo should not produce crisp shadows.

Here are example images, rendered with envmap as only light source.
dino_env_soft.jpg
Image rendered with a clear sky envmap from evermotion. The shadows are soft despite the bright sunlight in the image.

After opening the .exr in photoshop and measuring the pixel values in the sun disc and in the sky, it appears that the contrast is lower than it should be. So I correct by manually painting a sun disc with a brush.
dino_env_sharp.jpg
Now the shadows are OK. Indigo seems to suffer from sampling problems, though.

This shows that soft shadows in envmaps are not intrinsically due to the use of envmaps, but to the fact that camera generated envmaps have a too low dynamic range (sun pixels too low). These envmaps should be manually corrected for proper contrast in photoshop or computer-generated to have correct light power values in the sun disc.

Etienne
Eclat-Digital Research
http://www.eclat-digital.com

User avatar
juan_irender
Indigo 100
Posts: 251
Joined: Tue Jun 23, 2009 12:37 pm
Location: Spain
3D Software: Cinema 4D

Re: EnvMap + (fake) Sun Tutorial

Post by juan_irender » Sun Jul 11, 2010 10:08 pm

Thanks, Galinette :o . I´ll try with some HDRi, seems to be a common "problem" with such pics.

Bye.
C4D R18 Studio user
Blender user :D

User avatar
Pibuz
1st Place 100
Posts: 2646
Joined: Tue Dec 11, 2007 7:58 am
Location: Padua, Italy
3D Software: SketchUp

Re: EnvMap + (fake) Sun Tutorial

Post by Pibuz » Tue Jul 13, 2010 11:59 pm

I must have read something about this in Bertrand Benoit's (old and superb Indigo user) blog. He showed some workarounds to get sharper shadows working with EXR or HDR images. He stated that it is sufficient to open the file in PS and adjust the gamma slider, or something similar.

here is the link, maybe it's useful:
http://bertrand-benoit.com/blog/2010/02 ... -lighting/

User avatar
Frutiger
Posts: 122
Joined: Wed May 05, 2010 4:05 am
Location: Northern California

Re: EnvMap + (fake) Sun Tutorial

Post by Frutiger » Thu Sep 01, 2011 6:09 am

Pibuz wrote:I must have read something about this in Bertrand Benoit's (old and superb Indigo user) blog. He showed some workarounds to get sharper shadows working with EXR or HDR images. He stated that it is sufficient to open the file in PS and adjust the gamma slider, or something similar.

here is the link, maybe it's useful:
http://bertrand-benoit.com/blog/2010/02 ... -lighting/
This works brilliantly. A simple and elegant solution. Easily done in Photoshop with an exposure adjustment layer. I feel like I owe Pibuz at least 10 or 15 beers by now.

User avatar
Pibuz
1st Place 100
Posts: 2646
Joined: Tue Dec 11, 2007 7:58 am
Location: Padua, Italy
3D Software: SketchUp

Re: EnvMap + (fake) Sun Tutorial

Post by Pibuz » Thu Sep 01, 2011 7:25 pm

Let's make them 20 and you're done :lol:

pocky
Posts: 14
Joined: Wed Feb 22, 2012 12:10 am

Re: EnvMap + (fake) Sun Tutorial

Post by pocky » Wed Feb 29, 2012 4:49 am

Thanks for the tut Zom-B! All the the renders are also quite encouraging that this is a great tip. Gonna have a look into it tonight.
Pibuz wrote:I must have read something about this in Bertrand Benoit's (old and superb Indigo user) blog. He showed some workarounds to get sharper shadows working with EXR or HDR images. He stated that it is sufficient to open the file in PS and adjust the gamma slider, or something similar.

here is the link, maybe it's useful:
http://bertrand-benoit.com/blog/2010/02 ... -lighting/
Interesting. Thanks for sharing :D

User avatar
Zom-B
1st Place 100
Posts: 4700
Joined: Tue Jul 04, 2006 4:18 pm
Location: ´'`\_(ò_Ó)_/´'`
Contact:

Re: EnvMap + (fake) Sun Tutorial

Post by Zom-B » Wed Feb 29, 2012 10:43 am

Thanks pocky :)

Nowadays this workarround shouldn't be needed anymore since its possible to set a Indigo Sun + a Envmap together in Indigo.

The Question is if exporters supports that feature atm :?
polygonmanufaktur.de

User avatar
Pibuz
1st Place 100
Posts: 2646
Joined: Tue Dec 11, 2007 7:58 am
Location: Padua, Italy
3D Software: SketchUp

Re: EnvMap + (fake) Sun Tutorial

Post by Pibuz » Mon Mar 05, 2012 9:55 pm

SkIndigo does 8)

Post Reply
43 posts

Who is online

Users browsing this forum: No registered users and 5 guests