PBR-2-Source: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Stub}}
{{SoftwareBox
{{Todo|Needs screenshots and a {{tl2|Software}} template. Will work on it when I get time, or someone else can do it if they feel obligated to -[[User:Equalizer5118|Equalizer5118, an idiot who cant spel]] ([[User talk:Equalizer5118|talk]]) 12:10, 12 November 2023 (PST)}}
<!-- Basic info -->
<b>PBR-2-Source</b> is a tool written in {{Python|4}} by [https://github.com/koerismo koerismo] that is used to port PBR materials to any Source 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's format instead of 3DS Max's format.
| 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
}}


==See Also==
[[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==
* [[Physically Based Rendering]]
* [[Physically Based Rendering]]
* [[:Category:PBR|Category:PBR]]
* [[:Category:PBR|Category:PBR]]


==External Links==
==External links==
* https://github.com/koerismo/PBR-2-Source - Github Repo
* [https://github.com/koerismo/PBR-2-Source/releases/latest Download]
* https://koerismo.digital/projects#pbr-2-source - Page on koerismo's website
* [https://github.com/koerismo/PBR-2-Source GitHub Repository]
* [https://koerismo.digital/projects#pbr-2-source Koerismo's website Page]
{{sdktools|0}}
{{sdktools|0}}
[[Category:Third Party Tools]]
[[Category:Third Party Tools]]
[[Category:PBR]]
[[Category:PBR]]

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