鍍金池/ 問答/云計算  網(wǎng)絡安全/ Autodesk Forge Viewer修改默認渲染設置

Autodesk Forge Viewer修改默認渲染設置

viewer默認的渲染樣式和設置里的渲染樣式都不太適合我的需求,有什么辦法能設置viewer的默認渲染效果嗎?比如下面兩張圖,第一張是Autodesk Forge Viewer的默認渲染效果,第二張圖是其他軟件在瀏覽器的渲染效果,我想設置Autodesk Forge Viewer的默認效果和第二張圖一樣的效果,該怎么設置呢?
第一張圖:Autodesk Forge Viewer的渲染效果
第二張圖:其他軟件在瀏覽器上的渲染效果

回答
編輯回答
背叛者

在viewer里面找到了相關的代碼,可在這里進行修改設置,也可自己自定義
{

        name: "Sharp Highlights", // localized in viewer-environments.loc.json
        path: "SharpHighlights",
        type: "logluv",
        tonemap: 1,
        // illuminance currently is not used elsewhere in LMV, its effect is folded into E_bias.
        //illuminance: 1000.0,
        E_bias: -9.0, // EV 9.526, 1000.0 lux (target)
        directLightColor: [0.5, 0.5, 0.5],
        ambientColor: [0.25 / 8, 0.25 / 8, 0.25 / 8],
        lightMultiplier: 0.0,
        lightDirection: [0.5, -0.2, -0.06],
        bgColorGradient: bg["Photo Booth"],
        darkerFade: true,
        rotation: 0.0
    },
2017年3月18日 10:13