Home > Software engineering >  Why is my .dae file not applying materials correctly in Xcode?
Why is my .dae file not applying materials correctly in Xcode?

Time:01-07

I worked with a freelancer to create a few 3D models and I'm now trying to apply materials to them in Xcode, but some of the models are behaving weirdly. When I import the .dae file, instead of the default gray color models usually have, they are part green, part black, and part transparent. When I try to apply a material, the material only applies to the green parts, and any color seems to blend with the green.

The freelancer is at a loss because he says there shouldn't be anything different about the models that are working and the ones that aren't.

I've attached a screenshot of one of the broken models and one of the working ones, both with the same material applied.

Any help would be much appreciated!

Broken Model Working Model

I tried playing around with different material settings and searching for materials that were secretly applied to broken model, but to no avail.

CodePudding user response:

I fixed this issue by removing a Colors item that was in Geometry Sources. I'm still not sure exactly what it is (I'm a SceneKit noob), but removing it did the trick.

Screenshot of Xcode showing Geometry Sources (before removing Colors item)

  • Related