Creo View 安裝與組態指南 > 自訂光照設定 > 光源場景 XML 文件範例
光源場景 XML 文件範例
所安裝的光源場景 XML 文件
LightScenes.xml 中光源場景 XML 文件的安裝版本如下所列。它包含顯示在 Creo View「光照設定」(Lighting Setup) 清單上的三個預先定義光照設定:DEFSingle (「單一光源」(Single Light))、DEFTwoLights (「2 個光源」(2 Lights)) 與 DEFThreeLights (「3 個光源」(3 Lights))。
<?xml version="1.0" encoding="UTF-8"?>
<lightscenes>
<lightscene>
<name locid="DEFSingle"/>
<light name="key" type="direct" relative="view">
<color ambient="#3C3C3C" diffuse="#BABABA" specular="#DCDCDC"/>
<direction x="-60.00" y="15.00" z="5.00"/>
</light>
</lightscene>
<lightscene>
<name locid="DEFTwoLights"/>
<light name="key" type="direct" relative="view">
<color ambient="#141414" diffuse="#BEBEBE" specular="#CCCCCC"/>
<direction x="-60.00" y="15.00" z="5.00"/>
</light>
<light name="fill" type="direct" relative="view">
<color ambient="#050505" diffuse="#969696" specular="#AFAFAF"/>
<direction x="10.00" y="60.00" z="0.00"/>
</light>
</lightscene>
<lightscene>
<name locid="DEFThreeLights"/>
<light name="key" type="direct" relative="view">
<color ambient="#0A0A0A" diffuse="#B4B4B4" specular="#E0E0E0"/>
<direction x="-60.00" y="15.00" z="5.00"/>
</light>
<light name="fill" type="direct" relative="view">
<color ambient="#0A0A0A" diffuse="#CCCCCC" specular="#CCCCCC"/>
<direction x="10.00" y="60.00" z="0.00"/>
</light>
<light name="back" type="direct" relative="view">
<color ambient="#0A0A0A" diffuse="#CCCCCC" specular="#CCCCCC"/>
<direction x="320.00" y="190.00" z="125.00"/>
</light>
</lightscene>
</lightscenes>
含所有光源類型的光源場景 XML 文件
下列 XML 文件顯示含所有光源類型定義的 3 個光源光照設定;directpointspot
<?xml version="1.0" encoding="UTF-8"?>
<lightscenes>
<lightscene>
<name locid="DEFThreeLights">Three Light Setup</name>
<light name="key" type="direct" relative="view">
<color ambient="#333333" diffuse="#CCCCCC" specular="#CCCCCC"/>
<direction x="-60.00" y="-16.10" z="9.34"/>
</light>
<light name="fill" type="point" relative="scene">
<color ambient="#333333" diffuse="#CCCCCC" specular="#CCCCCC"/>
<position x="-150.00" y="150.00" z="600.00"/>
</light>
<light name="back" type="spot" relative="scene">
<color ambient="#0A0A0A" diffuse="#ffb669" specular="#E0E0E0"/>
<position x="71.00" y="66.00" z="24.00"/>
<direction x="-60.00" y="60.00" z="-20.00"/>
<angle>10.00</angle>
<exponent>128</exponent>
</light>
</lightscene>
</lightscenes>
這是否有幫助?