This article's documentation is for anything that uses the Source engine. Click here for more information.

PPL: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (remove "possibly"; it's been done)
m (non-discord mirror)
Line 6: Line 6:
{{modernImportant|To account for potential discrepancies between [[UV map]]s of [[$lod|LoD]] models, PPL files contain a lightmap for each LoD model. This can greatly increase the file size of a map if a lightmapped model has several LoD models!}}
{{modernImportant|To account for potential discrepancies between [[UV map]]s of [[$lod|LoD]] models, PPL files contain a lightmap for each LoD model. This can greatly increase the file size of a map if a lightmapped model has several LoD models!}}


A PPL file can be converted to uncompressed [[VTF]](s) using [https://cdn.discordapp.com/attachments/235121530609205249/797996930956656680/proptexelvtf.exe Ficool2's proptexelvtf.exe], which can then be used for {{ent|$lightmap}}.
A PPL file can be converted to uncompressed [[VTF]](s) using <!--[https://cdn.discordapp.com/attachments/235121530609205249/797996930956656680/proptexelvtf.exe -->[https://files.gamebanana.com/bitpit/proptexelvtf.exe Ficool2's proptexelvtf.exe], which can then be used for {{ent|$lightmap}}.


== See also ==
== See also ==

Revision as of 17:00, 5 May 2024

Stub

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

(only in Source 2013 Multiplayer) (also in Garry's Mod)

PPL files are lightmaps (per-pixel lighting) generated by VRAD for prop_static models that have generatelightmaps enabled. Unlike brush lightmaps, PPL files are always uncompressed RGB888 (24-bit Wikipedia icon SDR), even when the map is compiled in HDR mode.

Note.pngNote:Being always RGB888 is a VRAD limitation, not a format or engine one; a custom compiler could make DXT1, I8, or even RGBA16161616F lightmaps, and these would be properly loaded by the game.
Icon-Important.pngImportant:To account for potential discrepancies between UV maps of LoD models, PPL files contain a lightmap for each LoD model. This can greatly increase the file size of a map if a lightmapped model has several LoD models!

A PPL file can be converted to uncompressed VTF(s) using Ficool2's proptexelvtf.exe, which can then be used for $lightmap.

See also

  • VHV, the equivalent for vertex-lit props