Title: Keep name of material even if using default material · Issue #268 · tinyobjloader/tinyobjloader · GitHub
Open Graph Title: Keep name of material even if using default material · Issue #268 · tinyobjloader/tinyobjloader
X Title: Keep name of material even if using default material · Issue #268 · tinyobjloader/tinyobjloader
Description: When the .mtl file is missing, the loader Warns and uses a default material. That is all good - however, it would be nice if the default material got the name that is specified in the usemtl line in the obj-file. In my application I load...
Open Graph Description: When the .mtl file is missing, the loader Warns and uses a default material. That is all good - however, it would be nice if the default material got the name that is specified in the usemtl line i...
X Description: When the .mtl file is missing, the loader Warns and uses a default material. That is all good - however, it would be nice if the default material got the name that is specified in the usemtl line i...
Opengraph URL: https://github.com/tinyobjloader/tinyobjloader/issues/268
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Keep name of material even if using default material","articleBody":"When the .mtl file is missing, the loader Warns and uses a default material. That is all good - however, it would be nice if the default material got the name that is specified in the usemtl line in the obj-file.\r\n\r\nIn my application I load obj files, and assign them materials based on a completely different physical representation, meaning the .mtl file does not make much sense. But I would still want to be able to read the material names, and map them to my specialized materials.\r\n\r\nCurrently I achieve this by creating dummy .mtl files, but it would be nice to not have to do that.\r\n\r\nIf there is an easier way already, please point me in the right direction, thanks!","author":{"url":"https://github.com/mberglundmx","@type":"Person","name":"mberglundmx"},"datePublished":"2020-03-20T15:11:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/268/tinyobjloader/issues/268"}
| 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:93ec0650-37c1-9dd8-498b-f954dc663518 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D17C:9E1F1:246C74E:334605B:6970F61F |
| html-safe-nonce | 457bc6d5b093fdbdcd6a50114e584a182a905562f810ebaa073babb1808b05c0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTdDOjlFMUYxOjI0NkM3NEU6MzM0NjA1Qjo2OTcwRjYxRiIsInZpc2l0b3JfaWQiOiIyMDI2NTI5NzIxMzc2ODk2NTQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6dd3d2fdaf5d31e6c88b9bb00fb73a33903b1e554cbe092643faa3f80d81d9c6 |
| hovercard-subject-tag | issue:585135132 |
| 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/268/issue_layout |
| twitter:image | https://opengraph.githubassets.com/12d401a33ae175d650d1cfc45c5562c04f99278c06000c774f102349126671d9/tinyobjloader/tinyobjloader/issues/268 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/12d401a33ae175d650d1cfc45c5562c04f99278c06000c774f102349126671d9/tinyobjloader/tinyobjloader/issues/268 |
| og:image:alt | When the .mtl file is missing, the loader Warns and uses a default material. That is all good - however, it would be nice if the default material got the name that is specified in the usemtl line i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mberglundmx |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b239ebed690c3053869ff31a3b7597834c25673659d63e7b6fd6a9b5d7853de |
| 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 | aeacfd55297f3de5395c83f200ac35d1f474115e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width