# Scene Kit Tutorial with Swift Part 2: Nodes

**URL:** <https://forums.kodeco.com/t/scene-kit-tutorial-with-swift-part-2-nodes/10622>\
**Category:** 🎓 Courses & Articles\
**Created:** [March 22, 2016, 1:35pm UTC](https://forums.kodeco.com/t/scene-kit-tutorial-with-swift-part-2-nodes/10622 "2016-03-22T13:35:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrislanguage](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/chrislanguage/32/104184_2.png) [@chrislanguage](https://forums.kodeco.com/u/chrislanguage)\
**Post date:** [March 22, 2016, 1:35pm UTC](https://forums.kodeco.com/t/scene-kit-tutorial-with-swift-part-2-nodes/10622/1 "2016-03-22T13:35:34Z")

</div>

In this 5-part Scene Kit tutorial series, you'll learn how to make your first 3D iOS game: a game like Fruit Ninja called Geometry Fighter!

* * *
 This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/1260-scene-kit-tutorial-with-swift-part-2-nodes](https://www.raywenderlich.com/1260-scene-kit-tutorial-with-swift-part-2-nodes)

---

<div class="post-metadata">

**Author:** ![sabi](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@sabi](https://forums.kodeco.com/u/sabi)\
**Post date:** [March 22, 2016, 3:42pm UTC](https://forums.kodeco.com/t/scene-kit-tutorial-with-swift-part-2-nodes/10622/2 "2016-03-22T15:42:39Z")

</div>

very good explanation and step by step

---

<div class="post-metadata">

**Author:** ![alemohamad](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/alemohamad/32/110119_2.png) [@alemohamad](https://forums.kodeco.com/u/alemohamad)\
**Post date:** [March 23, 2016, 3:28am UTC](https://forums.kodeco.com/t/scene-kit-tutorial-with-swift-part-2-nodes/10622/3 "2016-03-23T03:28:42Z")

</div>

This is so cool! I have to make some time to test this.  
And because of this, the book must be amazing!

---

<div class="post-metadata">

**Author:** ![littlepeculiar](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/littlepeculiar/32/102075_2.png) [@littlepeculiar](https://forums.kodeco.com/u/littlepeculiar)\
**Post date:** [January 13, 2017, 2:11am UTC](https://forums.kodeco.com/t/scene-kit-tutorial-with-swift-part-2-nodes/10622/4 "2017-01-13T02:11:26Z")

</div>

great tutorial. Very cool.  
I’m having an issue setting the background image.  
scnScene.background.contents = “GeometryFighter.scnassets/Textures/Background\_Diffuse.png”  
displays a black image not blue. Please advise.

---

<div class="post-metadata">

**Author:** ![lizhaobomb](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@lizhaobomb](https://forums.kodeco.com/u/lizhaobomb)\
**Post date:** [April 19, 2017, 9:07am UTC](https://forums.kodeco.com/t/scene-kit-tutorial-with-swift-part-2-nodes/10622/5 "2017-04-19T09:07:31Z")

</div>

i have the same problem …

---

<div class="post-metadata">

**Author:** ![alienmethod](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/alienmethod/32/70835_2.png) [@alienmethod](https://forums.kodeco.com/u/alienmethod)\
**Post date:** [April 27, 2017, 6:17pm UTC](https://forums.kodeco.com/t/scene-kit-tutorial-with-swift-part-2-nodes/10622/6 "2017-04-27T18:17:26Z")

</div>

Same problem here. I resolved it by looking at the documentation for SCNScene. There is a Note saying “For best results, place scene files that ship in your app bundle in a folder with the .scnassets extension, and place image files referenced as textures from those scenes in an Asset Catalog…”  
So - here’s what I did:

1. Open Assets.xcassets and then drag Background\_Diffuse.png into the asset list.
2. Adjust the line in setupScene() so that it creates a new UIImage from that asset:  
scnScene.background.contents = UIImage(named: “Background\_Diffuse”)

Run the app. It should show the blue background now. This worked for me.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [October 24, 2017, 3:56pm UTC](https://forums.kodeco.com/t/scene-kit-tutorial-with-swift-part-2-nodes/10622/7 "2017-10-24T15:56:02Z")

</div>

This tutorial is more than six months old, so questions regarding it are no longer supported for the moment. We will update it as soon as possible. Thank you! :]

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [October 24, 2017, 3:56pm UTC](https://forums.kodeco.com/t/scene-kit-tutorial-with-swift-part-2-nodes/10622/8 "2017-10-24T15:56:07Z")

</div>


