Turn a photograph into a rotatable 3D model for a report or presentation.
Embed an interactive 3D model viewer inside a Shiny web app.
Automate batch generation of 3D models from a folder of images.
Check basic metadata like vertex and face count for a generated 3D model.
| yulab-smu/cast3d | hadley/logger | hadley/mylittlepony | |
|---|---|---|---|
| Stars | 2 | 1 | 18 |
| Language | R | R | R |
| Last pushed | — | 2024-10-16 | 2018-11-09 |
| Maintenance | — | Stale | Dormant |
| Setup difficulty | easy | easy | easy |
| Complexity | 2/5 | 2/5 | 1/5 |
| Audience | researcher | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a Tripo API key from an external paid service before any model can be generated.
cast3d is a small R package that turns a photo, or a short text description, into an interactive 3D model you can view and rotate right in a browser or inside a Shiny app. It works by sending the image to Tripo, an external AI service that builds 3D models from images, and getting back a GLB file, which is a common format for storing 3D shapes. Using it is meant to be simple. After installing the package from GitHub, a user sets up their Tripo API key once, then calls a single function that takes a photo and returns a finished 3D model. Behind that one function are smaller pieces that can also be used on their own: one that submits the image to Tripo, one that repeatedly checks whether the model is ready yet, one that downloads the finished .glb file to a local cache, and one that opens an interactive viewer built on the Three.js JavaScript library, complete with mouse controls to orbit around the model. Another function reports basic facts about a model, like how many vertices and faces it has and how large the file is. The API key can be set through the setup function or as a plain environment variable, and the package will pick it up automatically when loaded. For people building web apps with Shiny, cast3d includes ready made components so a generated 3D model can be dropped straight into a Shiny page and rendered as an interactive widget. Internally the package is organized in four layers: a bottom layer that handles authenticated requests to the Tripo API with retries and timeouts, a task layer that creates and polls generation jobs, a model layer that downloads files and reads their metadata, and a top viewer layer that wraps Three.js as an R htmlwidget. The example included in the project turns a photo of a bacteriophage into a viewable 3D model.
An R package that turns a photo into an interactive 3D model you can view in a browser or Shiny app, using the Tripo AI image-to-3D API.
Mainly R. The stack also includes R, Three.js, Shiny.
The README does not state a license, so terms of use are unclear.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.