Jump to content

[SOLVED] Transparent materials loss of sky/clouds


photo

Recommended Posts

Posted

Hello,

 

My transparent materials use the blending functions to make themselves appear transparent. But I have recently noticed that you cannot see the clouds (i.e. ObjectSky) through these materials. This also extends to visualizer objects, although they are rather less important. Does anyone have a better method of transparent materials that will not hide the sky?

 

Here is an example of one of my transparent materials;

 

<material hidden="1" editable="0" name="basic_material" parent="mesh_base">
<texture name="diffuse">textures/diffuse.png</texture>
<texture name="normal">textures/normal.png</texture>
<texture name="specular">textures/specular.png</texture>
         	<parameter name="base_transform">vec4(1.000000,1.000000,0.000000,0.000000)</parameter>
         	<parameter name="specular_power">15.5</parameter>
         	<parameter name="fresnel_bias">0.25</parameter>
</material>

<material name="window" parent="basic_material">
         	<blend src="src_alpha" dest="one_minus_src_alpha"/>
         	<state name="refraction">1</state>
         	<texture name="diffuse"> objects/window/window_edit5diffuse.png</texture>
         	<parameter name="base_transform">vec4(1,1,0,0)</parameter>
         	<parameter name="refraction_scale">0</parameter>
         	<parameter name="diffuse_color">1 1 1 0.2</parameter>
</material>

 

post-386-0-14090100-1339081395_thumb.png

Posted

Fixed. I wasn't setting post scattering to these materials.

×
×
  • Create New...