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)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Stub}}
{{SoftwareBox
{{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.
<!-- Basic info -->
| title = {{pbr2source|4}}
<!-- Details -->
| developer = koerismo<br>JJL772
| initial_release = Dec 21, 2021
| stable_release = May 29, 2025<br><small>(2.0.9-beta)</small>
| written_in = python
| type = Texture Converter
| distribution = Free and open-source
| website = [https://github.com/koerismo/PBR-2-Source GitHub Repository]
| download = [https://github.com/koerismo/PBR-2-Source/releases/latest Download]
| version = 2.0.9-beta
<!-- Operating system(s)-->
| windows = 1
<!-- Target engine(s)-->
| source = 1
}}
 
[[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 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 40:


==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]

Latest revision as of 04:51, 4 November 2025

Developer(s)
koerismo
JJL772
Initial release
Dec 21, 2021
Stable release
May 29, 2025
(2.0.9-beta)
Written in
Python
Operating system
Windows
Type
Texture Converter
Target engine(s)
Source
Distribution
Free and open-source
Download
Version
2.0.9-beta
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