How do I set an Environment Map in Blendigo 4.3.0

Announcements, requests and support regarding the Blender Indigo export script
Post Reply
7 posts • Page 1 of 1
TELunus
Posts: 1
Joined: Thu Feb 14, 2019 11:18 am

How do I set an Environment Map in Blendigo 4.3.0

Post by TELunus » Tue Jul 07, 2020 3:45 am

I've got a scene in Blender (version 2.83 with Blendigo 4.3.0) that I'm going to want to start a bunch of renders from, and I want them all to use an HDR exr image as an environment map for the lighting. I've managed to add the image as an environment map in the Indigo UI itself, but of course that doesn't persist when I stop the render and start a different render from the same Blender scene. Unfortunately I can't seem to find an option to set that anywhere. Does anyone know how (or even whether) I can set this up? Or, better yet, is there documentation on where I can set it? The best I've found is an old blendigo manual that shows how to do it for a version of Blendigo for Blender 2.49 (which alas doesn't work in Blendigo 4.3.0 in Blender 2.83): https://www.indigorenderer.com/sites/de ... manual.pdf

burnin
Posts: 150
Joined: Tue May 04, 2010 2:53 pm

Re: How do I set an Environment Map in Blendigo 4.3.0

Post by burnin » Tue Jul 07, 2020 8:57 pm

I don't know if this is the correct way to do it, but it gets the job done... :?

1. Add a Light > Sun

2. set Properties:

> Indigo Hemi Lamp
- Lamp Type: Bacground Color/HDRI environment map
- Env Map: //pathto...
- Env map type: Spherical/Spherical Environment
- Gain
- Light layer

> Indigo Sun/Hemi (select Hemi)

EnvMap set Blendigo.jpg

3. Render (f12)

Now, the thing is that every time Indigo Render starts, it shows pitch black. I think that's just because Emission Scale is missing in Blender and gets exported as None. So to get light emitting from the HDRI all you need to do is to set that under Background Settings > Environment > Emission Scale and for Measure choose anything but None.

IndigoEmissionScaleMeasure.jpg
And that should do it.

User avatar
Zalevskiy
Posts: 250
Joined: Thu Jul 16, 2015 12:36 am
Location: Mars
3D Software: Blender

Re: How do I set an Environment Map in Blendigo 4.3.0

Post by Zalevskiy » Sat Nov 26, 2022 8:03 pm

Hi all

Blendigo 4.3.4 [ add Sun > Hemi > HDRI ] + [ add Sun > Sun ] (HDRI+Sun) after exporting scene to Indigo ...

indigo:
Background Settings > Environment > Base Emission > Tabulated


need to make indigo default: (for animation)
Background Settings > Environment > Base Emission > Uniform


trying to write code to file [ C:\Program Files\Indigo Renderer\inifile.xml ] ... didn't help

Code: Select all

	<background_settings>
		<uid>4</uid>
		<name>Background Settings</name>
		<background_material>
			<material>
				<name>background_material</name>
				<diffuse>
					<base_emission>
						<constant>
							<uniform>
								<value>700000</value>
							</uniform>
						</constant>
					</base_emission>
					<emission>
						<texture>
							<path>F:\Indigo\preview_env_map.exr</path>
							<tex_coord_generation>
								<spherical>
									<rotation>
											<matrix>
												1 0 0 0 1 0 0 0 1 
											</matrix>
									</rotation>
								</spherical>
							</tex_coord_generation>
						</texture>
					</emission>
				</diffuse>
			</material>
		</background_material>
	</background_settings>

Base Emission > Tabulated in most HDRIs distorts the color into greenish tints, with the exception of rare HDRIs in which you need to set the white point

x 0,321341
y 0,331065

but most HDRIs render color correctly with Uniform mode and white point E


is it possible somehow to bypass manual editing of indigo over 300 scene frames? :|


I noticed that if in Blendigo 4.3.4... add Sun > Hemi > Background Color > Uniform after export it works, and for some unknown reason it needs to be replaced in the table after selecting HDRI+Sun combination

User avatar
Headroom
Indigo 100
Posts: 1058
Joined: Wed Aug 08, 2007 1:07 pm
Location: Spartanburg, SC, USA
Contact:

Re: How do I set an Environment Map in Blendigo 4.3.0

Post by Headroom » Tue Dec 13, 2022 3:56 am

@Zalevskiy how do you do this in Indigo? When I export a scene with an HDRI environment to Indigo 4.6.0 and then pause the render and change the base emission to Tabulated, Indigo crashes immediately!

Could you create a screen recording of the process?

I am looking to see if this can be changed in the exporter code, but cannot make promises. At the moment I cannot get past Indigo crashing ;-)

User avatar
Zalevskiy
Posts: 250
Joined: Thu Jul 16, 2015 12:36 am
Location: Mars
3D Software: Blender

Re: How do I set an Environment Map in Blendigo 4.3.0

Post by Zalevskiy » Tue Dec 13, 2022 10:35 pm

Interestingly, I was now trying to reproduce the greenishness of HDRI Tabulated, and as it turned out, this bug only appears in the standard material scene. After I recorded a video of the Blendigo export process, there is no greenishness. :?

It probably has to do with the scale of the scene. I accidentally noticed a lot of errors in version 4.6.4 due to two standard Plane light sources. If you turn them off and remove the lux values ​​= everything works relatively 'stable'.
Attachments
blendigo-tabulated-2022-12-13.zip
tabulated after export
(16.03 MiB) Downloaded 158 times
uniform_normal.jpg
uniform_normal.jpg
tabulated_green.jpg
tabulated_green.jpg

User avatar
Headroom
Indigo 100
Posts: 1058
Joined: Wed Aug 08, 2007 1:07 pm
Location: Spartanburg, SC, USA
Contact:

Re: How do I set an Environment Map in Blendigo 4.3.0

Post by Headroom » Wed Dec 14, 2022 2:02 am

Ok.
I am not sure you've seen it, or if it matters to your workflow, but the exporter (Blendigo) has been slightly updated.
I added some of the more recent GPU related settings and the changes have been merged into the master.
It might be worth checking https://github.com/glaretechnologies/blendigoout.

User avatar
Zalevskiy
Posts: 250
Joined: Thu Jul 16, 2015 12:36 am
Location: Mars
3D Software: Blender

Re: How do I set an Environment Map in Blendigo 4.3.0

Post by Zalevskiy » Wed Dec 14, 2022 2:49 am

Thanks for the code additions! Yes, the first thing I did was download the latest version of the blendigo plugin from the repository. The noise reduction buttons are very useful when exporting animations. Previously, you had to use 'crutches' through manual editing of the inifile.xml file; Now blendigo has become much more convenient. 8)

Post Reply
7 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 26 guests