Coder Social home page Coder Social logo

skycubestl's Introduction

Screenshot

Alt Text

SkyCubeSTL

Based on work from one of FlexMonkey's awesome blog posts: http://flexmonkey.blogspot.com/2015/07/a-first-look-at-model-ios-sky-cube.html. See FlexMonkey's GitHub for source code: https://github.com/FlexMonkey/SkyCubeTextureDemo.

3D in XCode 7, Swift, Model I/O (MetalKit)

There are two distinct methods of adding a 3D STL model to an XCode app. The first method uses XCode itself to convert the STL to a built-in SCN (SceneKit scene node) file. This is great because you can use XCode's GUI to manipulate the model (merge models, translate, rotate, shadows, materials).

The second method retains the STL model's file extension. This is interesting because Model I/O can also export to STL. However you lose out on the ability to manipulate the model via a familiar GUI - but you gain more control and the ability to create apps that rapidly iterate a model in some way. For example, imagine importing an STL model, applying some filter to it, and then exporting it back to the user - just like VSCOcam does for images! You could make a mobile app that lets people play with 3D art on their iPhone!

My Process

The model from 3D Warehouse: https://3dwarehouse.sketchup.com/model.html?id=3045229f7869e46f1756ffd6185bba#!topic/3dwh/sCwqS376OUg.

I used the first process described above, for the sake of time. Specifically, I used SketchUp to break up the file into different systems and to export to a 3DS file. Then in 3ds Max I could import the 3DS file, save it as a MAX file, and finally add any solid material. Then I exported to STL and added it to my XCode project. Finally, I converted each STL into a SCN file and merged them together.

skycubestl's People

Contributors

robotjsorg avatar

Stargazers

 avatar Jan Anstipp avatar Alexander Shinkarenko avatar  avatar Greg Cotten avatar  avatar  avatar Justin Kaufman avatar Vincent Smithers avatar Create The Imaginable avatar Jose Marcelino avatar 维尼的小熊 avatar Marcus avatar Wojtek Lukaszuk avatar Bob Edmonston avatar simon gladman avatar

Watchers

James Cloos avatar Alexander Shinkarenko avatar Marcus avatar Create The Imaginable avatar  avatar

skycubestl's Issues

The first method uses XCode itself to convert the STL to a built-in SCN (SceneKit scene node) file

Hi I am new to Metal, SceneKit

Wanted to render 3d objects as shown in you gif demo.
I just download your code and run on the device its working perfectly in the device.

I found below in your Readme.md

There are two distinct methods of adding a 3D STL model to an XCode app. The first method uses XCode itself to convert the STL to a built-in SCN (SceneKit scene node) file. This is great because you can use XCode's GUI to manipulate the model (merge models, translate, rotate, shadows, materials).

I have STL object and want to load it. How can achieve below point?

The first method uses XCode itself to convert the STL to a built-in SCN (SceneKit scene node) file.

Any help is appreciated.
Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.