Observed since 20 Oct, 19:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
3d-core-raub
An extensible Node.js 3D core for desktop applications
This is a part of Node3D project.
npm i -s 3d-core-raub
This package uses pre-compiled Node.js addons. There is no compilation during
npm i. The addons are compiled for: Win64, Linux64, Linux ARM64, MacOS ARM64.

This module exports 2 methods:
export const init: (opts?: TInitOpts) => TCore3D;
Initialize Node3D. Creates the first window/document and sets up the global environment. This function can be called repeatedly, but will ignore further calls. The return value is cached and will be returned immediately for repeating calls.
export const addThreeHelpers: (three: TUnknownObject, gl: typeof webgl) => void;
Teaches three.FileLoader.load to work with Node fs. Additionally implements
three.Texture.fromId static method to create THREE textures from known GL resource IDs.
See TS declarations for more details.
(As in crate-lean.mjs):
import * as THREE from 'three';
import node3d from '../index.js';
const { init, addThreeHelpers } = node3d;
const { gl, loop, Screen } = init({
isGles3: true, vsync: true, autoEsc: true, autoFullscreen: true, title: 'Crate',
});
addThreeHelpers(THREE, gl);
const screen = new Screen({ three: THREE, fov: 70, z: 2 });
const texture = new THREE.TextureLoader().load('three/textures/crate.gif');
texture.colorSpace = THREE.SRGBColorSpace;
const geometry = new THREE.BoxGeometry();
const material = new THREE.MeshBasicMaterial({ map: texture });
const mesh = new THREE.Mesh(geometry, material);
screen.scene.add(mesh);
loop((now) => {
mesh.rotation.x = now * 0.0005;
mesh.rotation.y = now * 0.001;
screen.draw();
});
Example Notes:
require().loop is a convenience method, you can use requestAnimationFrame too.autoFullscreen option enables "CTRL+F", "CTRL+SHIFT+F", "CTRL+ALT+F" to switch
window modes.Screen helps with three.js-oriented resource management, but is not required.Screen, handling the window mode changes
(which creates a separate OpenGL context) is up to you.
Basically, doc.on('mode', () => {...}) -
here you should re-create THREE.WebGLRenderer.isGles3 lets you use a GL ES 3 preset, which is closest to "real" WebGL.
If set to false, WebGL stuff (such as three.js) will still work, but now with some hacks.
However, if you are planning to use non-WebGL features (e.g. OpenGL 4.5 features),
you might want it off, and then select a specific context version manually.isWebGL2 impacts how web libraries recognize the WebGL version.
But it doesn't really change the capabilities of the engine.HDC, HWND, CTX for Windows and whatever
those are called on Linux and MacOS. See glfw-raub.You get this for free. Have fun!
Some of the components have their separate licenses, but all of them may be used commercially, without royalty.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
node-glfw-raubEnvironment{
"local_name": "node-glfw-raub",
"alias": false,
"peer_metadata": null
} | 0.7.8 | runtime |
node-image-raubEnvironment{
"local_name": "node-image-raub",
"alias": false,
"peer_metadata": null
} | 0.0.5 | runtime |
node-webgl-raubEnvironment{
"local_name": "node-webgl-raub",
"alias": false,
"peer_metadata": null
} | 0.9.3 | runtime |
node-threejs-raubEnvironment{
"local_name": "node-threejs-raub",
"alias": false,
"peer_metadata": null
} | 0.89.0 | runtime |
Source distribution
{
"shasum": "79fb3e9d3b64e7645686eb69ecbbc038836733be",
"tarball": "https://registry.npmjs.org/3d-core-raub/-/3d-core-raub-0.0.2.tgz",
"integrity": "sha512-nkfmCTL1bcYVVchmDJz/9JRRlnArBvPzoXWtSqURNpCEYyCqA34UOE8MAtv/QdVAMvr1+tBsmNbC4MrvnFNZQA==",
"signatures": [
{
"sig": "MEYCIQDXP6ndZKmur/fOLRAaiqq8ThYwsrEgf1uNMiDnPHNlLgIhALOhaLk67+TVr1iQCAhITfx7FZzEPy/PHa0tcdvt3UBZ",
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
}
]
}Observed since 20 Oct, 19:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:24bcb6d932ef3f23e92e79bc2ddb57f77d0134112e1a2f7d7371c10af26512e0