https://github.com/technologicnick/blueprint-viewer
A 3D viewer for Scrap Mechanic blueprints
https://github.com/technologicnick/blueprint-viewer
Last synced: 2 months ago
JSON representation
A 3D viewer for Scrap Mechanic blueprints
- Host: GitHub
- URL: https://github.com/technologicnick/blueprint-viewer
- Owner: TechnologicNick
- Created: 2020-12-16T20:44:06.000Z (over 5 years ago)
- Default Branch: downgrade-three-r125
- Last Pushed: 2022-01-02T21:41:05.000Z (over 4 years ago)
- Last Synced: 2025-03-22T14:28:10.399Z (over 1 year ago)
- Language: JavaScript
- Size: 413 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# blueprint-viewer
A 3D viewer for Scrap Mechanic blueprints

## What to use it for
You can use it to export to a `.glb` file. This is a file format that contains all models and textures in a single file. You can then upload this to Sketchfab to add the model and textures the workshop page of your blueprint. [Example](https://steamcommunity.com/sharedfiles/filedetails/?id=851799780)
## Installation
I'm using electronforge to create an installation. However I don't know how to use it correctly so when you do `npm run make` it takes a very long time and the result won't load anyway.
It currently only works by cloning the git and running `npm i` to install all the required modules. You can then run it using `npm run start` to start it. It currently loads a hardcoded blueprint which you'll have to change. The path can be found in `/src/renderer/index.js`.
## TODO
* [ ] Cache textures for colors so they're not re-rendered for every blocks/part
* [ ] Add texture coordinates to blocks
* [ ] Add .mesh file loader