Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Material for the model is all black #1

Open
ohthatsjhall opened this issue Jan 9, 2018 · 3 comments
Open

Material for the model is all black #1

ohthatsjhall opened this issue Jan 9, 2018 · 3 comments

Comments

@ohthatsjhall
Copy link

ohthatsjhall commented Jan 9, 2018

Tried adding the model to my SceneKit view, however the material is completely black, which I assume is because the material has not been assigned to the model. I tried running on the SceneKit sample project and got the same result.

I've tried with a few different assets and I will get a light gray or solid black mesh.

Any suggestions?

@nirav
Copy link

nirav commented Jan 9, 2018

Do the assets that you're downloading have an MTL file?

@ohthatsjhall
Copy link
Author

Yes I am using the Poly API. Here are a few examples of urls containing the .mtl that I've tried

https://poly.googleapis.com/downloads/0t2ZYRBsqX-/d6v3eGvAZ8h/Lighthouse%20singly.mtl
https://poly.googleapis.com/downloads/eke7qcu_FR2/50NqG3OK3rn/Hamburger.mtl
https://poly.googleapis.com/downloads/5vbJ5vildOq/5LkfC03mUMN/materials.mtl

the last url is the one provided in the sample project.

@nirav
Copy link

nirav commented Jan 24, 2018

Looking into this! Apologies for the delay.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants