状态特效入门

这篇文章翻译自ModDota论坛,源地址

这篇教程将会说救命如何创建及修改状态特效,状态特效的效果如下。

Paste_Image.png
Paste_Image.png
Paste_Image.png
Paste_Image.png
Paste_Image.png

一、基础

在粒子特效编辑器里面创建一个粒子特效并保存,你需要确认你在View标签里面打开了"View as DOTA Status Effect",这样你才能明白下面这些function是什么意思。
我们需要使用以下这些操作函数来生成一个状态特效。

Renderers:

  • Render status effect
    Operators:
  • Lifespan endcap timed decay
    Initializers:
  • 9x Scalar random
  • 8x Vector component random
  • 2x Color random

二、操作步骤

首先一定要明白一点,你的特效不会在粒子特效编辑器中显示出来,你需要进游戏去查看。

1. 基础属性

Base Orioertues设置基础的粒子特效,将最大粒子数量max particles设置为1,其他的保持默认。

2. 渲染状态特效

Render status effect这个函数对于渲染一个状态特效是最重要的,他需要选择一个材质vtex, vmat,在V社的状态特效中,这些材质是通过多个Vector component random来定义的,这个就会比较复杂了,如果我们自己使用,那么就使用Render Status Effect最好了,这样会比较容易处理及理解。

Paste_Image.png

这里面最重要的是 Color warp材质和detail 2 材质。

Color Warp材质

A 3D texture that applies a color transformation like hue shift or contrast adjusments to the original colors. Click on the magnifying glass and type colowarp in the searchbar to see all the color warp textures.Note: Only colowarp textures will work for this.
Detail 2 texture
Overrides the detail map. You can basically use any texture for this. Make sure you select an appropriate blend mode for your texture withD_DETAIL_2 (will be covered later on).
Diffuse warp texture
Determines where diffuse reflections occur.
Fresnel color warp texture
Applies a colortransfromation around the edges of the model. Use color warp textures for this.
Fresnel warp texture
Determines where the fresnel color warp is apllied.
Specular warp texture
Determines where the specular reflection occurs.
Environment map texture
I’m not sure what this does. It doesn’t seem to have much impact.
Scalar random
In the properties window you can set what the scalar random function should do. The output field defines what parameter should be changed and the min and max values(which should be most of the time equal) set how much it is changed.

For our 9 Scalar random we need:
Note: In this guide min and max will always be equal. If you don’t know what does what just play around with the values and observe the changes ingame.
ColorWarpBlendFactorDefines how much the Color Warp Texture is blended in.
Values: 1 = Fully blended in, 0 = Fully Opaque.

D_DETAIL_2Blend method of the detail 2 texture.
Values: 0 to 5 in whole numbers.

Detail2TexCoordScaleSets the coordinate scale of the Detail2 Textue.
Values: The larger the number the smaller the Detail2 Texture and the more often it needs to be placed on the model. Typical Values: 2-5.

Detail2BlendFactorDefines how much the Detail2 Texture is blended in.
Values: 1 = Fully blended in, 0 = Fully Opaque, can also be >1.

CubeMapScalarSets how strong the Cube Map is blended in? You don't need to know what this does exaclty since it doesen’t have much impact.
Values: Try anything from 0 to 1.

AmbientScaleSets how strong the Ambient Texture is apllied.
Values: Larger Values will make the Ambient Texture appear stronger.

RimLightScaleSets how strong the Rim Light is apllied. Rim Light is the highlighting around the edges of the model.
Values: Larger Values will make the Rim Light appear stronger.

NONE($RIMLIGHTBLENDTOFULL)Defines how much the Rim Light is blended in.(I‘m not sure on this)
Values: Try something between 0 and 1.

NONE($FRESNELCOLORWARPBLENDTOFULL)Defines how much the Fresnel Colorwarp Texture is blended in. (I‘m not sure on this)
Values: Try something between 0 and 1.

Vector component random
Here the functionallity is defined through the output field and the component field. The output field selects a set of three different parameters (as you can see some of them can be NONE and are just placeholders). The component field chooses what exact parameter from that set should be changed. X Component selects the first, Y Component the second and Z Component the third. Like in Scalar random min and max define how much the parameter is changed.

For our 8 Vector component random we need:
Note: Again just play around with the values to see yourself what is changed.
2x SpecularScale +NONE+DiffuseWarpBlendToFull
SpecularScaleSets how strong the Specular Reflection is visible.
Values: Larger Values result in stronger Specular Reflection.

DiffuseWarpBlendToFullDefines how much the Diffuse Warp Texture is blended in.
Values: 1 = Fully blended in, 0 = Fully Opaque.

3x SpecularExponent+SpecularExponentBlendToFull+SpecularBlendToFull
SpecularExponentSets the size of the Specular Highlight Spot.
Values: Typically 5 to 20.

SpecularExponentBlendToFullDefines how much the Specular Exponent is blended in.
Values: 1 = Fully blended in, 0 = Fully Opaque.

SpecularBlendToFullDefines how much the Specular is blended in.
Values: 1 = Fully blended in, 0 = Fully Opaque.

3x ReflectionsTintBaseBlendToNone+MetalnessBlendToFull+SelfIllumBlendToFull
ReflectionsTintBaseBlendToNoneI’m not certain on this but it has something to do with Specular Reflection.
Values: Larger Values will make the Specular Reflection appear stronger.

MetalnessBlendToFullDetermines how metallic the Status Effect appears.
Values: Larger Values will make it look more metallic and shiny.

SelfIllumBlendToFullSets How much self illumination the status effect will have.
Values: 0 = no self Illumination, 1 = full self Illumination.

Color random
With the Color random function we can define the Rim Light Color and the Specular Color. The only options we need from the properties window are color 1, color 2 and output field. The output field again sets what will be changed and color 1 and 2 set to what color it will be changed.

For our 2 Color random we need:
Note: Color 1 and 2 don’t need to be the same but in most cases they should be.
RimLightColorSets the Rim Light Color.

SpecularColorSets the Specular Color.

Hope this helps. Feel free to ask questions or give me feedback.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 218,204评论 6 506
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 93,091评论 3 395
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 164,548评论 0 354
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,657评论 1 293
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,689评论 6 392
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,554评论 1 305
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,302评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,216评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,661评论 1 314
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,851评论 3 336
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,977评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,697评论 5 347
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,306评论 3 330
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,898评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,019评论 1 270
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,138评论 3 370
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,927评论 2 355

推荐阅读更多精彩内容

  • 初中二年级是孩子的关键时期,也是父母教育的关键时期。这一年,父母在哪些方面“使力”帮助孩子才最有效呢?看完这篇文章...
    江苏家学宝阅读 363评论 0 0
  • 2016年7月9日踏上了去青海的列车,我们这节车厢里全是去夏令营的中学生。
    rabbitwithwings阅读 124评论 0 0
  • 看一个时候,发现了桃白白关于单身时光的想法,然后搜索到这篇文章的来源,继而得知了简书。 我有博客,有微博,朋友圈和...
    车小朵阅读 385评论 0 4
  • 玛蒂又一次哭红了鼻子。 她讨厌只会哭的自己,讨厌软弱的自己。 又一个黑夜来袭。 玛蒂裹紧被子蒙住了头,使这黑夜愈发...
    Su萱阅读 244评论 0 1