Template:Archived Page History/Warning model lightmaps: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Multiple materials don't work)
Line 1: Line 1:
Shows the following warnings:
Shows the following warnings:
<onlyinclude><!--
<onlyinclude><!--
-->{{ModernWarning|Models use the same UVs for lightmaps as [[$basetexture]]; as such, lightmapping on models with overlapping or tiling UVs may not appear as intended!<!--
-->{{warning|Models use the same UVs for lightmaps as [[$basetexture]]; as such, lightmapping on models with overlapping or tiling UVs may not appear as intended!}}<!--
    -->{{modernConfirm|Do models with multiple materials work properly, or is one lightmap used for all materials?}}<!--
-->{{warning|Lightmaps for models with multiple materials do not compile properly in [[VRAD]]!{{clarify}}<!--
    -->{{workaround|Define a pre-baked {{ent|$lightmap}} in the [[VMT]] of the [[VertexLitGeneric]] material.}}<!--
-->}}<!--
-->}}<!--
-->{{ModernWarning|Model lightmaps generated with [[VRAD]] are compiled as RGB888, which can result in noticeable color banding when brightly lit in HDR mode.<!--
-->{{warning|Model lightmaps generated with [[VRAD]] are compiled as RGB888, which can result in noticeable color banding when brightly lit in HDR mode.<!--
     -->{{workaround|<ul><li>Define a pre-baked RGBA16f {{ent|$lightmap}} in the [[VMT]] of the [[VertexLitGeneric]] material.<li>Increase lightmap resolution (results may vary).</ul>}}<!--
     -->{{workaround|<ul><li>Define a pre-baked RGBA16f {{ent|$lightmap}} in the [[VMT]] of the [[VertexLitGeneric]] material.<li>Increase lightmap resolution (results may vary).</ul>}}<!--
-->}}<!--
-->}}<!--
--></onlyinclude>
--></onlyinclude>

Revision as of 07:20, 27 June 2023

Shows the following warnings:

Warning.pngWarning:Models use the same UVs for lightmaps as $basetexture; as such, lightmapping on models with overlapping or tiling UVs may not appear as intended!
Warning.pngWarning:Lightmaps for models with multiple materials do not compile properly in VRAD![Clarify]
PlacementTip.pngWorkaround:Define a pre-baked $lightmap in the VMT of the VertexLitGeneric material.
Warning.pngWarning:Model lightmaps generated with VRAD are compiled as RGB888, which can result in noticeable color banding when brightly lit in HDR mode.
PlacementTip.pngWorkaround: