Quantcast

Jump to content

» «
Photo

[REL|III/VC/SA]MatFX section builder

14 replies to this topic
DK22Pac
  • DK22Pac

    𝘉eчнo 𝘔oлoдoй...

  • Feroci
  • Joined: 12 Apr 2009
  • Ukraine
  • Best WIP Mod 2014 [Grand Theft Auto 3D Contribution]
    Contribution Award [Mods]
    Helpfulness Award [Mods]

#1

Posted 25 May 2014 - 05:50 PM

A tool for generating MatFX section binary data from text data (and vice versa).
More info here.
All other information was written to ReadMe file.
Example: weapon with bump+environment maps:
uDXrMPZ.png
-Download-

  • ThirteenAG, Shagg_E, Silent and 12 others like this

AeroFX
  • AeroFX

    "All can be changed"

  • Members
  • Joined: 27 Apr 2014
  • Indonesia

#2

Posted 26 May 2014 - 05:27 PM

Nice Tool @_DK, but still cofuse with the tool...


Rafal22
  • Rafal22

    Player Hater

  • Members
  • Joined: 02 Jul 2011
  • Poland

#3

Posted 09 June 2014 - 05:37 PM

Hi.
Why bump map doesn't work with night vertex color?
How fix it?


Flame
  • Flame

    Homeboy

  • Members
  • Joined: 24 Sep 2011
  • Unknown
  • Best Texture Mod 2017 [HRT 1.4]
    Best Texture Mod 2016 [HRT 1.4]
    Contribution Award [Mods]

#4

Posted 02 July 2014 - 07:35 AM Edited by flame1251, 02 July 2014 - 07:55 AM.

Hi, _DK. It is very cool to know about this program, but very hard to use it. I read ReadMe, but it still hard. So, this tool creating new section for DFF file with parameters of bump (or some other) effect. We write some needed information about effect in txt file and then, with help of tool, convert to mfx. But what next? Does we must import mfx into DFF file, but how? With RW Analyze? "Import section data"? I doubt that I trying to do these all correct. And what about textures: only with OpenIV and WTD2TXD, or G-TXD will be suitable? For launch OpenIV we must have one of Rage-engine games. :(

DK22Pac
  • DK22Pac

    𝘉eчнo 𝘔oлoдoй...

  • Feroci
  • Joined: 12 Apr 2009
  • Ukraine
  • Best WIP Mod 2014 [Grand Theft Auto 3D Contribution]
    Contribution Award [Mods]
    Helpfulness Award [Mods]

#5

Posted 02 July 2014 - 10:06 AM

Hello. Nice to see you are intersted in this tool.

For section importing, go to Material->Extension, click Add Section, select Material Effects PLG section. Then RMC on created section -> Import section data, select your .mfx file.

For textures you can use DDS2TXD also (SA only). And if I'm right, you can start OpenIV only having the .exe of any of these RAGE games.

 

While creating my own dff plug-ins, I already added support for bump/environment/blend/normal mapping.

Rcsipvb.png

 

Rm4JHJQ.png

 

hv2m4ZB.jpg

 

n06DB1o.jpg

Dff plug-ins creation is still WIP.

  • ALMOST610, Shagg_E, Toghrul Rahimli and 8 others like this

Flame
  • Flame

    Homeboy

  • Members
  • Joined: 24 Sep 2011
  • Unknown
  • Best Texture Mod 2017 [HRT 1.4]
    Best Texture Mod 2016 [HRT 1.4]
    Contribution Award [Mods]

#6

Posted 02 July 2014 - 10:10 AM Edited by flame1251, 02 July 2014 - 10:13 AM.

Oh, .mfx is for 3ds Max. :) Thanks for answer, I'll wait for your DFF plugins. Max Payne with bump textures scornfully looks at low-res CJ.

DK22Pac
  • DK22Pac

    𝘉eчнo 𝘔oлoдoй...

  • Feroci
  • Joined: 12 Apr 2009
  • Ukraine
  • Best WIP Mod 2014 [Grand Theft Auto 3D Contribution]
    Contribution Award [Mods]
    Helpfulness Award [Mods]

#7

Posted 02 July 2014 - 10:13 AM

Well, all that instruction was for RWAnalyze actually. .mfx file is not related to 3ds max anyhow.

  • Concavax and R3ZA like this

Flame
  • Flame

    Homeboy

  • Members
  • Joined: 24 Sep 2011
  • Unknown
  • Best Texture Mod 2017 [HRT 1.4]
    Best Texture Mod 2016 [HRT 1.4]
    Contribution Award [Mods]

#8

Posted 02 July 2014 - 10:20 AM Edited by flame1251, 03 July 2014 - 11:13 AM.

Well, all that instruction was for RWAnalyze actually. .mfx file is not related to 3ds max anyhow.

I read inattentively. :blush: Later I will try all these.

  • R3ZA likes this

Dosceve
  • Dosceve

    Player Hater

  • Members
  • Joined: 15 Feb 2010

#9

Posted 05 July 2014 - 02:33 AM

Amazing and useful tool but it didn't worked for me, can you upload your m4 dff/txd as a base please?


DK22Pac
  • DK22Pac

    𝘉eчнo 𝘔oлoдoй...

  • Feroci
  • Joined: 12 Apr 2009
  • Ukraine
  • Best WIP Mod 2014 [Grand Theft Auto 3D Contribution]
    Contribution Award [Mods]
    Helpfulness Award [Mods]

#10

Posted 18 July 2014 - 12:54 PM Edited by _DK, 18 July 2014 - 12:55 PM.

You can test normal map plugin:
https://www.sendspace.com/file/7b4uo0
Example of a section is available int the 'txt' folder.
Section must be added to the Material Extension, section ID - Normal Map PLG (0x133).
For Atomic which uses material, add a section Right to Render (0x1F), and import the data:
-Normalmap_skin.rights - for skinned models.
-Normalmap_static.rights - for other models
For skin it'll look like this:
Atomic
  |
  +--Struct
  |
  +--Extension
          |
          +--Right to Render (Skin)
          |
          +--Right to Render (Normal Map)
  • Tadzik, JBriones2016, Concavax and 1 other like this

Concavax
  • Concavax

    Punk-ass Bitch

  • Members
  • Joined: 26 Dec 2013
  • None

#11

Posted 03 September 2014 - 03:55 AM Edited by Concavax, 15 February 2015 - 04:54 PM.

*Ignore This*


YIbnuN
  • YIbnuN

    Newbie

  • Members
  • Joined: 21 May 2014
  • Indonesia

#12

Posted 17 December 2014 - 08:57 AM

can you make the video version of the tutorial :cry:  BTW nice tools.


Concavax
  • Concavax

    Punk-ass Bitch

  • Members
  • Joined: 26 Dec 2013
  • None

#13

Posted 26 November 2017 - 11:14 PM Edited by Concavax, 27 November 2017 - 02:51 AM.

Hi, please can someone help me to make bump maps?

 

I'm able to do "reflection map" and double texturing, but the bump map i simply can't.

 

I don't have any clue about the problem because i don't know nothing about modelling, specially in RW games like GTA SA. I just barely know about the basics of 3d topic and raster graphics.

 

Anyway, i tought it was a problem of my graphic card because it's too old, but i downloaded some models of internet with bump map and it works in the game. So i'm sure my graphic card can handle it.

 

Spoiler

 

The process i do to add the material to the models is (as described in the readme):

 

-"Build" the txt descriptor

-Create the section with RWAnalyzer

-Build the txd archive with MagicTXD

 

When i create the section inside the dff i do the following (described in the instructions):

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)

The reflection and double texture works by this way. Only adding the MatFx to the Extension y Material section and adding the MatFXAtomic too.

 

Spoiler

 

I was looking the dff with bump map who actually works and i compared against my modified dff, the only difference i notice is in the child section "Right to render" (0x1F) in the Atomic. The only place i found something about the right to render is in the white paper of normalmap by Dk, in such document talks about normalmap only and makes difference of "skinned" and "static" models (models with animations and without it?) when talks about the "Right to Render" section.

 

Spoiler

 

I already tried exporting those sections in the Atomic from the DFF where the bump map works, then importing the "Right to render" and "Material Effects PLG" to my modified DFF. And importing the files (normalmap_static.rights/normalmap_skin.rights) from the normalmap plugin by DK. Did not work.

 

What do i do to be able of do bump map?

 

Edit1: Also, It's posible to merge the dual texturing and reflection? and how?

 

Thank you.


DK22Pac
  • DK22Pac

    𝘉eчнo 𝘔oлoдoй...

  • Feroci
  • Joined: 12 Apr 2009
  • Ukraine
  • Best WIP Mod 2014 [Grand Theft Auto 3D Contribution]
    Contribution Award [Mods]
    Helpfulness Award [Mods]

#14

Posted 27 November 2017 - 10:10 PM Edited by DK22Pac, 27 November 2017 - 10:10 PM.

Change 'm4' texture type to 8888 BGRA.
  • Concavax likes this

Concavax
  • Concavax

    Punk-ass Bitch

  • Members
  • Joined: 26 Dec 2013
  • None

#15

Posted 28 November 2017 - 12:31 AM Edited by Concavax, 13 December 2017 - 01:23 PM.

Change 'm4' texture type to 8888 BGRA.

 

Thank you!

 

Spoiler

 

Why this is relevant when it's time to render in the game?

 

And, what about this? It's possible?

 

Edit1: Also, It's posible to merge the dual texturing and reflection? and how?

 

 

EDIT2: It's possible to make a change to the game, to make it possible to use MIPMAPs along with BumpMaps. Because the major advantages of MIPMAPS are canceled with the the BumpMap effects. Because, the buildings or big models doesn't good look with bumpmap and without mipmapping.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users