游戏开发论坛

 找回密码
 立即注册
搜索
查看: 3741|回复: 0

Ogre模型显示透明贴图问题

[复制链接]

1

主题

1

帖子

5

积分

新手上路

Rank: 1

积分
5
发表于 2009-2-19 00:52:00 | 显示全部楼层 |阅读模式
大家好,我现在在用ogre开发一个游戏,任务是从maya 8.5中制作并且导出的(带骨骼动画),其中模型的贴图用到了透明贴图。

但是导入到程序中后,确不能正确显示贴图的透明度,效果就像在maya中不选择Shading-&gtolygon Transparency Sorting 一样啊。。。

附加中是现在的效果图,从胳膊,手臂,腿这些地方指出了问题的所在。。
这是Maya Ogre Exporter导出的material文件:
material lambert7
{
        technique
        {
                pass
                {
                        lighting off

                        ambient 0 0 0 1
                        diffuse 1 1 1 1
                        specular 0.2 0.2 0.2 6.4
                        emissive 0 0 0

                        scene_blend alpha_blend
                        depth_check on
                        depth_write off

                        texture_unit
                        {
                                texture leg.tif
                                tex_coord_set 0
                                colour_op modulate
                                scale 1 1
                                scroll 0 0
                                rotate 0
                        }
                }
        }
}
material lambert4
{
        technique
        {
                pass
                {
                        lighting off

                        ambient 0 0 0 1
                        diffuse 1 1 1 1
                        specular 0.2 0.2 0.2 6.4
                        emissive 0 0 0
                       
                        scene_blend alpha_blend
                        depth_check on
                        depth_write off

                        texture_unit
                        {
                                texture face.tif
                                tex_coord_set 0
                                colour_op modulate
                                scale 1 1
                                scroll 0 0
                                rotate 0
                        }
                }
        }
}
material lambert6
{
        technique
        {
                pass
                {
                        lighting off

                        ambient 0 0 0 1
                        diffuse 1 1 1 1
                        specular 0.2 0.2 0.2 6.4
                        emissive 0 0 0

                        scene_blend alpha_blend
                        depth_check on
                        depth_write off

                        texture_unit
                        {
                                texture body.tif
                                tex_coord_set 0
                                colour_op modulate
                                scale 1 1
                                scroll 0 0
                                rotate 0
                        }
                }
        }
}
material lambert8
{
        technique
        {
                pass
                {
                        lighting off

                        ambient 0 0 0 1
                        diffuse 1 1 1 1
                        specular 0.2 0.2 0.2 6.4
                        emissive 0 0 0
                       
                        scene_blend alpha_blend
                        depth_check on
                        depth_write off

                        texture_unit
                        {
                                texture hand.tif
                                tex_coord_set 0
                                colour_op modulate
                                scale 1 1
                                scroll 0 0
                                rotate 0
                        }
                }
        }
}
material lambert5
{
        technique
        {
                pass
                {
                        lighting off

                        ambient 0 0 0 1
                        diffuse 1 1 1 1
                        specular 0.2 0.2 0.2 6.4
                        emissive 0 0 0

                        scene_blend alpha_blend
                        depth_check on
                        depth_write off

                        texture_unit
                        {
                                texture hair.tif
                                tex_coord_set 0
                                colour_op modulate
                                scale 1 1
                                scroll 0 0
                                rotate 0
                        }
                }
        }
}

看了很多文档,在网上也找了很久,真不知道这个问题该怎么解决。。。我绝望了。。。

谢谢大家帮帮忙啊!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-20 07:42

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表