An open API service indexing awesome lists of open source software.

https://github.com/codeadamca/nodejs-three-ldr

Displaying a Callada file on a HTML page.
https://github.com/codeadamca/nodejs-three-ldr

Last synced: 6 months ago
JSON representation

Displaying a Callada file on a HTML page.

Awesome Lists containing this project

README

          

# THREE.js and LDraw Files

This repos is a basic example of displaying an `.ldr` file in a web page. Follow these steps to get the example code working:

1. Install THREE.js using the instructions from the [Installation](https://threejs.org/docs/index.html#manual/en/introduction/Installation) documentation:

```
npm install --save three
npm install --save-dev vite
npx vite --host
```

2. Convert your `.ldr` file crearted using [BrickLink Studio]() to a packed `.mp` file. Instrustion are available on my [nodejs-packing-mpd](https://github.com/codeadamca/nodejs-packing-mpd) repo.

3. Use the example for from the [LDrawLoader](https://threejs.org/docs/#examples/en/loaders/LDrawLoader) documentation.

4. Create a `dist` version by running:

```
npx vite build
```

> [!NOTE]
> This repo is a work in progress.

---

## Project Stack

This project uses [Node.js](https://nodejs.org/en) and [THREE.js](https://threejs.org/).

---

## Repo Resources

* [THREE.js](https://threejs.org/)