dmsurti / AssimpKit

A library (macOS, iOS) that converts the files supported by Assimp to Scene Kit scenes.
http://assimpkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
474 stars 54 forks source link

Serialization #17

Closed dmsurti closed 7 years ago

dmsurti commented 7 years ago

Add support for SCNAssimpScene serialization by implementing NSCoding protocol methods. We need to do this for the animations SCNAssimpAnimation objects which hold all CAKeyframeAnimation per channel's position, rotation and scale in the animation.

dmsurti commented 7 years ago

This won't be fixed for the following reason:

  1. The main advantage of serialization using .scn format is the size compression. Loading time is not a critical parameter in the context of this library.
  2. LZMA SDK gives an almost same compression ratio. See screenshot. astroBoyWalk_uncr.dae is the uncompressed original .dae file, while astroBoy_walk.dae is the one converted by SceneKit into an internal compressed format, available when you add a .dae file to the .scnassets folder.

screenshot 2016-12-26 18 54 47