Title: Incorrect loading of vertex color when there is none · Issue #380 · tinyobjloader/tinyobjloader · GitHub
Open Graph Title: Incorrect loading of vertex color when there is none · Issue #380 · tinyobjloader/tinyobjloader
X Title: Incorrect loading of vertex color when there is none · Issue #380 · tinyobjloader/tinyobjloader
Description: Describe the issue Tinyobjloader incorrectly populates the vertex color attribute with default values when vertex color does not exist in the file. It seems to be by design as shown in the comments below: tinyobjloader/tiny_obj_loader.h ...
Open Graph Description: Describe the issue Tinyobjloader incorrectly populates the vertex color attribute with default values when vertex color does not exist in the file. It seems to be by design as shown in the comments...
X Description: Describe the issue Tinyobjloader incorrectly populates the vertex color attribute with default values when vertex color does not exist in the file. It seems to be by design as shown in the comments...
Opengraph URL: https://github.com/tinyobjloader/tinyobjloader/issues/380
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect loading of vertex color when there is none","articleBody":"**Describe the issue**\r\nTinyobjloader incorrectly populates the vertex color attribute with default values when vertex color does not exist in the file. It seems to be by design as shown in the comments below:\r\n\r\nhttps://github.com/tinyobjloader/tinyobjloader/blob/cab4ad7254cbf7eaaafdb73d272f99e92f166df8/tiny_obj_loader.h#L517-L521\r\n\r\nHowever, I want to argue that this behavior is really confusing (especially during debugging). It would better to leave color field empty if no vertex color exists in the file.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. Load any obj file that does not contain color. e.g.\r\n```\r\nv 1 0 0\r\nv 0 1 0\r\nv 0 0 1\r\n```\r\n\r\n**Expected behavior**\r\nTinyobject should not populate the color attribute.\r\n\r\n","author":{"url":"https://github.com/qnzhou","@type":"Person","name":"qnzhou"},"datePublished":"2024-03-22T20:28:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/380/tinyobjloader/issues/380"}
| 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:750e99c0-96b6-7bda-e160-90ecee3388a1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 897A:2F6E42:1686433:1ED8C48:6964B1EE |
| html-safe-nonce | 9e4482040cfd76bfc6bd7dbc366c070ce487cbec96a8d3a125c7b2c9921cb6c9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTdBOjJGNkU0MjoxNjg2NDMzOjFFRDhDNDg6Njk2NEIxRUUiLCJ2aXNpdG9yX2lkIjoiNTAwMjUyNjgyMDA2NTkxNTM3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2028a52c49c93397c5ca53954b789637a245deae7407e553f2522c88c94ab57a |
| hovercard-subject-tag | issue:2203259186 |
| 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/tinyobjloader/tinyobjloader/380/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e9abbf385d5ee0b99ccf01c51ce2ef5638ed2a295f0a4dc0879f7d6a7b16ca1b/tinyobjloader/tinyobjloader/issues/380 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e9abbf385d5ee0b99ccf01c51ce2ef5638ed2a295f0a4dc0879f7d6a7b16ca1b/tinyobjloader/tinyobjloader/issues/380 |
| og:image:alt | Describe the issue Tinyobjloader incorrectly populates the vertex color attribute with default values when vertex color does not exist in the file. It seems to be by design as shown in the comments... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | qnzhou |
| hostname | github.com |
| expected-hostname | github.com |
| None | 15579c46431b7fd25941c3b09010f74fd1890c7a35226839bbbf40ce70fb3057 |
| turbo-cache-control | no-preview |
| go-import | github.com/tinyobjloader/tinyobjloader git https://github.com/tinyobjloader/tinyobjloader.git |
| octolytics-dimension-user_id | 61176939 |
| octolytics-dimension-user_login | tinyobjloader |
| octolytics-dimension-repository_id | 5421296 |
| octolytics-dimension-repository_nwo | tinyobjloader/tinyobjloader |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 5421296 |
| octolytics-dimension-repository_network_root_nwo | tinyobjloader/tinyobjloader |
| 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 | 499abb347cb197601d399c346cfeb4b3fa135d5c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width