Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevinj045/rew.forge3d
3D for rew
https://github.com/kevinj045/rew.forge3d
Last synced: about 5 hours ago
JSON representation
3D for rew
- Host: GitHub
- URL: https://github.com/kevinj045/rew.forge3d
- Owner: kevinJ045
- Created: 2024-06-26T18:42:42.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-29T07:42:52.000Z (4 months ago)
- Last Synced: 2024-07-29T09:16:10.280Z (4 months ago)
- Language: CoffeeScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Forge3D
[Forge3D](https://github.com/kevinJ045/rew.forge3d) is a library to make 3D desktop apps within `rew`. Forge3D is built on top of [the node-3d project](https://github.com/node-3d/node-3d).## Installing
You can install Forge3d from `github:kevinJ045/rew.forge3d` with either [pimmy](https://github.com/kevinJ045/rew.pimmy) or `rew`.
```bash
# pimmy
pimmy -Sa rew.forge3d
# rew
rew install github:kevinJ045/rew.forge3d
# rewpkgs
rew install @rewpkgs/rew.forge3d
```## Basic Usage
```coffee
import * as Forge3D from "rew.forge3d";
{ Mesh, BoxGeometry, Scene } = Forge3D.Weld(){ scene, camera, animate } = Scene::create()
box = new Mesh(new BoxGeometry)
scene.add box
animate()
```## Advanced Usage
```coffee
using imp('rew.forge3d'), (Forge3D) ->
using namespace Forge3D, ->
using Scene, ->
box = new Mesh(new BoxGeometry)
@scene.add box@animate()
```## Nixos Usage
You will have to copy `flake.nix` and `.envrc` to the root of your project and run `direnv allow`.## More information
For more information, read the [Docs for Forge3D](https://kevinj045.github.io/rew-docs/packages/forge3d.html)