Skip to content

Commit

Permalink
fix: update, add prs
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda committed Dec 21, 2023
1 parent 1990133 commit 82398bb
Show file tree
Hide file tree
Showing 5 changed files with 1,157 additions and 935 deletions.
23 changes: 23 additions & 0 deletions Hydria_apothecary_vase.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
Auto-generated by: https://github.com/pmndrs/gltfjsx
Command: npx [email protected] /Users/ph/Downloads/hydria_apothecary_vase.glb --transform
Files: /Users/ph/Downloads/hydria_apothecary_vase.glb [18.85MB] > /Users/ph/dev/gltfjsx/hydria_apothecary_vase-transformed.glb [846.31KB] (96%)
Author: Virtual Museums of Małopolska (https://sketchfab.com/WirtualneMuzeaMalopolski)
License: CC0-1.0 (http://creativecommons.org/publicdomain/zero/1.0/)
Source: https://sketchfab.com/3d-models/hydria-apothecary-vase-7d6938c0c0b54b06a0210a982a73023e
Title: Hydria apothecary vase
*/

import React, { useRef } from 'react'
import { useGLTF } from '@react-three/drei'

export function Model(props) {
const { nodes, materials } = useGLTF('/hydria_apothecary_vase-transformed.glb')
return (
<group {...props} dispose={null}>
<mesh geometry={nodes.Object_3.geometry} material={materials.wire_177028149} position={[-162.834, -228.746, 138.288]} rotation={[-Math.PI / 2, 0, 0]} />
</group>
)
}

useGLTF.preload('/hydria_apothecary_vase-transformed.glb')
Binary file added hydria_apothecary_vase-transformed.glb
Binary file not shown.
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,42 +38,42 @@
"node": ">=16"
},
"dependencies": {
"@gltf-transform/core": "3.7.3",
"@gltf-transform/extensions": "3.4.8",
"@gltf-transform/functions": "3.7.3",
"@gltf-transform/core": "3.10.0",
"@gltf-transform/extensions": "3.10.0",
"@gltf-transform/functions": "3.10.0",
"@node-loader/babel": "^2.0.1",
"draco3dgltf": "^1.5.6",
"is-var-name": "^2.0.0",
"keyframe-resample": "^0.0.15",
"meow": "^12.1.1",
"meshoptimizer": "^0.19.0",
"prettier": "2.8.7",
"read-pkg-up": "^10.0.0",
"three": "0.152.2",
"three-stdlib": "^2.22.4"
"meshoptimizer": "^0.20.0",
"prettier": "3.1.1",
"read-pkg-up": "^10.1.0",
"three": "0.159.0",
"three-stdlib": "^2.28.7"
},
"optionalDependencies": {
"jsdom": "^22.1.0",
"jsdom": "^23.0.1",
"jsdom-global": "^3.0.2",
"sharp": "^0.32.6"
"sharp": "0.32.6"
},
"devDependencies": {
"@babel/core": "7.16.0",
"@babel/core": "7.23.6",
"@babel/plugin-proposal-class-properties": "^7.16.0",
"@babel/plugin-transform-modules-commonjs": "7.16.0",
"@babel/plugin-transform-parameters": "7.16.0",
"@babel/plugin-transform-runtime": "7.16.0",
"@babel/plugin-transform-template-literals": "7.16.0",
"@babel/preset-env": "7.16.0",
"@babel/preset-react": "7.16.0",
"@babel/preset-typescript": "^7.16.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^13.0.6",
"@babel/plugin-transform-modules-commonjs": "7.23.3",
"@babel/plugin-transform-parameters": "7.23.3",
"@babel/plugin-transform-runtime": "7.23.6",
"@babel/plugin-transform-template-literals": "7.23.3",
"@babel/preset-env": "7.23.6",
"@babel/preset-react": "7.23.3",
"@babel/preset-typescript": "^7.23.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"chalk": "^5.3.0",
"fast-glob": "^3.2.12",
"fs-extra": "^11.1.1",
"lint-staged": "^13.2.2",
"rollup": "^2.59.0",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"lint-staged": "^13.2.",
"rollup": "^4.9.1",
"rollup-plugin-size-snapshot": "^0.12.0",
"rollup-plugin-terser": "^7.0.2"
},
Expand Down
4 changes: 2 additions & 2 deletions src/gltfjsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export default function (file, output, options) {
gltfLoader.parse(
arrayBuffer,
'',
(gltf) => {
stream.write(parse(gltf, { fileName: filePath, size, ...options }))
async (gltf) => {
stream.write(await parse(gltf, { fileName: filePath, size, ...options }))
stream.end()
resolve()
},
Expand Down
Loading

0 comments on commit 82398bb

Please sign in to comment.