Article Preview
Buy Now
FEATURE
On the Scene
Getting Started with SceneKit
Issue: 18.1 (January/February 2020)
Author: Stefanie Juchmes
Author Bio: Stefanie studied computer science at the university in Bonn. She came in touch with Xojo due to the work of her brother-in-law and got a junior developer position in early 2019 at Monkeybread Software.
Article Description: No description available.
Article Length (in bytes): 13,718
Starting Page Number: 25
Article Number: 18103
Resource File(s):
project18103.zip Updated: 2020-01-02 13:07:52
Related Link(s): None
Excerpt of article text...
SceneKit is a framework from Apple in MacOS and iOS for 3D graphics. For Xojo, the MBS Mac64bit plugin adds the classes and controls for you to use. With these classes, it is possible to work with 3D graphics in Xojo programs. For example, you could use this to create a computer game or to make an animated film. There's no limit to your imagination!
In this course, I want to show you some simple examples that you can easily rebuild by yourself and learn a lot about 3D Design technics. This article is based on the article
Introduction To SceneKit - Part 1 by Silviu Pop from October 2014 who shows how to do it with the Swift programming language.For the examples, you need the MBS Mac64bit plugin. You can download it on our website for testing. Also, you can order a license for it on our website. Due to dependencies between the plugins, please also install Main, MacCloud, MacBase, MacControls, MacCG, MacCocoa, and MacCF plugin parts.
Getting Started
We begin with a new desktop application and add
SCNControlMBS
from the library. We can resize the control to cover the whole window and lock it on all edges.The 3D scenes are displayed by views. Because of this, we need two new properties. The first is
MyScene as SCNSceneMBS
and the second ismyView as SCNViewMBS
.
...End of Excerpt. Please purchase the magazine to read the full article.