Page 1 of 1

Problem: Blended material to null

Posted: Mon Nov 19, 2007 3:35 am
by Conz
Hi,

I'm testing the way to use "alpha maps".
I have blended a white diffuse material with a null material.
The shadow looks good, but the null material is rendered as a gray material.

the code:

Code: Select all

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

	<material>
		<name>Material.001</name>
		<diffuse>
			<albedo_spectrum>
				<rgb>
					<rgb>0.8 0.8 0.8</rgb>
					<gamma>2.2</gamma>
				</rgb></albedo_spectrum>
		</diffuse>
	</material>


	<material>
		<name>Material</name>
		<blend>
			<a_name>Material.001</a_name>
			<b_name>null</b_name>
			<blend_factor>1</blend_factor>
			<blend_map>
				<path>masktest01.png</path>
				<uv_set>uv</uv_set>
				<exponent>1.000000</exponent>
				<a>0</a>
				<b>1</b>
				<c>0</c>
			</blend_map>
		</blend>
	</material>
tested it with following code, too:

Code: Select all

....
	<material>
		<name>Material</name>
		<blend>
			<a_name>Material.001</a_name>
			<b_name>null</b_name>
			<blend_factor>uv</blend_factor>
			<blend_map>
				<path>masktest01.png</path>
				<uv_set>uv</uv_set>
				<exponent>1.000000</exponent>
				<a>0</a>
				<b>1</b>
				<c>0</c>
			</blend_map>
		</blend>
	</material>
(with "<blend_factor>uv</blend_factor>")

(indigo 1.0.3)

Posted: Mon Nov 19, 2007 3:39 am
by CTZn
That may be because bidir is on, AFAIK null material doesn't like that.

Posted: Mon Nov 19, 2007 3:43 am
by OnoSendai
Looks alright to me, where's the problem?

Posted: Mon Nov 19, 2007 3:49 am
by Conz
OnoSendai wrote:Looks alright to me, where's the problem?
EDIT: Null material is not transparent with bidir on. Try your grass tutorial with bidir on.

CTZn was right. The problem was the bidir. (Thanks for your help)
I have rendered it now with Metropolis only and it's looks ok.

Here's the Metropolis render:

Posted: Mon Nov 19, 2007 4:36 am
by Conz
Some clear rendering. The diffuse material is now red.

Posted: Mon Nov 19, 2007 6:26 am
by CTZn
I spent some time myself checking the image b4 posting, but I did when I identified that the gray region on plane could not be a shadow projection.

That's a known issue Conz,

cheers !

Posted: Mon Nov 19, 2007 6:33 am
by Conz
CTZn wrote:...
That's a known issue Conz,
ok, thank you.

Yes I agree, the first sample picture was not clear enought.

Posted: Mon Nov 19, 2007 6:35 am
by OnoSendai
Actually i didn't know about this. So thanks Conz!

Posted: Mon Nov 19, 2007 8:17 am
by Kram1032
lol
the bug was known (and fixed) in a different way:
shadows rendered as if there was no alpha, with BiDir.
But yet, the material itself rendered correct (I think)
Now, Ono made the shadows faster (I don't know any more, which release, though... I think, it was one in the 0.9 series)