Milk (regular) optimized

General discussion about Indigo Materials - material requests, material developement, feedback, etc..
User avatar
dag
Posts: 189
Joined: Tue Feb 02, 2010 2:28 am

Re: Milk (regular) optimized

Post by dag » Wed Apr 20, 2011 8:04 pm

Bidir works alright if you also have high absorption.

These are based on http://graphics.ucsd.edu/~henrik/papers ... roperties/
Phase function was kept under 0.8 as the material gets substantially darker above that. I don't know if this is a bug or...?

"The upload was rejected because the uploaded file was identified as a possible attack vector."

I can upload it to the mat db once these guys figure out if they want an updated preview scene...

User avatar
Meelis
Posts: 383
Joined: Sat Mar 14, 2009 11:29 pm
Location: Estonia

Re: Milk (regular) optimized

Post by Meelis » Fri Apr 22, 2011 2:06 am

Wow very very nice :shock:

Need to get that choco milk from shop, hmm soo tasty :)

User avatar
Whaat
Developer
Posts: 1827
Joined: Fri Dec 22, 2006 6:15 am
Location: Canada
Contact:

Re: Milk (regular) optimized

Post by Whaat » Sat Apr 30, 2011 6:59 am

Awesome milk! Please share. If you are having trouble with the MDB, could you post the text from the IGM file?

User avatar
dag
Posts: 189
Joined: Tue Feb 02, 2010 2:28 am

Re: Milk (regular) optimized

Post by dag » Wed May 04, 2011 2:47 am

The attack vector stuff was for forum attachments.

After rendering for a while in the preview scene it explodes into some colored noise light party.

chocolate_milk.igm

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<scenedata>
	<medium>
		<name>chocolate_milk_medium</name>
		<precedence>2</precedence>
		<basic>
			<ior>1.35</ior>
			<cauchy_b_coeff>0</cauchy_b_coeff>
			<absorption_coefficient_spectrum>
				<rgb>
					<rgb>
						30 75 145
					</rgb>
					<gamma>1</gamma>
				</rgb>
			</absorption_coefficient_spectrum>
			<subsurface_scattering>
					<scattering_coefficient_spectrum>
						<rgb>
							<rgb>
								2500 3000 3500
							</rgb>
							<gamma>1</gamma>
						</rgb>
					</scattering_coefficient_spectrum>
					<phase_function>
						<henyey_greenstein>
							<g_spectrum>
								<rgb>
									<rgb>
										0.80 0.79 0.76
									</rgb>
									<gamma>1</gamma>
								</rgb>
							</g_spectrum>
						</henyey_greenstein>
					</phase_function>
			</subsurface_scattering>
		</basic>
	</medium>
	<material>
		<name>chocolate_milk</name>
		<specular>
			<internal_medium_name>chocolate_milk_medium</internal_medium_name>
			<transparent>true</transparent>
			<layer>0</layer>
		</specular>
	</material>

</scenedata>
milk.igm

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<scenedata>
	<medium>
		<name>milk_medium</name>
		<precedence>2</precedence>
		<basic>
			<ior>1.35</ior>
			<cauchy_b_coeff>0</cauchy_b_coeff>
			<absorption_coefficient_spectrum>
				<rgb>
					<rgb>
						3 6 9
					</rgb>
					<gamma>1</gamma>
				</rgb>
			</absorption_coefficient_spectrum>
			<subsurface_scattering>
					<scattering_coefficient_spectrum>
						<rgb>
							<rgb>
								2500 3000 3500
							</rgb>
							<gamma>1</gamma>
						</rgb>
					</scattering_coefficient_spectrum>
					<phase_function>
						<henyey_greenstein>
							<g_spectrum>
								<rgb>
									<rgb>
										0.80 0.75 0.70
									</rgb>
									<gamma>1</gamma>
								</rgb>
							</g_spectrum>
						</henyey_greenstein>
					</phase_function>
			</subsurface_scattering>
		</basic>
	</medium>
	<material>
		<name>milk</name>
		<specular>
			<internal_medium_name>milk_medium</internal_medium_name>
			<transparent>true</transparent>
			<layer>0</layer>
		</specular>
	</material>

</scenedata>
Attachments
2.jpg
...1 hour later
1.jpg
ok...

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Re: Milk (regular) optimized

Post by CTZn » Wed May 04, 2011 6:23 am

Is it right to use a gamma of 1 for all those parameters ? TBH I can't answer that one.
obsolete asset

User avatar
dag
Posts: 189
Joined: Tue Feb 02, 2010 2:28 am

Re: Milk (regular) optimized

Post by dag » Thu May 05, 2011 4:33 am

That's what looks best, and Ono said somewhere that you should use 1 when using measured data which this was based on.
Also some posts about it at http://www.indigorenderer.com/forum/vie ... 3&start=60

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Re: Milk (regular) optimized

Post by CTZn » Thu May 05, 2011 1:45 pm

So be it, thank you for the reminder, dag !

Now that's funny, if one reads the post preceding the one you linked to...
obsolete asset

Post Reply
67 posts

Who is online

Users browsing this forum: No registered users and 17 guests