https://github.com/create3000/x_ite-node
Pure Node.js wrapper of X_ITE
https://github.com/create3000/x_ite-node
3d browser framework glb gltf2 javascript json node parser stl svg vrml wavefront-obj webgl wrl x3d x3d-browser x3dom xml
Last synced: 2 months ago
JSON representation
Pure Node.js wrapper of X_ITE
- Host: GitHub
- URL: https://github.com/create3000/x_ite-node
- Owner: create3000
- License: other
- Created: 2024-11-10T22:32:39.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-30T09:15:02.000Z (2 months ago)
- Last Synced: 2025-03-30T09:26:48.597Z (2 months ago)
- Topics: 3d, browser, framework, glb, gltf2, javascript, json, node, parser, stl, svg, vrml, wavefront-obj, webgl, wrl, x3d, x3d-browser, x3dom, xml
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/x_ite-node
- Size: 248 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# x_ite-node
[](https://www.npmjs.com/package/x_ite-node)
[](https://npmtrends.com/x_ite-node)
[](https://deepscan.io/dashboard#view=project&tid=23540&pid=28573&bid=920516)This is a wrapper for [X_ITE](https://create3000.github.io/x_ite/) for use in a plain Node.js environment. The purpose of this module is to provide a version of X_ITE that can load X3D files, modify or process them, and generate X3D files.
There is no way to render images or anything like that, use [X_ITE in an Electron environment](https://create3000.github.io/x_ite/how-to-use-x-ite-with-electron/) for that.
## Installation
```sh
npm i x_ite-node
```## Usage
```js
const X3D = require ("x_ite-node");async function main ()
{
// Create browser and scene:const
canvas = X3D .createBrowser (),
browser = canvas .browser,
scene = await browser .createScene (browser .getProfile ("Interchange"), browser .getComponent ("Interpolation", 1));// Create and add some nodes to scene:
scene .rootNodes .push (scene .createNode ("Transform"));
...// Generate XML file:
console .log (scene .toXMLString ());
}main ();
```Useful information on how to access the external browser and documentation of all X_ITE functions can be found via the following links:
* [External Browser](https://create3000.github.io/x_ite/accessing-the-external-browser/)
* [Scripting Reference](https://create3000.github.io/x_ite/reference/ecmascript-object-and-function-definitions/)
* [Components](https://create3000.github.io/x_ite/components/overview/)## See Also
* [X_ITE](https://create3000.github.io/x_ite/) - X3D Browser
* [x3d-traverse](https://www.npmjs.com/package/x3d-traverse) - traverse X3D scene graph