infiniforge v2.2.1
Infiniforge 2.0
InfiniForge is a NodeJS REST API that returns JSON representations of procedurally generated 3D fanstasy swords.
This project was originally made as part of the August 2016 Reddit procedural generation challenge Found here: Reddit Challenge
Whats New
Infiniforge 2.0 features a revamped generation process that is much easier to maintain, and has the ability to produce a wider array of weapons.
How to run Infiniforge server
$ git clone https://github.com/ShiJbey/Infiniforge
$ cd Infiniforge
$ npm install
$ npm run build
$ npm start
- Open your web browser and go to
localhost:8080
Building the Documentation
The documentation is generated using Typedoc
`$ npm run typedoc
Example Usage
// NodeJs Example using Javascript
const Infiniforge = require('infiniforge');
const swordGenerator = Infiniforge.SwordGenerator();
swordGenerator.generate({
"output": "gltf",
"style": "long"
}).then((sword) => {
console.log(sword);
}).catch(console.error);
How are models exported
The server exports 3D meshes as JSON in the glTF 2.0 (GL Transmisssion Format ) by Khronos Group. It is a royalty-free specification for the efficient transmission and loading of 3D scenes and models by applications. The spec is available here. This application uses a modified version of the GLTFExporter provided with ThreeJS.
What can I do with this
Infiniforge output can be saved as a *.gltf file and used in a multitude of projects. Various importers are available from Khronos Group. For example, one could use this in a unity game by taking advantage of the UnityGLTF plugin. Also, glTF files can also be opened on windows 10 using the 3D Viewer application.