Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 18.1 ('SceneKit')
Instant purchase and download via GumRoad!

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):

Download Icon 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 is myView as SCNViewMBS.

...End of Excerpt. Please purchase the magazine to read the full article.