When to use SCNGeometrySource

I am creating a game using SceneKit and I cannot decide whether it is better to store the .dae model in the .scnassets folder and load the .dae model or create the model programmatically at runtime using Vertex / Indexes / Normal.

In case of performance, is it worth creating SCNGeometry manually using SCNGeometrySource and SCNGeometryElement using Vertex / Indexes / Normal? Or just load the model using SCNScene (with the name: "Scenes.scnassets / ModelName.scn")?

+4
source share
2 answers

: DAE, SCN . SCN DAE - . DAE XML (, iOS, scntool Apple). SCN NSObject.

SceneKit Scene Document ( .SCN).

3D-, DAE SCN Xcode ( .dae .scn SceneKit). SCNScene NSSecureCoding.

SCNGeometrySource ( SCNGeometry), . , , , NSSecureCoding. .SCN, .

- ( , MDLAsset).

+1

Hal, SceneKit (.scn).

Collada //.

, Collada , .

, 70 . Collada ( ), 200K.

SceneKit!

+1

Source: https://habr.com/ru/post/1663377/


All Articles