Page 1 of 1

help with world color and shadow only

Posted: Wed Mar 12, 2008 8:52 am
by CloudedVision
Well, this is my first post. *wipes sweat off brow*

I've been dabbling in modeling with Blender for a while, and I just downloaded Indigo and Blendigo last night. Some of the material properties I want Blendigo won't export to the indigo file, so I need some help editing the material XML of material file.

First, I want to set the background color (this is the world color in Blender, not sure if its the same in Indigo)

Secondly, I want a material that is completely transparent except for shadows.

How would I do these two things?

Thanks for your help

Posted: Wed Mar 12, 2008 9:10 am
by alex22
For the background you can take this:
<background>
<spectrum>
<rgb>
<rgb>1 1 1</rgb>
<gamma>2.2</gamma>
</rgb>
</spectrum>
</background>

put it under <scene> (doesn't matter if before or after <renderer_settings> or <tonemapping> blocks)

For the shadows:
I believe shadows aren't explicitly programmed in Indigo, so you can't do that. Indigo is based on real world light transfer, and in real world no material can transfer light and at the same time can not (and do shadows that way).

Posted: Wed Mar 12, 2008 9:13 am
by BbB
Yes, CloudedVision. It's important you shouldn't come to Indigo with the wrong expectations. It's not the renderer for stylised or fantasy images. Think of it as a highly advanced SLR camera. It achieves incredibly realistic images, but it's not very good at creating effects that don't exist in real life.

Posted: Wed Mar 12, 2008 9:34 am
by CloudedVision
What I'm aiming for is a background thats perfectly white, but objects cast a shadow onto it. There must be a way to do that. If I just do a plane thats white, it gets the shadow, but its not perfectly white.

Any help?

Posted: Wed Mar 12, 2008 9:39 am
by Zom-B
CloudedVision wrote:What I'm aiming for is a background thats perfectly white, but objects cast a shadow onto it. There must be a way to do that. If I just do a plane thats white, it gets the shadow, but its not perfectly white.

Any help?
Maybe you could get the result you aim for by playing with tonemapping!
Try using Violet for this...

Posted: Wed Mar 12, 2008 11:35 am
by CloudedVision
I just went without the shadow, and set the background color to white, like in alex22 post. I put it in the material XML file, but when i do and start the render Indigo gets a runtime error. Any reason why?

here's my XML:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>

<scenedata>
	<material>
		<name>Default</name>
		<diffuse>
			<albedo_spectrum><rgb><rgb>1 1 1</rgb><gamma>2.2</gamma></rgb></albedo_spectrum>
		</diffuse>
	</material>

	<material>
		<name>null</name>
		<null_material/>
	</material>

	<material>
		<name>Material.001</name>
		<phong>
			<exponent>500</exponent>
			<diffuse_albedo_spectrum>
				<rgb>
					<rgb>0.87 0.87 0.87</rgb>
					<gamma>2.2</gamma>
				</rgb>
			</diffuse_albedo_spectrum>
			<ior>1.60838</ior>
		</phong>
	</material>

	<material>
		<name>Material.003</name>
		<phong>
			<exponent>500</exponent>
			<diffuse_albedo_spectrum>
				<rgb>
					<rgb>0 0.371 0.562</rgb>
					<gamma>2.2</gamma>
				</rgb>
			</diffuse_albedo_spectrum>
			<ior>1.60838</ior>
		</phong>
	</material>
	
	<background>
		<spectrum>
			<rgb>
				<rgb>1 1 1</rgb>
				<gamma>2.2</gamma>
			</rgb>
		</spectrum>
	</background> 

</scenedata>

Posted: Thu Mar 13, 2008 12:41 am
by Vanessa07
Runtime is generaly a memory error, not enough ram. Maybe try using 64 bits version which can render bigger scene. what is your poly count?

Posted: Thu Mar 13, 2008 8:56 am
by CloudedVision
35,000 faces, my computer should be able to handle it. Actually I was rendering 2 of the model at the same time and my computer handle it.

plus it works without the background XML tag, don't see how using a background will increase memory usage.

Posted: Fri Mar 14, 2008 5:06 am
by kwez
please post the error message...
maybe someone will be able to help w. more info on the prob

Posted: Mon Mar 17, 2008 3:44 am
by animelix
i think you should set the background settings in the igs-file, not in the mats-xml