« Back to jordanbalagot.com
Google Cardboard STL Viewer

Posted on Wednesday 10 June 2015

Here’s a non-music related post. I got a google cardboard kit last night and it’s very cool. I see a lot of potential for it — finally I can play with a cheap version of the Oculus Rift. The google demo is fun, and the immersive ‘Sisters’ game is terrifying and fun. Seeing google’s chrome experiments for cardboard to use a mobile web browser for VR blew me away.

Tonight, I whipped up a quick hack for viewing an STL file, common for 3D printing, with google cardboard using three.js:
http://browserdj.com/stlviewer/

wedding robots stl viewer

It comes with a wedding cake-topper STL file my wife and I designed.

On desktop, you will see the model spinning. On mobile or in cardboard, you will just see white initially – it relies on your phone’s orientation, so you’ll need to find the model — it may be behind you.

It uses Jaanga’s Cardboard demo:
https://github.com/jaanga/cookbook/tree/gh-pages/cardboard/

The github source is here:
https://github.com/jordan314/Cardboard-STL-Viewer


2 Comments for 'Google Cardboard STL Viewer'

  1.  
    klz
    February 12, 2017 | 10:49 am
     

    Hi! good job! Any new improvements? I need something like this to see big .stl files with the cardboard, mainly medical 3d models (Stl files having millons of triangles)
    By the way, your music is fantastic!

  2.  
    February 13, 2017 | 2:53 am
     

    Thanks very much! I haven’t played with this since I first wrote it unfortunately. Is three.js choking on huge files? Maybe you can simplify the mesh with meshlab or something.

Leave a comment

(required)

(required)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post | TrackBack URI