繁体   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