Code Monkey home page Code Monkey logo

scenekittutorial's Introduction

Update February 2024:: I wrote the first part of this tutorial almost eight years ago. SceneKit is available on Vision OS but is no longer used for immersive 3D rendering. Instead, you have to use RealityKit. But since this information is still very useful, I have created a little E-Book that contains the entire SceneKit Tutorial.

The Tutorial

The code is part of my SceneKit Tutorial Serie: From Zero to Hero.

Screenshot Part 6

Tutorial

  • Chapter 1 - Building a Terrain
  • Chapter 2 - Create a real player game object
  • Chapter 3 - Add life to your terrain
  • Chapter 4 - Implement a Game Loop
  • Chapter 5 - Fly smoothly with CoreMotion
  • Chapter 6 - Finish the game (The missing parts)

Remarks:

  • Code is now updated to be Swift 4 compliant
  • It's imortant to know that the code is not intented to learn Swift, but to understand learning game development concepts
  • Therefore some things (like unwrapping optionals) are just here to make things simpler

The Game

This tutorial is a companion work I do parallel on the development of my next upcoming 3D Game which uses just SceneKit and it's written entirely with Swift 4.

For who is this Tutorial?

It's not for the absolute beginner or novice, because I assume things like Swift notation, trigonometric know-how etc. On the other hand you don't have to learn all at the begin. Like the terrain class RBTerrain. You can use it just like it is and read the code later again when you have more know-how. The most important is that you understand the principles.

Introduction

It's important for me to start directly with a good and solid base which can be used for real games later. So please don't create a project using the Xcode Project wizard but start directly with the Source on GitHub. Also I don't want to build a step by step tutorial which shows each line, but always cover a chapter of the Game and introduce a new component and show the how and why :)

Screenshots

Tutorial Part 5 Screenshot Part 5

Tutorial Part 4 Screenshot Part 4

Tutorial Part 3 Screenshot Part 3

Tutorial Part 2 Screenshot Part 2

Tutorial Part 1 Screenshot Part 1

Follow me on Substack to get the next tutorial: Vision OS: Create an Immersive App with RealityKit

Important: Feel free to use this code in every way you want, but please consider also to give something back to the community.

I don't own the license rights for the assets used in this tutorials, so before you use them for something else then self-learning, please check by yourself the license behind or even better replace it with your own art. Thank you!

scenekittutorial's People

Contributors

rogerboesch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.