help with world color and shadow only

General questions about Indigo, the scene format, rendering etc...
Post Reply
10 posts • Page 1 of 1
CloudedVision
Posts: 4
Joined: Wed Mar 12, 2008 8:47 am

help with world color and shadow only

Post by CloudedVision » Wed Mar 12, 2008 8:52 am

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

alex22
Posts: 171
Joined: Thu Apr 12, 2007 12:07 pm
Location: Germany

Post by alex22 » Wed Mar 12, 2008 9:10 am

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).

BbB
Posts: 1996
Joined: Fri Feb 09, 2007 8:28 am
Location: Berlin
Contact:

Post by BbB » Wed Mar 12, 2008 9:13 am

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.

CloudedVision
Posts: 4
Joined: Wed Mar 12, 2008 8:47 am

Post by CloudedVision » Wed Mar 12, 2008 9:34 am

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?

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

Post by Zom-B » Wed Mar 12, 2008 9:39 am

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...
polygonmanufaktur.de

CloudedVision
Posts: 4
Joined: Wed Mar 12, 2008 8:47 am

Post by CloudedVision » Wed Mar 12, 2008 11:35 am

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>

Vanessa07
Posts: 312
Joined: Mon Sep 24, 2007 11:17 pm
Location: Suisse

Post by Vanessa07 » Thu Mar 13, 2008 12:41 am

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?

CloudedVision
Posts: 4
Joined: Wed Mar 12, 2008 8:47 am

Post by CloudedVision » Thu Mar 13, 2008 8:56 am

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.

kwez
Posts: 49
Joined: Sun Jan 20, 2008 6:32 pm

Post by kwez » Fri Mar 14, 2008 5:06 am

please post the error message...
maybe someone will be able to help w. more info on the prob

animelix
Posts: 16
Joined: Thu Sep 14, 2006 10:18 pm
Location: Germany,Berlin

Post by animelix » Mon Mar 17, 2008 3:44 am

i think you should set the background settings in the igs-file, not in the mats-xml

Post Reply
10 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 27 guests