
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
aframe-gltf-helpers
Advanced tools
A-Frame glTF Helper Components
gltf-part-plus
component adds a few features to the original gltf-part component made by @ngokevin, namely: draco compression and ability to extract gltf translation to the A-Frame scene graph. Note: to enable draco decompression, refer to A-Frame instructions here, also shown in examples 3 and 4 below.
model-center
component centers the geometry of a mesh loaded from gltf-part-plus with an option to bottom align at ground level, useful for buildings, trees, etc.
These are part of an experimental glTF workflow for handling assets related to Streetmix3D. See below for more info on the full workflow.
Property | Description | Default Value |
---|---|---|
buffer | Whether to load the geometry as a BufferGeometry (versus Geometry). Set to false if we need access to vertices, faces, UVs, etc. | true |
part | Name of the part to look for specified in the glTF file as name="<NAME>" . | '' |
src | Path to the glTF file (or selector to <a-asset-item> ). | '' |
resetPosition | For the first gltf node encountered in the matching part , copy its translation to the a-frame entity, and then set gltf translation to 0 0 0 . This keeps the same world position for the placed gltf part 's first node, while giving the A-Frame entity the value of that part from the gltf scene. However, this only works for a simple gltf with only 1 child node for each part in the scene. (Use with caution, this is not a well-tested property and might not work as expected on your model.) | false |
Center the child geometry of the current entity's object3d.
Property | Description | Default Value |
---|---|---|
bottomAlign | Whether to align the bottom of the centered mesh geometry with the ground or floor level (at y=0 ), useful for buildings, trees or other set dressings | false |
Traverse through materials in a glTF model to set anisotropic filtering value. This component only accepts one optional number value.
Attribute Type | Description | Default Value |
---|---|---|
number | Desired anisotropy value for all texture maps found while traversing the model. Setting to 0 (default) will set the value to the maximum value supported by hardware. | 0 |
For each example, press <ctrl> + <alt> + <i>
once scene is loaded to inspect individual gltf-part entities as a "manual test".
Install and use by directly including the browser files:
<head>
<title>My A-Frame Scene</title>
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-gltf-helpers@0.0.5/dist/aframe-gltf-helpers.min.js"></script>
</head>
<body>
<a-scene>
<a-entity gltf-part-plus="src: #draco-buildings-model; part: SM3D_Bld_Mixed_Corner_4fl;" model-center anisotropy></a-entity>
</a-scene>
</body>
Install via npm:
npm install aframe-gltf-helpers
Then require and use.
require('aframe');
require('aframe-gltf-helpers');
gltfpack -kn -i ./scenesmall3.gltf -o buildings-gltfpackkn.glb
gltfpack -c -kn -i ./scenesmall3.gltf -o buildings-gltfpackckn.glb
gltfpack -cc -kn -i ./scenesmall3.gltf -o buildings-gltfpack-cc-kn.glb
These are part of an experimental glTF workflow for handling assets related to Streetmix3D.
The current workflow is roughly:
gltf-part-plus
component to load part from draco compressed file.Alternate workflow (not working):
gltfpack -cc -kn -i ./scenesmall3.gltf -o buildings-gltfpack-cc-kn.glb
to optimize and compressgltfpack -kn -i ./scenesmall3.gltf -o buildings-gltfpack-kn.glb
and serve with a web host that automatically gzip compresses (not github pages at the moment)I'd like to add:
FAQs
Some helpful glTF components for A-Frame
We found that aframe-gltf-helpers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.