GithubHelp home page GithubHelp logo

pablo-mayrgundter / headless-three Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bldrs-ai/headless-three

0.0 0.0 0.0 43.29 MB

Library for headless rendering of three.js scenes.

JavaScript 100.00%

headless-three's Introduction

headless-three

This library aims for headless rendering of three.js scenes based on models by common CAD formats.

Currently supports IFC models.

Setup

This library uses a custom build of web-ifc-three. Clone both as sibling directories, then build in turn.

The relative paths matter and are harcoded.

> git clone https://github.com/bldrs-ai/web-ifc-three   # a custom fork of web-ifc-three
> git clone https://github.com/bldrs-ai/headless-three
> cd web-ifc-three/web-ifc-three
web-ifc-three/web-ifc-three> npm i
web-ifc-three/web-ifc-three> node build.esb.js
Build succeeded.
web-ifc-three/web-ifc-three> cd dist
web-ifc-three/web-ifc-three/dist> npm pack
web-ifc-three/web-ifc-three/dist> ls web-ifc-three-0.0.134.tgz
web-ifc-three-0.0.134.tgz
web-ifc-three/web-ifc-three/dist> cd ../../../headless-three
headless-three> yarn install

Run the tool

# Grab the coords from a model on Bldrs, e.g. the default homepage:
#   https://bldrs.ai/share/v/p/index.ifc#c:-150.147,-85.796,167.057,-32.603,17.373,-1.347
#
# Then add them as an arg after the model filename:
headless-three> node src/headless.js index.ifc -150.147,-85.796,167.057,-32.603,17.373,-1.347 && open screenshot.png

Example render of index.ifc: index.ifc rendered to screenshot.png

Design

dataflow

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.