QQ登录

只需一步,快速开始

 找回密码
 定下契约(新注册)

QQ登录

只需一步,快速开始

查看: 2235|回复: 14
收起左侧

MatFX section builder

[复制链接]

极·佛光普照

Rank: 16

UID
27
宝石
662 粒
金币
10138 枚
节操
262 斤
灵石
0 块
精力
2433 ℃

佛光普照

发表于 2014-10-17 21:21:19 | 显示全部楼层 |阅读模式

你这样只看不注册,真的大丈夫?~

您需要 登录 才可以下载或查看,没有账号?定下契约(新注册)

x
本帖最后由 永恆之火 于 2014-10-17 21:33 编辑

在國外論壇找到這個工具,似乎可以讓武器使用法線貼圖(normal map)
似乎是要用RW Analyze修改DFF,研究了好久還是無解


人物似乎也可以用

原文討論串
readme內容:
MatFX tool 1.0
Author: DK22Pac

Assembly
MatFX section file has an extension .mfx.
In the folder with MatFxTool.exe there are two folders - mfx and txt.
Txt folder used to build .mfx files from .txt files.
Mfx folder is used to retrieve .txt files from .mfx files.

For example, we have a file m4.txt, which describe the parameters necessary for our section.
Put this file in the folder txt, run exe, and we obtain (in the same folder) .mfx file,
which must be imported into dff.

Txt-file format

The first parameter in file is a version of DFF (version of RenderWare).
The number has HEX-format with leading 0x.

0x00000304 - GTA III PS2
0x00000310 - GTA III PS2, GTA III PC
0x0800FFFF - GTA III PC
0x0C02FFFF - GTA VC PC
0x1003FFFF - GTA III XBOX, GTA VC XBOX
0x1005FFFF - GTA VC Android
0x1400FFFF - GTA III Android
0x1803FFFF - GTA SA, Manhunt

It is followed with the type of effect.

Supported types of effects:
BUMPMAP - height map
ENVMAP - reflection map
BUMPENVMAP - bump map + reflection map
DUAL - double texturing

And then - the data section.

Example file format: BUMPMAP

DffVersion: 0x1803FFFF
MatFxType   BUMPMAP
### parameters ###
BumpMapBumpiness 5.0
###         Enable Filtering U-addressing V-addressing HasMipMaps Name Alpha
Texture     0
BumpMapTex  1      4         1            1            0          subplt_bump -

BumpMapBumpiness - intensity of the effect
Texture - the texture parameters to substitute the main texture
BumpMapTex - texture parameters for height map

Example file format: ENVMAP

DffVersion: 0x1803FFFF
MatFxType   ENVMAP
### parameters ###
EnvMapCoefficient 0.500
FrameBufferAlpha 0
###         Enable Filtering U-addressing V-addressing HasMipMaps Name Alpha
EnvMap      1      6         1            1            1          vehicle_generic_chromeprts -

EnvMapCoefficient - intensity of the reflections
FrameBufferAlpha - if you use a bump, and this option is enabled, the reflection map will take bump
distortion into account

Next come the texture parameters for reflection map.

Example file format: BUMPENVMAP
DffVersion: 0x1803FFFF
MatFxType   BUMPENVMAP
### parameters ###
BumpMapBumpiness 5.000
###         Enable Filtering U-addressing V-addressing HasMipMaps Name Alpha
Texture     0
BumpMapTex  1      6         1            1            0          m4_bump -
### Env Map
EnvMapCoefficient 0.500
FrameBufferAlpha 0
###         Enable Filtering U-addressing V-addressing HasMipMaps Name Alpha
EnvMap      1      6         1            1            0          m4_chrome -

This file combines two effects parameters.

Example file format: DUAL

DffVersion: 0x1803FFFF
MatFxType   DUAL
### parameters ###
SrcBlendMode 2
DstBlendMode 2
###         Enable Filtering U-addressing V-addressing HasMipMaps Name Alpha
DualTex     1      6         1            1            0          dualtex -

SrcBlendMode - source pixel blending parameter
DstBlendMode - destination pixel blending parameter
DualTex - blending texture

Blend parameters:
0  rwBLENDNABLEND
1  rwBLENDZERO             (0,    0,    0,    0   )
2  rwBLENDONE              (1,    1,    1,    1   )
3  rwBLENDSRCCOLOR         (Rs,   Gs,   Bs,   As  )
4  rwBLENDINVSRCCOLOR      (1-Rs, 1-Gs, 1-Bs, 1-As)
5  rwBLENDSRCALPHA         (As,   As,   As,   As  )
6  rwBLENDINVSRCALPHA      (1-As, 1-As, 1-As, 1-As)
7  rwBLENDDESTALPHA        (Ad,   Ad,   Ad,   Ad  )
8  rwBLENDINVDESTALPHA     (1-Ad, 1-Ad, 1-Ad, 1-Ad)
9  rwBLENDDESTCOLOR        (Rd,   Gd,   Bd,   Ad  )
10 rwBLENDINVDESTCOLOR     (1-Rd, 1-Gd, 1-Bd, 1-Ad)
11 rwBLENDSRCALPHASAT      (f,    f,    f,    1   )  f = min (As, 1-Ad)

Parameters of textures

Texture parameters are described in a single line, for example:

###         Enable Filtering U-addressing V-addressing HasMipMaps Name Alpha
EnvMap      1      6         1            1            0          m4_chrome -

Enable - enables/disables texture. When texture is disabled, its not necessary
to describe other  parameters.
Filtering - texture filtering
U-addressing, V-addressing - texture addressing
HasMipMaps - presence of texture mipmapping
Name - name of the texture
Alpha - the name of the texture alpha mask

Types of texture filtering:
0 rwFILTERNAFILTERMODE
1 rwFILTERNEAREST
2 rwFILTERLINEAR
3 rwFILTERMIPNEAREST
4 rwFILTERMIPLINEAR
5 rwFILTERLINEARMIPNEAREST
6 rwFILTERLINEARMIPLINEAR

Types of texture addressing:
0 rwTEXTUREADDRESSNATEXTUREADDRESS
1 rwTEXTUREADDRESSWRAP
2 rwTEXTUREADDRESSMIRROR
3 rwTEXTUREADDRESSCLAMP
4 rwTEXTUREADDRESSBORDER

This file may contain comments. To insert a comment put a '#' or ';' character (without quotes)
at the line beginning.

Importing section

MatFX section should be located in a section of the material Extension. ID of this section - 0x120

Material
  <Material data>
  Extension
     MatFX

Atomic geometry which uses this material must also have MatFX section
in extensions. However, here we are talking about a different format section
(use file MatFXAtomic.mfx) or take this section from dff which
uses MatFX effects (vehicles for example).


Atomic
   <Atomic data>
   Extension
       MatFX (MatFXAtomic.mfx)

Restrictions
Bump texture effect
-They can not use compressed raster
-They can not use a transparent bitmap
-They can not use mipmapping
In GTA SA MatFX effects don't work on vehicle models.

Assembling textures
Use OpenIV and WTD2TXD for assembly and final txd (for bump textures - use format X8R8G8B8, without mip-mapping).


That's all. If you happen to collect the working section -
congratulations, you have a new level of hard modders!
Long live the notepad-modding!


百度云附件:MatFXTool (3,VC,SA).rar   



翘楚 Outstanding

Rank: 6Rank: 6Rank: 6

UID
15760
宝石
19 粒
金币
976 枚
节操
85 斤
灵石
0 块
精力
170 ℃

黑岩之炎saber max!!!灼眼的夏娜

发表于 2014-10-17 21:29:33 | 显示全部楼层
看不懂的渣渣路过

达人 Expert

Rank: 9Rank: 9Rank: 9

UID
6379
宝石
52 粒
金币
291 枚
节操
125 斤
灵石
0 块
精力
535 ℃
发表于 2014-10-17 21:39:46 | 显示全部楼层
惊现大神
论坛如何快速获得金币、宝石!水神来教你~
点我→水神支
招赚金币方法①

水神公会:http://www.miuk.cn/forum.phpmod=group&action=join

达人 Expert

Rank: 9Rank: 9Rank: 9

UID
6
宝石
9 粒
金币
-41 枚
节操
-387 斤
灵石
0 块
精力
82 ℃
QQ
发表于 2014-10-17 21:41:14 | 显示全部楼层
...好像很複雜         

达人 Expert

Rank: 9Rank: 9Rank: 9

UID
18817
宝石
39 粒
金币
2178 枚
节操
189 斤
灵石
0 块
精力
5219 ℃
QQ
发表于 2014-10-17 21:44:55 | 显示全部楼层
有什么用?

极·佛光普照

大帅哥

Rank: 16

UID
9037
宝石
6 粒
金币
2804 枚
节操
1866 斤
灵石
10 块
精力
1971 ℃

金色闪光宝石达人---大丈夫!!!真の绅士神之力

发表于 2014-10-17 21:46:52 | 显示全部楼层
好深奥的样子  
[发帖际遇]: 日月断晨巧遇大福神,获得 9 枚 金币回报. 幸运榜 / 衰神榜

版主

Rank: 32Rank: 32

宝石
6 粒
金币
24796 枚
节操
345 斤
灵石
1 块
精力
510 ℃

灼眼的夏娜绯弹的亚里亚miku星光闪耀恶魔之触伸手之皇极简KARAS骑士圣杯吾王之血神之力宝石达人---大丈夫!!!BRS暴走逆蝶异界贯通者黑岩之炎

发表于 2014-10-17 22:02:37 | 显示全部楼层
可惜的动漫人物不通用法线啊

传奇 Legend

Rank: 16

UID
6244
宝石
119 粒
金币
1 枚
节操
438 斤
灵石
0 块
精力
306 ℃
发表于 2014-10-17 22:06:32 | 显示全部楼层
很厉害的样子 可惜看不懂
[发帖际遇]: 萩原夏树帮助了一位不想过马路的老奶奶过马路,挽回 4 斤 节操. 幸运榜 / 衰神榜

极·佛光普照

Rank: 16

UID
11441
宝石
0 粒
金币
126 枚
节操
-447 斤
灵石
0 块
精力
4169 ℃
QQ

BRS暴走骑士圣杯恶魔之触吾王之血佛光普照精力射线

发表于 2014-10-17 22:24:13 | 显示全部楼层
LZ你该不会是打开一个文件用记事本打开然后复制再粘贴吧
Immortal spirit

璞玉 Potential

Rank: 4

UID
5951
宝石
19 粒
金币
351 枚
节操
-4 斤
灵石
0 块
精力
291 ℃
QQ
发表于 2014-10-17 22:30:11 | 显示全部楼层
只是进来看看。。。
请赐我一个胸大无脑的妹纸。

版主

Rank: 32Rank: 32

宝石
218 粒
金币
15411 枚
节操
3654 斤
灵石
1 块
精力
8403 ℃

一刀流 ★ 瞬斩善恶天使佛光普照骑士圣杯sex lady真の绅士逆蝶BRS暴走神之力宝石达人---大丈夫!!!吾王之血KARAS灼眼的夏娜黑岩之炎miku

发表于 2014-10-17 23:13:49 | 显示全部楼层
看不懂

达人 Expert

Rank: 9Rank: 9Rank: 9

UID
9644
宝石
7 粒
金币
3354 枚
节操
-87 斤
灵石
0 块
精力
2632 ℃
发表于 2014-10-18 07:32:14 | 显示全部楼层
不懂啊
[发帖际遇]: 飞机控 发现了一只小LOLI,心头一软,给其一颗棒棒糖。获得 2 枚 金币. 幸运榜 / 衰神榜

翘楚 Outstanding

Rank: 6Rank: 6Rank: 6

UID
21941
宝石
15 粒
金币
1327 枚
节操
-420 斤
灵石
0 块
精力
264 ℃
QQ
发表于 2014-10-18 07:36:58 | 显示全部楼层
大神

世界工人

心之所向

Rank: 16

UID
1
宝石
30 粒
金币
3508 枚
节操
1236 斤
灵石
2 块
精力
12213 ℃

sex lady精力射线真の绅士

发表于 2014-10-18 13:28:25 | 显示全部楼层
所噶
[发帖际遇]: kami 在论坛发帖时没有进行防御,被挑战者 刃** 挑战失去了 7 枚 金币. 幸运榜 / 衰神榜

翘楚 Outstanding

Rank: 6Rank: 6Rank: 6

UID
19723
宝石
23 粒
金币
2283 枚
节操
274 斤
灵石
1 块
精力
1628 ℃
发表于 2014-10-19 23:31:57 | 显示全部楼层
看不懂也要下载
[发帖际遇]: 比利狂化了!!!注意格挡!!轰!!!很遗憾,您未挡住,损失42 斤 节操. 幸运榜 / 衰神榜

本版积分规则

    切换繁體
    Archiver|手机版|小黑屋|

GMT+8, 2024-5-5 22:04 , Processed in 0.228937 second(s), 196 queries .

沪ICP备2021020632号-1

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