Forge3D is a library to make 3D desktop apps within rew. Forge3D is built on top of the node-3d project.
You can install Forge3d from github:kevinJ045/rew.forge3d with either pimmy or rew.
# pimmy
pimmy -Sa rew.forge3d
# rew
rew install github:kevinJ045/rew.forge3d
# rewpkgs
rew install @rewpkgs/rew.forge3dimport * as Forge3D from "rew.forge3d";
{ Mesh, BoxGeometry, Scene } = Forge3D.Weld()
{ scene, camera, animate } = Scene::create()
box = new Mesh(new BoxGeometry)
scene.add box
animate()using imp('rew.forge3d'), (Forge3D) ->
using namespace Forge3D, ->
using Scene, ->
box = new Mesh(new BoxGeometry)
@scene.add box
@animate()You will have to copy flake.nix and .envrc to the root of your project and run direnv allow.
For more information, read the Docs for Forge3D