Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

SceneKit

From Wikipedia, the free encyclopedia
3D graphics API from Apple
SceneKit
DeveloperApple Inc.
Initial releaseJuly 25, 2012
Operating systemiOS,iPadOS,macOS,tvOS,watchOS,visionOS
TypeSoftware framework
LicenseProprietary
Websitedeveloper.apple.com/scenekit/

SceneKit, sometimes renderedScene Kit, is a3D graphicsapplication programming interface (API) forApple Inc. platforms written inObjective-C. It is a high-level framework designed to provide an easy-to-use layer over the lower level APIs likeOpenGL andMetal.[1] SceneKit maintains anobject basedscene graph, along with aphysics engine,particle system, and links toCore Animation and other frameworks to easily animate that display. SceneKit views can be mixed with other views, for instance, allowing aSpriteKit 2D display to be mapped onto the surface of an object in SceneKit, or a UIBezierPath fromCore Graphics to define the geometry of a SceneKit object. SceneKit also supports import and export of 3D scenes using theCOLLADA format. SceneKit was first released formacOS in 2012, andiOS in 2014.

Basic concepts

[edit]

SceneKit maintains ascene graph based on a root object, an instance of the class SCNScene. The SCNScene object is roughly equivalent to the view objects found in most 2D libraries, and is intended to be embedded in a display container like a window or another view object. The only major content of the SCNScene is a link to the rootNode, which points to an SCNNode object.

SCNNodes are the primary contents of the SceneKit hierarchy. Each Node has a Name, and pointers to optional Camera, Light and Geometry objects, as well as an array of childNodes and a pointer to its own parent. A typical scene will contain a single Scene object pointed to a conveniently named Node (often "root") whose primary purpose is to hold a collection of children Nodes. The children nodes can be used to represent cameras, lights, or the various geometry objects in the Scene.

A simple Scene can be created by making a single SCNGeometry object, typically with one of the constructor classes like SCNBox, a single SCNCamera, one or more SCNLights, and then assigning all of these objects to separate Nodes. A single additional generic Node is then created and assigned to the SCNScene object's rootNode, and then all of the objects are added as children of that rootNode.Nevertheless, the number of lights is limited to 8.

SCNScenes also contain a number of built-inuser interface controls and input/output libraries to greatly ease implementing simple viewers and similar tasks. For instance, setting the Scene's autoenablesDefaultLighting and allowsCameraControl to true, and then adding an object tree read from a COLLADA file will produce viewable content of arbitrary complexity with a few lines of code. The integration withXcode allows the Scene itself to be placed in a window inInterface Builder, without any code at all.

There is a Scenekit archive file format, using the filename extension .scn.

References

[edit]
  1. ^"SceneKit | Apple Developer Documentation".


Stub icon

This computing article is astub. You can help Wikipedia byexpanding it.

Products
Hardware
Mac
iPod
iPhone
iPad
Other
Software
Operating
systems
Services
Financial
Media
Communication
Retail
Support
Other
Companies
Subsidiaries
Acquisitions
Partnerships
Design andmarketing
Legal issues and
labour relations
Related
People
CEOs
Board chairs
Other
executives
Current
Former
Founders
  • Italics indicate discontinued products, services, or defunct companies.
  • Category
Retrieved from "https://en.wikipedia.org/w/index.php?title=SceneKit&oldid=1303150318"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp