hou2zi0 / threejs-stl-loader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

threejs-stl-loader

This repository contains a very basic STL loader with controlls and some toon shaders. It is intended as a kind of sandbox in order to approach three.js.

The repo, however, may contain some interesting sections:

  • the toon shader implementation
  • the STL-loader
  • the raycaster (used to generate on click events)

After installing the dependencies via npm, the dev server may be startet with npm run start.

Screenshots

Loaded STL file of a scanned inscription:

loaded STL file

Toon shader applied to emphasize the surface's structure:

toon shader applied

Some suggestions STL files

About

License:MIT License


Languages

Language:JavaScript 100.0%