Page 1 of 1
[REQ] Environ map/Sun
Posted: Sun Jan 22, 2012 7:19 pm
by Doug Armand
Simple request - can we have the option to use both the Sun and an environment map at the same time?
I have been playing around with Sketchup/Skindigo recently purely because I found out that you can do this with that combo so we know it can be done
Would be so helpful in setting up realistic outdoor scenes.
Re: [REQ] Environ map/Sun
Posted: Sun Jan 22, 2012 8:32 pm
by ninopiamonte
yeah, me too.
I use Sketchup and i'd like also to have that combination
of Environment Map + Sun....
...................................hope they add it to next release.
Re: [REQ] Environ map/Sun
Posted: Mon Jan 23, 2012 1:40 am
by dougal2
I'm planning to overhaul the lighting options so that you can easily mix different sources, but I'm hoping Glare can fix one or two related bugs in Indigo itself first. But even if they don't, I'll be looking at this very issue this week anyway.
Re: [REQ] Environ map/Sun
Posted: Mon Jan 23, 2012 1:55 am
by Doug Armand
Thats brilliant Dougal - can't wait and thanks for the quick response
Re: [REQ] Environ map/Sun
Posted: Tue Jan 24, 2012 6:34 am
by dougal2
I've got something that pretty much works here, but still need more testing to make sure no features are lost in the reshuffle.
Re: [REQ] Environ map/Sun
Posted: Tue Jan 24, 2012 7:48 am
by Doug Armand
Looking interesting - when can we 'test' it?

Re: [REQ] Environ map/Sun
Posted: Tue Jan 24, 2012 8:55 am
by galinette
Hello,
Is the XML code for adding two environments (sun+envmap) documented somewhere?
Etienne
Re: [REQ] Environ map/Sun
Posted: Tue Jan 24, 2012 10:44 am
by dougal2
galinette wrote:Hello,
Is the XML code for adding two environments (sun+envmap) documented somewhere?
Etienne
Not very well, I had to download an older version of Indigo (1.1.18) to get the old example scene background_material_test.igs and I also found a forum thread explaining the <sum> material.
There are two issues with this in 3.2.5 currently though:
1. The new captured-simulation for sunsky isn't recognised when used as a background material (render won't start with "unknown element Model in Sunsky" error)
2. Light layer assignments don't work properly
At the risk of thinning the documentation even more, my self-made reference looks like this:
Code: Select all
<material>
<name>background_exr_A</name>
<diffuse>
<texture>
<path>E:\RenderStuff\HDR\Dosch Industrial 2\EXR-SX\INDREF-001SX.exr</path>
<exponent>1.0</exponent>
<tex_coord_generation>
<spherical>
<rotation>
<axis_rotation>
<axis>0 0 1</axis>
<angle>1.6</angle>
</axis_rotation>
</rotation>
</spherical>
</tex_coord_generation>
</texture>
<base_emission>
<constant>
<uniform><value>1.0</value></uniform>
</constant>
</base_emission>
<emission>
<texture>
<texture_index>0</texture_index>
</texture>
</emission>
<layer>0</layer>
</diffuse>
</material>
<material>
<name>SunShapeA</name>
<sunsky>
<sundir>-0.5 -0.5 0.7071067812</sundir>
<turbidity>2</turbidity>
<sun_layer>1</sun_layer>
<sky_layer>2</sky_layer>
</sunsky>
</material>
<material>
<name>BGConst</name>
<diffuse>
<albedo_spectrum>
<uniform><value>0</value></uniform>
</albedo_spectrum>
<base_emission>
<constant>
<rgb>
<rgb>0.8 0.2 0.8</rgb>
<gamma>1.0</gamma>
</rgb>
</constant>
</base_emission>
<layer>3</layer>
</diffuse>
</material>
<background_settings>
<background_material>
<material>
<name>background_material</name>
<sum>
<mat>
<mat_name>background_exr_A</mat_name>
<weight><constant>1</constant></weight>
</mat>
<mat>
<mat_name>SunShapeA</mat_name>
<weight><constant>1</constant></weight>
</mat>
<mat>
<mat_name>BGConst</mat_name>
<weight><constant>1</constant></weight>
</mat>
</sum>
</material>
</background_material>
</background_settings>
Re: [REQ] Environ map/Sun
Posted: Thu Feb 16, 2012 4:41 am
by Doug Armand
Any update on this Dougal - this would be a really useful feature for me.
Re: [REQ] Environ map/Sun
Posted: Thu Feb 16, 2012 5:46 am
by dougal2
It's already in the latest version. Just use a sun and hemi lamp at the same time.
Re: [REQ] Environ map/Sun
Posted: Thu Feb 16, 2012 6:40 pm
by Doug Armand
Wow so it is!. Took me a while to work it out but seems to be working fine - many thanks for that Dougal
