K logo.png Congratulations /k/! K logo.png
Winners of the 2024 4chan Autumn Babby Cup

Difference between revisions of "Fox Shaders"

From Rigged Wiki
Jump to navigation Jump to search
(Added shadow enum 3)
(Added DDF Shaders guide image)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
= Alpha and Shadow Enum Values Legend =
{{Pes2019 TOC}}
= Shader types and usable Enum values =


=== Read this first ===
=== Read this first ===
'One Sided' means that the backside of each face in the model will be invisible. It's also called backface culling.
'One Sided' means that the backside of each face in the model will be invisible. It's also called backface culling.<br>
<br>
'Two Sided' means that the model is visible (transparency aside) no matter the angle of the camera.<br>
'Two Sided' means that the model is visible (transparency aside) no matter the angle of the camera.


== Deferred Shaders ==
== Deferred Shaders ==
These are the shaders with 3D'''DF''' (DF from DeFerred) in the name, like those beginning with fox3DDF or pes3DDF.
[[File:DDF_semitransparency.png|300px|thumbnail|Deferred shader semitransparency example.<br>Left image is in-PES, right is the texture.]]
 
[[File:DDF_srm.png|300px|thumbnail|Deferred shader SpecularMap example (_srm.dds texture file).]]
=== Shadow Enum ===
[[File:DDF_Shaders_Guide.png|300px|thumbnail|Guide to make deferred shaders models look better.]]
* 0 - The mesh has shadows.
These are the shaders with 3D'''DF''' (DF from DeFerred) in the name, like those beginning with fox3DDF or pes3DDF.<br>
* 1 - The mesh doesn't have shadows.
'''The shaders of this type don't support semitransparency properly, they render it in a polka-dot pattern (see image on the right).'''<br>
* 2 - Makes the mesh invisible but it still casts its shadow.
* 3 - Makes the mesh invisible and without any shadows either.


=== Alpha Enum ===
=== Alpha Enum ===
Line 20: Line 18:
* 128 - Transparency, One Sided.
* 128 - Transparency, One Sided.
* 160 - Transparency, Two Sided.
* 160 - Transparency, Two Sided.
== Forward Shaders ==
These are the shaders with 3D'''FW''' (FW from ForWard) in the name, like those beginning with fox3DFW or pes3DFW.


=== Shadow Enum ===
=== Shadow Enum ===
* 0 - The mesh has shadows.
* 1 - The mesh doesn't have shadows.
* 2 - Makes the mesh invisible but it still casts its shadow.
* 2 - Makes the mesh invisible but it still casts its shadow.
* 4 - The mesh has shadows.
* 3 - Makes the mesh invisible and without any shadows either.
* 5 - The mesh doesn't have shadows.
 
== Forward Shaders ==
These are the shaders with 3D'''FW''' (FW from ForWard) in the name, like those beginning with fox3DFW or pes3DFW.<br>
'''The shaders of this type support semitransparency properly.'''<br>
'''The shaders of this type make models appear blurry when they move. This can be prevented by duplicating the mesh, shrinking it slightly and using a deferred shader on the duplicate.'''<br>


=== Alpha Enum ===
=== Alpha Enum ===
Line 33: Line 34:
*  48 - Transparency, Two Sided.
*  48 - Transparency, Two Sided.


=== Shadow Enum ===
* 2 - Makes the mesh invisible but it still casts its shadow.
* 4 - The mesh has shadows.
* 5 - The mesh doesn't have shadows.


= Main shader types =
= Main shaders =


== Generic Fox Engine Shader ==
== Generic Fox Engine Shader ==
Line 44: Line 49:
=== FMDL Material Settings ===
=== FMDL Material Settings ===
'''Shader:''' fox3ddf_blin
'''Shader:''' fox3ddf_blin
<br>
 
'''Technique:''' fox3DDF_Blin
'''Technique:''' fox3DDF_Blin


Line 83: Line 88:
=== FMDL Material Settings ===
=== FMDL Material Settings ===
'''Shader:''' fox3ddf_ggx
'''Shader:''' fox3ddf_ggx
<br>
 
'''Technique:''' fox3DDF_GGX
'''Technique:''' fox3DDF_GGX


Line 126: Line 131:
=== FMDL Material Settings ===
=== FMDL Material Settings ===
'''Shader:''' fox3dfw_constant_srgb_ndr
'''Shader:''' fox3dfw_constant_srgb_ndr
<br>
 
'''Technique:''' fox3DFW_ConstantSRGB_NDR
'''Technique:''' fox3DFW_ConstantSRGB_NDR
<br><br>
 
 
For even less lighting effect you can try:
For even less lighting effect you can try:
<br>
<br>
'''Shader:''' fox3dfw_constant_srgb_plain
'''Shader:''' fox3dfw_constant_srgb_plain
<br>
 
'''Technique:''' fox3DFW_ConstantSRGB_Plain
'''Technique:''' fox3DFW_ConstantSRGB_Plain


Line 162: Line 168:
=== FMDL Material Settings ===
=== FMDL Material Settings ===
'''Shader:''' pes3dfw_glass2
'''Shader:''' pes3dfw_glass2
<br>
 
'''Technique:''' pes3DFW_Glass2
'''Technique:''' pes3DFW_Glass2


Line 188: Line 194:
! Role !! Filename !! Description
! Role !! Filename !! Description
|-
|-
| Base_Tex_SRGB || *.dds (or *_bsm.dds for sorting reasons)|| This is the role for the main texture you'll use on your model.
| Base_Tex_LIN || *.dds (or *_bsm.dds for sorting reasons)|| This is the role for the main texture you'll use on your model.
|-
|-
| NormalMap_Tex_NRM || *.dds (or *_nrm.dds for sorting reasons) || https://en.wikipedia.org/wiki/Normal_mapping
| NormalMap_Tex_NRM || *.dds (or *_nrm.dds for sorting reasons) || https://en.wikipedia.org/wiki/Normal_mapping

Latest revision as of 11:55, 23 January 2024

2019 4chanlogo.png
Pro Evolution Soccer 2019
This is still a work in progress.
Please be patient.
Game
Rules
Info
Tools
Modding

Shader types and usable Enum values

Read this first

'One Sided' means that the backside of each face in the model will be invisible. It's also called backface culling.
'Two Sided' means that the model is visible (transparency aside) no matter the angle of the camera.

Deferred Shaders

Deferred shader semitransparency example.
Left image is in-PES, right is the texture.
Deferred shader SpecularMap example (_srm.dds texture file).
Guide to make deferred shaders models look better.

These are the shaders with 3DDF (DF from DeFerred) in the name, like those beginning with fox3DDF or pes3DDF.
The shaders of this type don't support semitransparency properly, they render it in a polka-dot pattern (see image on the right).

Alpha Enum

  • 0 - No Transparency, One Sided.
  • 32 - No Transparency, Two Sided.
  • 128 - Transparency, One Sided.
  • 160 - Transparency, Two Sided.

Shadow Enum

  • 0 - The mesh has shadows.
  • 1 - The mesh doesn't have shadows.
  • 2 - Makes the mesh invisible but it still casts its shadow.
  • 3 - Makes the mesh invisible and without any shadows either.

Forward Shaders

These are the shaders with 3DFW (FW from ForWard) in the name, like those beginning with fox3DFW or pes3DFW.
The shaders of this type support semitransparency properly.
The shaders of this type make models appear blurry when they move. This can be prevented by duplicating the mesh, shrinking it slightly and using a deferred shader on the duplicate.

Alpha Enum

  • 16 - Transparency, One Sided.
  • 48 - Transparency, Two Sided.

Shadow Enum

  • 2 - Makes the mesh invisible but it still casts its shadow.
  • 4 - The mesh has shadows.
  • 5 - The mesh doesn't have shadows.

Main shaders

Generic Fox Engine Shader

This is a Deferred (3DDF) shader.

Blender Material Name

It can be whatever you want it to be.

FMDL Material Settings

Shader: fox3ddf_blin

Technique: fox3DDF_Blin

Material Parameters:

Name Values
MatParamIndex_0 0 0 0 0

FMDL Texture Settings

Role Filename Description
Base_Tex_SRGB *.dds (or *_bsm.dds for sorting reasons) This is the role for the main texture you'll use on your model.
NormalMap_Tex_NRM *.dds (or *_nrm.dds for sorting reasons) https://en.wikipedia.org/wiki/Normal_mapping
SpecularMap_Tex_LIN *.dds (or *_srm.dds for sorting reasons) https://en.wikipedia.org/wiki/Specularity#In_computer_graphics

The Directory for the textures above can be set to:

  • '/Assets/pes16/model/character/face/real/00000/sourceimages/' - for faces
  • '/Assets/pes16/model/character/boots/k0000/' - for boots
  • '/Assets/pes16/model/character/glove/g0000/' - for gloves
  • '/Assets/pes16/model/character/common/000/sourceimages/' - If you want to use a texture that is in a team's common folder.
  • '/Assets/pes16/model/character/common/sourceimages/' - If you don't want to use the Normal, Specular or both texture maps, set the filename to 'dummy_nrm.tga' for NormalMap_Tex_NRM or 'dummy_srm.tga' for SpecularMap_Tex_LIN.


Metalic Fox Engine Shader

This is a Deferred (3DDF) shader.

Blender Material Name

It can be whatever you want it to be.

FMDL Material Settings

Shader: fox3ddf_ggx

Technique: fox3DDF_GGX

Material Parameters:

Name Values
MatParamIndex_0 0 0 0 0

FMDL Texture Settings

Role Filename Description
Base_Tex_SRGB *.dds (or *_bsm.dds for sorting reasons) This is the role for the main texture you'll use on your model.
NormalMap_Tex_NRM *.dds (or *_nrm.dds for sorting reasons) https://en.wikipedia.org/wiki/Normal_mapping
SpecularMap_Tex_LIN *.dds (or *_srm.dds for sorting reasons) https://en.wikipedia.org/wiki/Specularity#In_computer_graphics
It is required and needs to be set to #FF6C3A by default. You can experiment more with it if you want.
MetalnessMap_Tex_LIN *.dds (or *_mtl.dds for sorting reasons) It is required and needs to be set to #FFFFFF by default. You can experiment more with it if you want.

The Directory for the textures above can be set to:

  • '/Assets/pes16/model/character/face/real/00000/sourceimages/' - for faces
  • '/Assets/pes16/model/character/boots/k0000/' - for boots
  • '/Assets/pes16/model/character/glove/g0000/' - for gloves
  • '/Assets/pes16/model/character/common/000/sourceimages/' - If you want to use a texture that is in a team's common folder.
  • '/Assets/pes16/model/character/common/sourceimages/' - If you don't want to use the Normal texture map, set the filename to 'dummy_nrm.tga' for NormalMap_Tex_NRM.


Constant Fox Engine Shader

Also known as "Anime Shader", "Cartoon Shader" or "Shadeless shader".
This is a Forward (3DFW) shader.

Blender Material Name

It can be whatever you want it to be.

FMDL Material Settings

Shader: fox3dfw_constant_srgb_ndr

Technique: fox3DFW_ConstantSRGB_NDR


For even less lighting effect you can try:
Shader: fox3dfw_constant_srgb_plain

Technique: fox3DFW_ConstantSRGB_Plain

Material Parameters:
None.

FMDL Texture Settings

Role Filename Description
Base_Tex_SRGB *.dds (or *_bsm.dds for sorting reasons) This is the role for the main texture you'll use on your model.
Mipmaps aren't obligatory with this shader.

The Directory for the texture above can be set to:

  • '/Assets/pes16/model/character/face/real/00000/sourceimages/' - for faces
  • '/Assets/pes16/model/character/boots/k0000/' - for boots
  • '/Assets/pes16/model/character/glove/g0000/' - for gloves
  • '/Assets/pes16/model/character/common/000/sourceimages/' - If you want to use a texture that is in a team's common folder.


Glass Fox Engine Shader

This is a Forward (3DFW) shader.

Blender Material Name

It can be whatever you want it to be.

FMDL Material Settings

Shader: pes3dfw_glass2

Technique: pes3DFW_Glass2

Material Parameters:

Name Values Note
MatParamIndex_0 54 0 0 0
ReflectionIntensity 1 0 0 0 The first value can be tweaked to increase or decrease the reflection intensity.
GlassRoughness 0 0 0 0 The first value can be tweaked to increase or decrease the mesh surface roughness.
GlassFlatness 0 0 0 0
PCBoxCenter 0 15 0 0
PCBoxSize 250 80 250 0

FMDL Texture Settings

Role Filename Description
Base_Tex_LIN *.dds (or *_bsm.dds for sorting reasons) This is the role for the main texture you'll use on your model.
NormalMap_Tex_NRM *.dds (or *_nrm.dds for sorting reasons) https://en.wikipedia.org/wiki/Normal_mapping
GlassReflection_Tex_SRGB *.dds (or *_cbm.dds for sorting reasons) The texture will show on the reflection of the mesh.
GlassReflectionMask_Tex_LIN *.dds (or *_rfm.dds for sorting reasons) https://en.wikipedia.org/wiki/Reflection_mapping
Texture probably needs to be DXT1, #000000 results in no reflection and you can set other colors to be reflected.

The Directory for the textures above can be set to:

  • '/Assets/pes16/model/character/face/real/00000/sourceimages/' - for faces
  • '/Assets/pes16/model/character/boots/k0000/' - for boots
  • '/Assets/pes16/model/character/glove/g0000/' - for gloves
  • '/Assets/pes16/model/character/common/000/sourceimages/' - If you want to use a texture that is in a team's common folder.
  • '/Assets/pes16/model/character/common/sourceimages/' - If you don't want to use the Normal texture map, set the filename to 'dummy_nrm.tga' for NormalMap_Tex_NRM.