簡體   English   中英

如何在Autodesk-forge中更改查看器的畫布

[英]How to change the Canvas of viewer in Autodesk-forge

為了與其他GUI保持一致,我希望在autodesk-viewer中更改畫布的顏色。 但是,我不知道要獲取其API或功能。

嘗試使用viewer.setBackgroundColor 在此處查看其文檔。

viewer.setBackgroundColor(0, 59, 111, 255,255, 255)

或者嘗試以下init選項:

const viewerOptions = {
clearColor: new THREE.Vector3(r/255.0,g/255.0,b/255.0),
clearColorBottom = new THREE.Vector3(r2/255.0,g2/255.0,b2/255.0),
...
}
new Autodesk.Viewing.Private.GuiViewer3D( divElement, viewerOptions)...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM