opensourceBIM / BIMsurfer-before2019

This is the repository of the v1 and v2 version of BIM Surfer. It is not maintained anymore. Find the most recent version on https://github.com/opensourceBIM/BIMsurfer
MIT License
432 stars 195 forks source link

Doubt using DefaultMaterial.js #252

Closed mohanasaraf closed 6 years ago

mohanasaraf commented 6 years ago

I am able to see/update the colours defined for IfcColumn category but the colours defined in the file for other categories doesn't have any effect on the model. I have the exact same categories in my model.

For information - I have created a separate Bim Surfer (V2) project and loading my model from BIM Server.

aothms commented 6 years ago

Those colours are only defaults used as fallback if there is no color defined in the IFC file itself. If you want DefaultMaterials to always have control you might be able to set colors to null e.g. here [1], but I didn't test that.

[1] https://github.com/opensourceBIM/BIMsurfer/blob/master/bimsurfer/src/xeoViewer/xeoViewer.js#L352

mohanasaraf commented 6 years ago

Hi @aothms thanks for such a prompt response. This works. :+1: