{"id":1282,"date":"2017-11-03T08:28:51","date_gmt":"2017-11-02T23:28:51","guid":{"rendered":"http:\/\/blue-bear.jp\/kb\/?p=1282"},"modified":"2017-11-03T08:28:51","modified_gmt":"2017-11-02T23:28:51","slug":"swift4-how-to-paste-texture-on-dae-node-on-scenekit","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/swift4-how-to-paste-texture-on-dae-node-on-scenekit\/","title":{"rendered":"[swift4] How to paste texture on dae node on scenekit"},"content":{"rendered":"<p>How to paste texture on dae node on scenekit, is below<\/p>\n<p>Textures\u00a0can be\u00a0overlaid serially,\u00a0 Note to sort.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/blue-bear.jp\/kb\/swift4-how-to-put-dae-file-which-downloaded-from-internet-on-scenekit\/\">[swift4] How to put dae file which downloaded from Internet, on scenekit<\/a><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"\">        let material = SCNMaterial()\r\n        var texturePath = \"texture path\"\r\n        material.diffuse.contents = UIImage(named: texturePath)\r\n        node.geometry?.firstMaterial = material\r\n        \r\n        texturePath = \"texture path2\"\r\n        material.diffuse.contents = UIImage(named: texturePath)\r\n        node.geometry?.materials.append(material)\r\n        \r\n        texturePath = \"texture path3\"\r\n        material.diffuse.contents = UIImage(named: texturePath)\r\n        node.geometry?.materials.append(material)\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to paste texture<\/p>\n","protected":false},"author":1,"featured_media":88,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1282"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=1282"}],"version-history":[{"count":1,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1282\/revisions"}],"predecessor-version":[{"id":1283,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1282\/revisions\/1283"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media\/88"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=1282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=1282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=1282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}