Title: Wrong colours in glb when DiffuseColor is set · Issue #2509 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Wrong colours in glb when DiffuseColor is set · Issue #2509 · IfcOpenShell/IfcOpenShell
X Title: Wrong colours in glb when DiffuseColor is set · Issue #2509 · IfcOpenShell/IfcOpenShell
Description: I have a wall with light gray colour IFCCOLOURRGB($,0.847058823529,0.8,0.745098039216); IFCSURFACESTYLERENDERING(#97,0.,IFCNORMALISEDRATIOMEASURE(0.45),$,$,$,IFCNORMALISEDRATIOMEASURE(0.6),$,.NOTDEFINED.) In the output gltf, the colour i...
Open Graph Description: I have a wall with light gray colour IFCCOLOURRGB($,0.847058823529,0.8,0.745098039216); IFCSURFACESTYLERENDERING(#97,0.,IFCNORMALISEDRATIOMEASURE(0.45),$,$,$,IFCNORMALISEDRATIOMEASURE(0.6),$,.NOTDE...
X Description: I have a wall with light gray colour IFCCOLOURRGB($,0.847058823529,0.8,0.745098039216); IFCSURFACESTYLERENDERING(#97,0.,IFCNORMALISEDRATIOMEASURE(0.45),$,$,$,IFCNORMALISEDRATIOMEASURE(0.6),$,.NOTDE...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/2509
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wrong colours in glb when DiffuseColor is set","articleBody":"I have a wall with light gray colour\r\n ```\r\nIFCCOLOURRGB($,0.847058823529,0.8,0.745098039216);\r\nIFCSURFACESTYLERENDERING(#97,0.,IFCNORMALISEDRATIOMEASURE(0.45),$,$,$,IFCNORMALISEDRATIOMEASURE(0.6),$,.NOTDEFINED.)\r\n```\r\nIn the output gltf, the colour is a dark gray\r\n```json\r\n\"pbrMetallicRoughness\": {\r\n \"baseColorFactor\": [\r\n 0.38117647058805,\r\n 0.36000000000000004,\r\n 0.3352941176472,\r\n 1.0\r\n ],\r\n \"metallicFactor\": 0\r\n}\r\n```\r\nI guess the DiffuseColor is applied to the colour: `0.847058823529 * 0.45 (the DiffuseColor) == 0.38117647058805`.\r\n\r\nIs this an intended behavior? \r\nIf I understand well, the DiffuseColor should be used by the 3D renderer engine, not pre-computed by `IfcConvert`.\r\n\r\nIf I compare the result with other IFC viewers, the wall is a light gray, not the dark gray outputted by `IfcConvert`\r\n\r\n\r\n[Wall_without_DiffuseColor.ifc.txt](https://github.com/IfcOpenShell/IfcOpenShell/files/9811499/Wall_without_DiffuseColor.ifc.txt)\r\n[Wall_with_DiffuseColor.ifc.txt](https://github.com/IfcOpenShell/IfcOpenShell/files/9811500/Wall_with_DiffuseColor.ifc.txt)\r\n","author":{"url":"https://github.com/Amoki","@type":"Person","name":"Amoki"},"datePublished":"2022-10-18T14:51:45Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/2509"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fbb91e4b-e3b2-7934-c562-fd4707767425 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A276:1C4D26:8B03BF:BEE5A4:6B04ACED |
| html-safe-nonce | 55d02ca7b470e3015153dcd69a038f72cf0c007747308fe7ff95e202c0015db2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjc2OjFDNEQyNjo4QjAzQkY6QkVFNUE0OjZCMDRBQ0VEIiwidmlzaXRvcl9pZCI6IjMwODA5MTUzOTM3OTQ5ODIyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ffb4da9f8c49cfe686a1ab9661f698af3d04f61b794fdecd0b7f18de1d91c95d |
| hovercard-subject-tag | issue:1413368558 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/2509/issue_layout |
| twitter:image | https://opengraph.githubassets.com/31197c4b9e465ab27f5d9ba6aeb4aba629f53c32f550e895aa60789420dcba30/IfcOpenShell/IfcOpenShell/issues/2509 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/31197c4b9e465ab27f5d9ba6aeb4aba629f53c32f550e895aa60789420dcba30/IfcOpenShell/IfcOpenShell/issues/2509 |
| og:image:alt | I have a wall with light gray colour IFCCOLOURRGB($,0.847058823529,0.8,0.745098039216); IFCSURFACESTYLERENDERING(#97,0.,IFCNORMALISEDRATIOMEASURE(0.45),$,$,$,IFCNORMALISEDRATIOMEASURE(0.6),$,.NOTDE... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Amoki |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width