Closed barnabasmolnar closed 4 years ago
I had a look at https://github.com/xeokit/xeokit-sdk/issues/233 but the issue still seems open as far as the DEFAULT colorize option is concerned.
Tried it with the holter tower model like so:
const holterTower = {
id: 'holter-tower',
src: './xkt/HolterTower.xkt',
metaModelSrc: './xkt/HolterTower.json',
edges: true,
objectDefaults: {
IfcSpace: {
pickable: false,
opacity: 0.2,
},
DEFAULT: {
colorize: [1, 1, 1],
},
},
};
With the result being:
Fixed in b3e6ce3
Hey there,
It seems like that the objectDefaults option isn't quite working as described here: https://github.com/xeokit/xeokit-sdk/wiki/Viewing-BIM-Models-Offline#setting-initial-states-for-ifc-types
This is with the duplex models from the xeokit examples section. The expectation here would be that all elements are white but as you can see on the screenshot above it has these weird pink and grayish colours.
I believe you may have already had an email exchange with @eriadam about this issue but I just wanted to log it here as well with an example.