How can I make an transparent object?

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
Post Reply
kidnaplism
Gnoblar
Posts: 4
Joined: Mon Jul 11, 2005 7:24 am

How can I make an transparent object?

Post by kidnaplism »

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.:shock: 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
User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 2
Contact:

Post by Kencho »

Transparent materials should have depth_write off ;)
Image
Post Reply