is it possible to see alpha-channeled textures like png really transparant in the ogre viewer? I only see it fully opaque.
thanks in advance.
transparency in the ogre viewer
-
hacky
- Gnoblar
- Posts: 4
- Joined: Wed Mar 02, 2005 4:38 pm
- Location: The Netherlands
- Contact:
transparency in the ogre viewer
Imagine what you could do if you could do what you imagine...
- haffax
- OGRE Retired Moderator

- Posts: 4823
- Joined: Fri Jun 18, 2004 1:40 pm
- Location: Berlin, Germany
- x 8
- Contact:
-
hacky
- Gnoblar
- Posts: 4
- Joined: Wed Mar 02, 2005 4:38 pm
- Location: The Netherlands
- Contact:
here is the material file. should I add a line to tell the renderer that it is an alpha-material?
Code: Select all
material pinematerial/bark
{
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 pine1.png
}
}
}
}
material pinematerial/leafs
{
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 a_pine1.tga
}
}
}
}
Imagine what you could do if you could do what you imagine...
-
hacky
- Gnoblar
- Posts: 4
- Joined: Wed Mar 02, 2005 4:38 pm
- Location: The Netherlands
- Contact:
- sinbad
- OGRE Retired Team Member

- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 67
- Contact: