xeokit / xeokit-sdk

Open source JavaScript SDK for viewing high-detail, full-precision 3D BIM and AEC models in the Web browser.
https://xeokit.io
Other
715 stars 286 forks source link

Some сolors not relevant #1122

Closed g-rodigy closed 5 months ago

g-rodigy commented 1 year ago

Describe the bug Green parts with some transparency look more like gray and almost completely transparent.

To Reproduce

const viewer = new Viewer({
    canvasId: "model-canvas",
})
const ifcLoader = new XKTLoaderPlugin(viewer, {})
const sceneModel = ifcLoader.load({
    id: "myModel",
    src: '...',
    loadMetadata: true,
    excludeTypes: ["IfcSpace"],
    edges: true,
});

Ifc and xkt loaders give the same result.

Screenshots 1 Xeokit viewer image

  1. Programs like BimVision, Trimble Connect and IFC.js live example image image image

Desktop (please complete the following information):

Additional context Model_Full_wrong_color.zip Example details ids: 2QtixrV35ClxZwwX2HIYjo, 2PO4udnUH8P84Bns3dnRsc

xeolabs commented 11 months ago

This is likely to be fixed by https://github.com/xeokit/xeokit-sdk/issues/1154 - we were applying color+opacity overrides to certain IFC element types by default (including IfcWindow, IfcSpace and IfcPlate) and have now removed those overrides.

Try again with the latest version of @xeokit/xeokit-sdk