Page 1 of 1

Newbie question about trasparency

Posted: Wed Jan 31, 2007 1:11 am
by kepler
Hello, I can't figure out how can I render a semi-transparent material such as that of a lamp. See the image above:


Image


It's a matter of IOR? :?
Sorry for the dumb question but I'm a very new user of Indigo (I'm using 0.6 version and Blender).

Posted: Wed Jan 31, 2007 1:38 am
by Kosmokrator
sorry my friend but with indigo 0.6 you cant simulate semi transparent materials or SSS like effects...try with 0.7 test 3.... :wink:

Posted: Wed Jan 31, 2007 3:57 am
by kepler
Kosmokrator wrote:sorry my friend but with indigo 0.6 you cant simulate semi transparent materials or SSS like effects...try with 0.7 test 3.... :wink:
Thank you... And sorry for the stupid question! :D

Posted: Wed Jan 31, 2007 4:24 am
by Kosmokrator
:wink: come on u are wellcome!!!That is the purpos of indigo comunity...helping each other! bye

Posted: Wed Jan 31, 2007 5:10 am
by drBouvierLeduc
Maybe you can try that :

Use a standard glass material like this (sorry poor quality) :
Image

Then put this texture on it, as a bump map. :
Image


And you get something like this :
Image

If you tweak the settings a little (specularity must be 0), I'm sure you can have a material close to the picture you posted.

(another example)
Image

Posted: Fri Feb 02, 2007 10:38 am
by neepneep
Why can't I apply bump maps to glass???

For example:

Code: Select all

<medium>
		<name>Material.scatter</name>

		<ior>1.350</ior>
		<cauchy_b_coeff>0.000</cauchy_b_coeff>
		<precedence>10</precedence>

		<absorption_coefficient_spectrum>
				<uniform>
					<value>0.5</value>
				</uniform>
		</absorption_coefficient_spectrum>

	</medium>

	<material>
		<name>Material</name>

		<glossy_transparent>
			<exponent>500.000</exponent>
			<internal_medium_name>Material.scatter</internal_medium_name>
		</glossy_transparent>
		
		<bump_map>
			<uv_set>uv</uv_set>
			<path>Glassbump.jpg</path>
			<b>0.1</b>
			<exponent>1.000000</exponent>
		</bump_map>
	</material>
I get the message:
SceneLoaderExcep: Found unexpected element 'bump_map' in element 'material'.
I tried making it a transparent specular material as well and same prob....

What in the name of f'ing Krishna am I doing wrong ???

Posted: Fri Feb 02, 2007 9:02 pm
by kepler
Thank you, drBouvierLeduc! I will try that as soon as I can! :D

Posted: Fri Feb 02, 2007 9:52 pm
by CTZn
neepneep, the <bump_map> tag has to be a child the material type definition, not of the tag <material> itself. If you refer to the doc, it is the child of the <diffuse> tag:

Code: Select all

<material>

	<diffuse>

			<colour>0.8 0.8 0.8</colour>
		
			<albedo_texture>
					<uv_set>albedo</uv_set>
					<path>checker.jpg</path>
					<exponent>2.2</exponent>
			</albedo_texture>
		
			<bump_map>
					<uv_set>bump</uv_set>
					<path>bump_map.jpg</path>
					<b>0.0001</b>
					<exponent>1.0</exponent>
			</bump_map>
		
   </diffuse>

<material>
The fact is that I don't know if <glossy_transparent> supports bump mapping yet, but you may discover that quickly my friend ;)

A rule of thumb is to remove what's unexpected and add what's expected by Indigo, as I said somewhere else you can trust it :)