Porting Content (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎top: Unicodifying)
(some notes on baking)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{EntityTabs|Porting Content|goldsrc=1|source=1|source2=1|main = Porting Content (GoldSrc)}}
{{tabs|Porting Content|goldsrc=1|source=1|source2=1|main = Porting Content (GoldSrc)}}
{{draft}}{{stub}}
{{draft}}{{stub}}
== To {{src|4}} ==
== From {{src|4}} ==
{{todo}}
{{todo}}
=== Materials ===
Materials will need to be baked into a single [[diffuse]]. First, convert the normal map into a greyscale detail texture, following the guide [[User:SirYodaJedi/Creating detail textures from normal maps for GoldSrc|here]]. Then, multiply the [[$envmaptint]] onto the [[$envmapmask]] (remember to exponentiate {{code|x^2.2}} for model materials). Now create layers for each part of the texture in an image editor:
* The [[$basetexture]] should be the bottom layer.
* The greyscale ex-normal map should be set to "overlay" blend mode. On rare occasion, this will make the texture's ambient occlusion less defined, in which case this layer should be omitted.
* The tinted envmapmask should be set to "dodge" or "addition", and may need tweaking of opacity. If this is too aggressive, it can be ommitted.


== To {{src2|4}} ==
[[Phong]] highlights can be faked on models by using the "Chrome and Fake Specular" trick described [https://the303.org/tutorials/gold_research.htm on this page].
 
== From {{src2|4}} ==
{{todo}}
{{todo}}

Latest revision as of 19:18, 12 April 2025

Icon-under construction-blue.png
This is a draft page. It is a work in progress open to editing by anyone.
Remember to check for any notes left by the tagger at this article's talk page.

Stub

This article or section is a stub. You can help by expanding it.

From Source Source

[Todo]

Materials

Materials will need to be baked into a single diffuse. First, convert the normal map into a greyscale detail texture, following the guide here. Then, multiply the $envmaptint onto the $envmapmask (remember to exponentiate x^2.2 for model materials). Now create layers for each part of the texture in an image editor:

  • The $basetexture should be the bottom layer.
  • The greyscale ex-normal map should be set to "overlay" blend mode. On rare occasion, this will make the texture's ambient occlusion less defined, in which case this layer should be omitted.
  • The tinted envmapmask should be set to "dodge" or "addition", and may need tweaking of opacity. If this is too aggressive, it can be ommitted.

Phong highlights can be faked on models by using the "Chrome and Fake Specular" trick described on this page.

From Source 2 Source 2

[Todo]