SVG image is black when added to object. Bug?

  1. I created a default SceneKit project.
  2. I then added an svg image to the art.scnassets folder.
  3. In the ship .scn file I added a plane primitive.
  4. I then in materials for the plane added the svg image as a diffuse texture


The result is that the plane is black . When I click on the svg image it shows perfectly, just not when I put it on an object. I can add the texture.png to the plane just fine. Not sure if this is a bug, or most likely I am doing it wrong, since many other develoers must be using svg images. Thanks for any help


Thanks

Steve

I really doubt that SVG is supported at all, even if it does show correctly in Xcode.

Neither Cocoa or Core Graphics support it, only Webkit, as far as I know.

You could try converting it to PDF as I have heard of people using them in UIKit for buttons, you might get lucky and that would work, but I agree with ELRhino, png or jpg is the more "standard" way to do it.

SVG image is black when added to object. Bug?
 
 
Q