简体   繁体   中英

Forge Viewer poor rendering quality

I'm using the Forge Viewer to display some models converted from IFC (2x3) files. For some of them, the quality is perfect, but for others the rendering is very poor like the picture bellow. 奇怪的锻造渲染

I've tried to export in SVF, SVF2 and same result. I've tired different settings to load the model

let config = {
    keepCurrentModels: true,
    applyScaling: { to: "m" },
    applyRefPoint: true,
    globalOffset: { x: 0, y: 0, z: 0 }}; //make the view flicker on weird rendered model

None of those settings improved the view except globalOffset who makes the view flicker.

Have you any idea how to fix this ?

This kind of deformation of geometries is typically an indication that the model is very far from the origin. So far that the GPU rendering starts running into floating point precision issues.

Loading the model with globalOffset: new THREE.Vector3(0, 0, 0) should help in this case as it would basically force the viewer not to re-apply the original global offset (which is potentially very large) to all geometry vertices. I'm not sure why the view would flicker after using this option, though, that might be a separate issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM