{"repo":"node-3d/core","free":true,"listed":false,"github":"https://github.com/node-3d/core","clone":"git clone https://github.com/node-3d/core.git","description":"WebGL, Three.js, and multimedia workloads on Node.js","language":"TypeScript","stars":81,"topics":["webgl","glfw","node-3d","3d","js","javascript","opengl","gl","graphics","image"],"license":"MIT","category":"game-templates","readme_excerpt":"Node3D Core This is a part of Node3D project. This package uses precompiled Node.js addons. There is no compilation during npm install . The addons are compiled for: Windows x64, Linux x64/ARM64, macOS ARM64. - WebGL/OpenGL on Node.js with support for web libs, such as three.js . - Multi-window apps, low-level window control with @node-3d/glfw. - Modern OpenGL functions also available, see @node-3d/webgl. - Image loading/saving in popular formats with @node-3d/image. API init(opts?: TInitOpts): TCore3D Initializes Node3D, creates the first BrowserDocument , wires browser-like globals, and returns: - doc - the created BrowserDocument , also assigned to globalThis.document and globalThis.window . - loop - shortcut for doc.loop . - raf - shortcut for doc.requestAnimationFrame . init() is cached. Repeated calls return the first result and do not create another document. Options are mostly BrowserDocument window options, plus: - isGles3 - request an OpenGL ES 3 style context and shader behavior, closest to WebGL. - isWebGL2 - expose the context as WebGL2 to browser-style libraries. - isVisible - pass false to create an initially hidden window. addThreeHelpers(three): void Patches a Three.js module instance for Node3D: - Makes three.FileLoader.load() read files through Node.js. - Adds three.Texture.fromId(id) so Three.js textures can wrap existing GL texture IDs. Call this once before creating Three.js loaders/materials that depend on those behaviors. Core Exports @node-3d/core imp","default_branch":null,"files":null,"tree":[],"storefront":"/r/node-3d","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/node-3d/core/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}