Created BFRES: Custom Texture Animations (markdown)
parent
95cdfb0363
commit
3dabe0a7d0
117
BFRES:-Custom-Texture-Animations.md
Normal file
117
BFRES:-Custom-Texture-Animations.md
Normal file
@ -0,0 +1,117 @@
|
||||
Currently you can easily make custom ones from a .yaml file. These can be created and edited in any text editor of your choice.
|
||||
|
||||
Optionally you can export an existing one from the tool by right clicking on one, and exporting with the .yaml extension.
|
||||
|
||||
![](https://i.imgur.com/0t4ZK1E.png)
|
||||
|
||||
For this tutorial, i will simply show you how the file works, as you can simply use a template from here and edit however you like.
|
||||
|
||||
![](https://i.imgur.com/8cRWQ6u.png)
|
||||
|
||||
- Red shows the animation name.
|
||||
- Below is the Path. (not needed to be set)
|
||||
- The FrameCount is the total amount of frames the animation has.
|
||||
- Under that is a list of materials in the animation. In green is the material name.
|
||||
- Then there is TexturePatternInfos. This is where the data is stored. The name parameter, is the sampler name.
|
||||
_a0 for diffuse map, _n0 for normal map, _e0 for emissive map, and _s0 for specular map. Note the material must support these types! The texture list will have a sampler for the texture which can be used.
|
||||
- The constant data is to always display a specified texture (put texture name where null is at), This will ignore the curve data if set.
|
||||
- Then there is a keyframe list, with the frame and texture to show at that frame.
|
||||
|
||||
Template #1 Basics
|
||||
```yaml
|
||||
Name: NewTextureAnimation_ftp
|
||||
Path:
|
||||
Loop: false
|
||||
FrameCount: 2
|
||||
MaterialAnimConfigs:
|
||||
- Name: MaterialNameHere
|
||||
TexturePatternInfos:
|
||||
- Name: _a0
|
||||
IsConstant: false
|
||||
ConstantValue: null
|
||||
CurveData:
|
||||
KeyFrames:
|
||||
0: Texture1
|
||||
1: Texture2
|
||||
ParamInfos: []
|
||||
```
|
||||
|
||||
Template #2 MoreMaterials!
|
||||
```yaml
|
||||
Name: NewTextureAnimation_ftp
|
||||
Path:
|
||||
Loop: false
|
||||
FrameCount: 2
|
||||
MaterialAnimConfigs:
|
||||
- Name: MaterialNameHere1
|
||||
TexturePatternInfos:
|
||||
- Name: _a0
|
||||
IsConstant: false
|
||||
ConstantValue: null
|
||||
CurveData:
|
||||
KeyFrames:
|
||||
0: Texture1
|
||||
1: Texture2
|
||||
ParamInfos: []
|
||||
- Name: MaterialNameHere2
|
||||
TexturePatternInfos:
|
||||
- Name: _a0
|
||||
IsConstant: false
|
||||
ConstantValue: null
|
||||
CurveData:
|
||||
KeyFrames:
|
||||
0: Texture1
|
||||
1: Texture2
|
||||
ParamInfos: []
|
||||
```
|
||||
|
||||
Template #3 More texture maps!
|
||||
```yaml
|
||||
Name: NewTextureAnimation_ftp
|
||||
Path:
|
||||
Loop: false
|
||||
FrameCount: 2
|
||||
MaterialAnimConfigs:
|
||||
- Name: MaterialNameHere
|
||||
TexturePatternInfos:
|
||||
- Name: _a0
|
||||
IsConstant: false
|
||||
ConstantValue: null
|
||||
CurveData:
|
||||
KeyFrames:
|
||||
0: Texture1_Alb
|
||||
1: Texture2_Alb
|
||||
- Name: _n0
|
||||
IsConstant: false
|
||||
ConstantValue: null
|
||||
CurveData:
|
||||
KeyFrames:
|
||||
0: Texture1_Nrm
|
||||
1: Texture2_Nrm
|
||||
- Name: _e0
|
||||
IsConstant: false
|
||||
ConstantValue: null
|
||||
CurveData:
|
||||
KeyFrames:
|
||||
0: Texture1_Emm
|
||||
1: Texture2_Emm
|
||||
ParamInfos: []
|
||||
|
||||
```yaml
|
||||
Template #4 Constant!
|
||||
`
|
||||
Name: NewTextureAnimation_ftp
|
||||
Path:
|
||||
Loop: false
|
||||
FrameCount: 2
|
||||
MaterialAnimConfigs:
|
||||
- Name: MaterialNameHere1
|
||||
TexturePatternInfos:
|
||||
- Name: _a0
|
||||
IsConstant: true
|
||||
ConstantValue: Texture1 //Always shows on all frames
|
||||
CurveData: null
|
||||
ParamInfos: []
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user