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-igmKM6s0qEMnah3ya9USNxwrfO1ysPyFFV+76Ru5L7q49Xw9iY47HnnxA8BIptLinBeHYf3FgoOxL4fXao7XiQ==",
"shasum": "95a9f892c8037a0905f68a36f5f173e23f23705a",
"tarball": "https://registry.npmjs.org/3d-engine/-/3d-engine-1.0.31.tgz",
"fileCount": 39,
"unpackedSize": 49262,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQCIUawa5JAlT3GBD3yRfSOmmka2Yo7AcutXsqsgA1vjvgIgRRglaIBipWkNh1Xc3KR/0ToQmSL0qP2QM4VFrXaD2Uo="
}
]
}Observed since 20 Oct, 19:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:66968b7bb7745b13eba3c5e441fe0db6af96c1f2e99200f473d63ecc47641fd8