PBR-2-Source: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (clean up, replaced: External Links → External links, See Also → See also)
(Rewrite article to better describe application as of latest version. - Baguettery/koerismo)
Line 1: Line 1:
{{Stub}}
[[File:PBR-2-Source V1 Interface.png|thumb|256px|right|The PBR-2-Source v1.0 interface]]
{{pbr2source|4.1}} is a tool written in {{Python|4}} by '''koerismo''' that is used to port PBR materials to any {{src|4.1}} game, even those without support for a PBR shader. When converting to standard shaders, it uses special algorithms to bake different texture maps into one diffuse texture. When converting to use with a PBR shader, it takes different texture maps and makes an MRAO map. This program automatically creates a fully functional VMT file, with optional reflections, and also can flip the Y of a normal map if it was created in a program using {{maya|4.1|addtext='s}} format instead of {{3dmax|4.1|addtext='s}} format.
 
{{pbr2source|4.1}} is a tool written in {{Python|4}} by '''koerismo''' that can be used to port PBR materials to a wide variety of {{src|4.1}} games, even those without PBR shader support. When converting to standard shaders, it uses several algorithms to approximate roughness and metalness with a combination of [[Phong materials|Phong]] and [[$envmap|$envmap]] reflections. When converting for use with a PBR shader, it simply combines the provided textures. On export, a VMT file will be created that defines the material for use in-game.
 
==Supported Games==
This is the official list of games supported by PBR-2-Source. If a game is not listed here, it may still work, but the program will not be able to account for any game-specific caveats.
* {{ep2|4}} (Requires testing)
* {{portal|4}} (Requires testing)
* {{tf2|4}} (Requires testing)
* {{portal2|4}}
* {{asw|4}} (Requires testing)
* {{gmod|4}}
* {{csgo|4}}
* {{strata|4}}
 
{{clr}}


==See also==
==See also==
Line 7: Line 21:


==External links==
==External links==
* [https://github.com/koerismo/PBR-2-Source/releases/latest Download]
* [https://github.com/koerismo/PBR-2-Source GitHub Repository]
* [https://github.com/koerismo/PBR-2-Source GitHub Repository]
* [https://koerismo.digital/projects#pbr-2-source Koerismo's website Page]
* [https://koerismo.digital/projects#pbr-2-source Koerismo's website Page]

Revision as of 19:11, 4 August 2024

The PBR-2-Source v1.0 interface

PBR-2-Source PBR-2-Source is a tool written in Python Python by koerismo that can be used to port PBR materials to a wide variety of Source Source games, even those without PBR shader support. When converting to standard shaders, it uses several algorithms to approximate roughness and metalness with a combination of Phong and $envmap reflections. When converting for use with a PBR shader, it simply combines the provided textures. On export, a VMT file will be created that defines the material for use in-game.

Supported Games

This is the official list of games supported by PBR-2-Source. If a game is not listed here, it may still work, but the program will not be able to account for any game-specific caveats.

See also

External links