为了与我的其他图形用户界面协调,我希望在autodesk-viewer中更改画布的颜色。但是,我不知道如何获取它的API或函数。
发布于 2019-08-05 11:32:36
尝试viewer.setBackgroundColor -请参阅其文档here。
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)...https://stackoverflow.com/questions/57351819
复制相似问题