Page 1 of 1
Transparency
Posted: Thu Feb 24, 2005 2:20 pm
by Shadix
Hi, this is a render pic created with max
U see, the water surface is partly transparent. If i use that script:
material ver_eimer01_wasser
{
technique
{
pass
{
// Rendert beidseitig
cull_hardware none
cull_software none
texture_unit
{
texture ver_eimer01_wasser.png
filtering anisotropic anisotropic anisotropic
// Simple Transparenz
alpha_rejection greater 215
}
}
}
}
The water is completly transparent, it disapears.
What do i have to change in order to get the effect illustrated on the screen?
I appreciate every answer, thx

Posted: Thu Feb 24, 2005 3:02 pm
by semicolon
It seems like you missed "scene_blend alpha_blend" Put this below "cull_software none"
If it still doesn't work, you may wanna check your texture whether or not it has alpha channel.
Semicolon
Posted: Thu Feb 24, 2005 3:38 pm
by Shadix
no didn't work, but it worked with submesh and another material:
Code: Select all
material Material_#58/ver_eimer01_wasser
{
receive_shadows on
technique
{
pass
{
scene_blend alpha_blend
depth_write off
// Letzter Wert ist Alpha
ambient 0.089984 0.089984 0.089984 0.5
diffuse 0.800000 0.800000 0.800000 0.5
texture_unit
{
texture ver_eimer01_wasser.png
}
}
}
}
}
material Material_#58/ver_eimer01
{
technique
{
pass
{
ambient 0.588235 0.588235 0.588235
diffuse 0.588235 0.588235 0.588235
specular 0.9 0.9 0.9 0.0
emissive 0.0 0.0 0.0
texture_unit
{
texture ver_eimer01_wasser.png
}
}
}
}
We encountered a bug by the way.
If u export a mesh with different materials , the materials get the following
description:
"material Material #58/name"
The texture does not load !
U need to correct the description
"material Material_#58/name"
Without "_" it does not work!
Posted: Thu Feb 24, 2005 9:48 pm
by TheGilb
Shadix wrote:
We encountered a bug by the way.
If u export a mesh with different materials , the materials get the following
description:
"material Material #58/name"
The texture does not load !
U need to correct the description
"material Material_#58/name"
Without "_" it does not work!
I found this bug too, I hope someone fixes this soon!
Posted: Thu Feb 24, 2005 11:43 pm
by sphinkie
I had it too,
but now, I give names in 3ds to all my materials, and multi-materials.
It is better (I mean "cleaner") and I don't have this problem anymore.