Current collected state Current
Observed since 20 Oct, 19:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
3d-engine
Javascript 3D Rendering Software I made for fun
3D Rendering Software I am developing with Typescript to run in the browser, for learning and for fun!
Import the UMD build:
<script type="text/javascript" src="https://unpkg.com/3d-engine"></script>
The only required parameter to be passed into the engine is an element selector string, which is the injection site for the engine.
<div id="root"></div>
<script>
const settings = {
background: '#000',
windowSize: 180,
entities: [
{
type: 'square',
id: '001',
width: 30,
center: [(180 / 2), (180 / 2)]
}
]
}
const app = new _3dEngine('#root', settings)
app.launch()
</script>
The second settings object parameter is optional and here are the current settings available.
Setting | Value |
|---|---|
| background | CSS String for the color of the background |
| windowSize | Size the engine |
| entities | An array of objects, each object will be an entity to be rendered, as of now, the engine only supports 2D squares, pass in type "square", a unique id string, a width, and an array of 2 numbers to define the center of the entity, if no entities property is found on the settings a default square will be rendered. |
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
@rollup/plugin-terserEnvironment{
"local_name": "@rollup/plugin-terser",
"alias": false,
"peer_metadata": null
} | ^0.1.0 | development |
@rollup/plugin-typescriptEnvironment{
"local_name": "@rollup/plugin-typescript",
"alias": false,
"peer_metadata": null
} | ^9.0.2 | development |
rollupEnvironment{
"local_name": "rollup",
"alias": false,
"peer_metadata": null
} | ^2.79.1 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^4.9.5 | development |
Source distribution
{
"integrity": "sha512-V0wqa9L6OPCuJ2a2+DAhHRO82yUU8XDgDjy7RAWGQeVo1NjFIkyUg1IadbI0Z062ChDhnDo36IJCfAeHFscemQ==",
"shasum": "0d5ce2529087f012730681b1676f313862fcd425",
"tarball": "https://registry.npmjs.org/3d-engine/-/3d-engine-1.0.33.tgz",
"fileCount": 40,
"unpackedSize": 54668,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCICk2SyCCiFahZPuCI3rYTShQXtS8ftgdrwdb3afVhE+9AiAj0WIoMGLTFj/G3DehW5Q2xzls2e+GIrAZoxJGtUY9Gg=="
}
]
}Observed since 20 Oct, 19:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:8b248489ddcbeefd6a268a64bce3707fdcb5855d4725007fbba9c1a89cb0562d