René's URL Explorer Experiment


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

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fbb91e4b-e3b2-7934-c562-fd4707767425
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA276:1C4D26:8B03BF:BEE5A4:6B04ACED
html-safe-nonce55d02ca7b470e3015153dcd69a038f72cf0c007747308fe7ff95e202c0015db2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjc2OjFDNEQyNjo4QjAzQkY6QkVFNUE0OjZCMDRBQ0VEIiwidmlzaXRvcl9pZCI6IjMwODA5MTUzOTM3OTQ5ODIyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacffb4da9f8c49cfe686a1ab9661f698af3d04f61b794fdecd0b7f18de1d91c95d
hovercard-subject-tagissue:1413368558
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/2509/issue_layout
twitter:imagehttps://opengraph.githubassets.com/31197c4b9e465ab27f5d9ba6aeb4aba629f53c32f550e895aa60789420dcba30/IfcOpenShell/IfcOpenShell/issues/2509
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/31197c4b9e465ab27f5d9ba6aeb4aba629f53c32f550e895aa60789420dcba30/IfcOpenShell/IfcOpenShell/issues/2509
og:image:altI 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAmoki
hostnamegithub.com
expected-hostnamegithub.com
Nonef1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1
turbo-cache-controlno-preview
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/2509#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F2509
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F2509
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/2509
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/2509
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/2509
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests938 (938)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
https://github.com/IfcOpenShell/IfcOpenShell
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/2509
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/2509
Wrong colours in glb when DiffuseColor is sethttps://github.com/IfcOpenShell/IfcOpenShell/issues/2509#top
IfcConverthttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcConvert%22
https://github.com/Amoki
Amokihttps://github.com/Amoki
on Oct 18, 2022https://github.com/IfcOpenShell/IfcOpenShell/issues/2509#issue-1413368558
Wall_without_DiffuseColor.ifc.txthttps://github.com/IfcOpenShell/IfcOpenShell/files/9811499/Wall_without_DiffuseColor.ifc.txt
Wall_with_DiffuseColor.ifc.txthttps://github.com/IfcOpenShell/IfcOpenShell/files/9811500/Wall_with_DiffuseColor.ifc.txt
Moulthttps://github.com/Moult
on Oct 18, 2022https://github.com/IfcOpenShell/IfcOpenShell/issues/2509#event-7615900010
Add support for normalised ratio diffuse colours. See #2509.https://github.com/IfcOpenShell/IfcOpenShell/commit/a5aa970977b03bd1e4b88f6de948a8121619ddd6
#2509https://github.com/IfcOpenShell/IfcOpenShell/issues/2509
a5aa970https://github.com/IfcOpenShell/IfcOpenShell/commit/a5aa970977b03bd1e4b88f6de948a8121619ddd6
https://github.com/Moult
Moulthttps://github.com/Moult
on Oct 18, 2022https://github.com/IfcOpenShell/IfcOpenShell/issues/2509#issuecomment-1283095119
Moulthttps://github.com/Moult
IfcConverthttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcConvert%22
on Oct 18, 2022https://github.com/IfcOpenShell/IfcOpenShell/issues/2509#event-7615939047
https://github.com/aothms
aothmshttps://github.com/aothms
on Oct 19, 2022https://github.com/IfcOpenShell/IfcOpenShell/issues/2509#issuecomment-1283537589
IfcOpenShell/src/ifcgeom/IfcGeom.cpphttps://github.com/IfcOpenShell/IfcOpenShell/blob/4cccfd08d3f314d58dcdf5fde62dfc8a053d3fa1/src/ifcgeom/IfcGeom.cpp#L4092-L4095
4cccfd0https://github.com/IfcOpenShell/IfcOpenShell/commit/4cccfd08d3f314d58dcdf5fde62dfc8a053d3fa1
https://github.com/Amoki
Amokihttps://github.com/Amoki
on Oct 19, 2022https://github.com/IfcOpenShell/IfcOpenShell/issues/2509#issuecomment-1283699648
https://github.com/Moult
Moulthttps://github.com/Moult
on Oct 19, 2022https://github.com/IfcOpenShell/IfcOpenShell/issues/2509#issuecomment-1283708696
petruconduraruhttps://github.com/petruconduraru
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
on Jul 10, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/2509#event-27819685176
petruconduraruhttps://github.com/petruconduraru
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
on Oct 7, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/2509#event-32710270805
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/2509
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/2509
IfcConverthttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcConvert%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.