Half-Life-PBR/readme.en.md

70 lines
3.4 KiB
Markdown
Raw Normal View History

2022-07-30 15:24:44 +02:00
# Repository for Half-Life PBR materials
2022-12-09 16:27:03 +01:00
## If you just want to try the materials
1. Use the command line to clone the repository into a convenient directory by running:
2023-12-01 14:52:12 +01:00
* `git lfs install`
2022-12-09 16:27:03 +01:00
* `git clone https://rtxash.omgwtf.ru/Half-Life-RTX/Half-Life-PBR.git`
2. Do a mount (no rights required in Windows) or symbolic links for the already prepared PBRs. For example:
* for Windows
* `mklink /J "D:\hl1dev\xash3d-fwgs\valve\pbr" "D:\hl1dev\Half-Life-PBR\valve\pbr"`
* for Linux
* `ln -s ~/hl1dev/Half-Life-PBR/valve/pbr ~/hl1dev/xash3d-fwgs/valve/pbr`
3. That's it, the textures will now be automatically loaded into the game in ray tracing mode.
## If you would like to join the remastering of materials
2023-12-16 19:04:40 +01:00
1. At this point you should know [the basics of Git.](https://githowto.com/en) Later there may be a special service where you can upload textures and fix materials without technical knowledge of Git.
2022-12-09 16:27:03 +01:00
2. Ask the provod/w23 for an invitation.
3. After registering, fork Half-Life-PBR to your account (top right "Fork" button).
4. Clone the repositories into a convenient directory:
* `git clone https://rtxash.omgwtf.ru/Half-Life-RTX/Half-Life-prepared-original-textures.git`
2023-11-27 10:39:17 +01:00
* `git clone https://rtxash.omgwtf.ru/Your_account/Half-Life-PBR.git`
2022-12-09 16:27:03 +01:00
5. We make mount points (no rights required in Windows) or symbolic links for PBR's already made. For example:
* for Windows
* `mklink /J "D:\hl1dev\xash3d-fwgs\valve\pbr" "D:\hl1dev\Half-Life-PBR\valve\pbr"`
* for Linux
* `ln -s ~/hl1dev/Half-Life-PBR/valve/pbr ~/hl1dev/xash3d-fwgs/valve/pbr`
2023-11-27 10:39:17 +01:00
6. Find the desired textures for remastering, for example you can find out the names of the textures under the sight through the `r_infotool` command (you can assign to the `u` key through `bind u "toggle r_infotool"`).
2022-12-09 16:27:03 +01:00
7. From `Half-Life-prepared-original-textures` copy to pbr the texture blanks we need, observing the same folder structure and file names.
8. Modify these textures according to the manuals (to be added later).
9. Uncomment the lines of linked materials in the texture material file to enable the new textures.
2023-11-27 10:39:17 +01:00
10. Look at the result in the game. Render supports reloading materials on the fly through the console command `rt_debug_reload_patches` (`bind g rt_debug_reload_patches`), but if you want to change the same texture you need to temporarily add to the material line `"force_reload" "1"` (at the moment render can not determine itself changed texture or not).
2022-12-09 16:27:03 +01:00
2023-11-27 10:51:33 +01:00
11. When the material is ready, commit the change to your fork and put a pull-request in the main repository. If you did everything correctly, your changes will go into the main repository.
12. From time to time you should update your repository to the current state of the main repository:
2022-12-09 16:27:03 +01:00
```bash
2023-11-27 11:02:58 +01:00
git remote add upstream https://rtxash.omgwtf.ru/Half-Life-RTX/Half-Life-PBR # once
2023-11-27 10:51:33 +01:00
git pull upstream master
# if something goes wrong you can reset your repository
2022-12-09 16:27:03 +01:00
git fetch upstream
git checkout master
git reset --hard upstream/master
git push origin master --force
```
## Working with materials
Several articles will be prepared for remastering materials (work with neural networks, Materialize, etc.).
2023-11-27 10:39:17 +01:00
The format of materials is described [here](https://github.com/w23/xash3d-fwgs/wiki/Format-of-PBR-materials).
2022-12-09 16:27:03 +01:00
In the future, all documentation related to remastering will be duplicated in the wiki of this repository.