[REQ] Environ map/Sun

Announcements, requests and support regarding the Blender Indigo export script
Post Reply
11 posts • Page 1 of 1
User avatar
Doug Armand
Indigo 100
Posts: 1038
Joined: Fri May 16, 2008 5:49 pm
Location: London UK

[REQ] Environ map/Sun

Post by Doug Armand » Sun Jan 22, 2012 7:19 pm

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 :wink:

Would be so helpful in setting up realistic outdoor scenes.
Doug

Doug Armand

User avatar
ninopiamonte
Posts: 109
Joined: Thu Dec 01, 2011 10:12 pm

Re: [REQ] Environ map/Sun

Post by ninopiamonte » Sun Jan 22, 2012 8:32 pm

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.

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Re: [REQ] Environ map/Sun

Post by dougal2 » Mon Jan 23, 2012 1:40 am

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.

User avatar
Doug Armand
Indigo 100
Posts: 1038
Joined: Fri May 16, 2008 5:49 pm
Location: London UK

Re: [REQ] Environ map/Sun

Post by Doug Armand » Mon Jan 23, 2012 1:55 am

Thats brilliant Dougal - can't wait and thanks for the quick response
Doug

Doug Armand

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Re: [REQ] Environ map/Sun

Post by dougal2 » Tue Jan 24, 2012 6:34 am

I've got something that pretty much works here, but still need more testing to make sure no features are lost in the reshuffle.
Attachments
blendigo_new_lamps.jpg

User avatar
Doug Armand
Indigo 100
Posts: 1038
Joined: Fri May 16, 2008 5:49 pm
Location: London UK

Re: [REQ] Environ map/Sun

Post by Doug Armand » Tue Jan 24, 2012 7:48 am

Looking interesting - when can we 'test' it? :wink:
Doug

Doug Armand

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

Re: [REQ] Environ map/Sun

Post by galinette » Tue Jan 24, 2012 8:55 am

Hello,

Is the XML code for adding two environments (sun+envmap) documented somewhere?

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

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Re: [REQ] Environ map/Sun

Post by dougal2 » Tue Jan 24, 2012 10:44 am

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>

User avatar
Doug Armand
Indigo 100
Posts: 1038
Joined: Fri May 16, 2008 5:49 pm
Location: London UK

Re: [REQ] Environ map/Sun

Post by Doug Armand » Thu Feb 16, 2012 4:41 am

Any update on this Dougal - this would be a really useful feature for me.
Doug

Doug Armand

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Re: [REQ] Environ map/Sun

Post by dougal2 » Thu Feb 16, 2012 5:46 am

It's already in the latest version. Just use a sun and hemi lamp at the same time.

User avatar
Doug Armand
Indigo 100
Posts: 1038
Joined: Fri May 16, 2008 5:49 pm
Location: London UK

Re: [REQ] Environ map/Sun

Post by Doug Armand » Thu Feb 16, 2012 6:40 pm

Wow so it is!. Took me a while to work it out but seems to be working fine - many thanks for that Dougal :D
Doug

Doug Armand

Post Reply
11 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests