How can I make an transparent object?
Posted: Thu Sep 15, 2005 12:02 pm
I have an object such as jelly but inside it has an object floated in there
and 2 object is a same mesh
I try to use scene blend modulate script It works for outer skin (jelly) but I can't see an floated object.
I used multi sub matterial which has 2 ID
ID 1 for jelly skin
ID 2 for floated object
and 2 ID is the same texture
This is a matterial script
material M_Sp002/M_Sp002_ID1(for jelly skin)
{
technique
{
pass
{
ambient 0.34902 0.101961 0.305882 1
diffuse 0.768628 0.435294 0.615686 1
specular 0.811765 0.635294 0.768628 1 7000
emissive 0.34902 0.101961 0.305882 1
scene_blend modulate
texture_unit
{
texture M_Sp002_ID1.tga
filtering anisotropic anisotropic anisotropic
}
}
}
}
material M_Sp002/M_Sp002_ID2 (for floated object)
{
technique
{
pass
{
ambient 0.34902 0.101961 0.305882 1
diffuse 0.768628 0.435294 0.615686 1
specular 0.811765 0.635294 0.768628 1 7000
emissive 0.34902 0.101961 0.305882 1
texture_unit
{
texture M_Sp002_ID1.tga
filtering anisotropic anisotropic anisotropic
}
}
}
}
Could anyone help me please?
and thanks a lot for replying
and 2 object is a same mesh
I try to use scene blend modulate script It works for outer skin (jelly) but I can't see an floated object.
ID 1 for jelly skin
ID 2 for floated object
and 2 ID is the same texture
This is a matterial script
material M_Sp002/M_Sp002_ID1(for jelly skin)
{
technique
{
pass
{
ambient 0.34902 0.101961 0.305882 1
diffuse 0.768628 0.435294 0.615686 1
specular 0.811765 0.635294 0.768628 1 7000
emissive 0.34902 0.101961 0.305882 1
scene_blend modulate
texture_unit
{
texture M_Sp002_ID1.tga
filtering anisotropic anisotropic anisotropic
}
}
}
}
material M_Sp002/M_Sp002_ID2 (for floated object)
{
technique
{
pass
{
ambient 0.34902 0.101961 0.305882 1
diffuse 0.768628 0.435294 0.615686 1
specular 0.811765 0.635294 0.768628 1 7000
emissive 0.34902 0.101961 0.305882 1
texture_unit
{
texture M_Sp002_ID1.tga
filtering anisotropic anisotropic anisotropic
}
}
}
}
Could anyone help me please?