Donnerstag, 24. Juli 2014

Scene Kit dragging / picking demo for OS X / iOS

I just published this little demo of Scene Kit, where we can drag around a 3d model and select individual parts. For OS X and iOS using Swift.

The code in probably self explanatory (if not, I'm sorry...). The 3d program needs to give each object a name, which we use to identify what we picked - in the case of this example, we use it to show the label at the bottom "Right foot" etc. The model has to be exported to .dae.

In Blender the name of the object is here:




The iOS version is laggy, at least in the simulator, don't think it's related with the code or my super complex 3d model ;). It might be a bug of the beta.

Keine Kommentare:

Kommentar veröffentlichen