找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1924|回复: 4

【中级教程】如何做透明纹理

[复制链接]

该用户从未签到

发表于 2007-11-11 12:56:33 | 显示全部楼层 |阅读模式
How to Make Transparent Textures with Wallyby www.egir.dk
By Robert Olesen (Egir) - october 4, 2007Transparent textures in Half-Life are named something like{<NAME>, where <NAME> is a valid texture name. An exampleis {BLUE.
Usually one uses the blue colour 0 0 255 in RGB to mark the area thatshould be transparent, but this is only a convention andnot strictly necessary for the texture to be transparent. Since it isnot necessary for the transparent part to be blue, blue wont simply betransparent just because you prefix your texture with a {, userender-mode solid, and FX-amount 255 in entity properties. This shorttutorial will explain how to work around this technicality.
I assume that you have already made a texture in wally and colouredthe part that should be transparent blue (0 0 255), like in thefollowing picture.

Use the "Eye Dropper"-tool to select the transparent colour as yourprimary colour. Once your primary colour is the one you want to betransparent we should translate its index to 255; to do this gotoColors -> Translate Colors. You will now get the following dialog:

1 is the index of the colour you have selected, and want to turntransparent. 2 should always be 255, because this is the index of thecolour that will be transparent (when the texture is prefixed with {,rendered as render-mode solid and fx-amount 255). Remember to tag SwapIndexes (3) before clicking OK. This will make sure that blue willremain blue, but become transparent colour.
You have now successfully reindex the colour you want to betransparent to index 255 as shown in the screen shot below.

The transparency of your texture should now be working

[ 本帖最后由 Simen.sllove 于 2007-11-20 09:33 编辑 ]

该用户从未签到

发表于 2007-11-11 14:05:00 | 显示全部楼层
请写中文

该用户从未签到

 楼主| 发表于 2007-11-11 17:57:25 | 显示全部楼层
我就简单的说一说吧~~

在做透明纹理是

需要用到百分之百的蓝色

RGB为
0 0 255
有时载入图像后,颜色会有所丢失!
这时需要用颜色转换工具

1.用吸管吸取要转换的颜色
2.点击颜色菜单根据上图所示打钩,输入数值
3.按确定后搞定~

该用户从未签到

发表于 2007-11-12 09:42:21 | 显示全部楼层
我不说话  我看看就好  ```

该用户从未签到

发表于 2007-11-30 11:46:39 | 显示全部楼层
一直在找这个 昨天做透明纹理把我郁闷了
现在照这个方法试试
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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