Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
model_line
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
model_line
Commits
ad47c3ce
Commit
ad47c3ce
authored
Nov 30, 2022
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asder
parent
d4491b2c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
deploy.sh
deploy.sh
+3
-3
floor.jpg
src/assets/floor.jpg
+0
-0
jiqiebi.jsx
src/pages/models/jiqiebi.jsx
+8
-8
No files found.
deploy.sh
View file @
ad47c3ce
ssh root@192.168.40.50
"rm -rf /
qj
sfx/web/dashboard"
echo
'deleted /
qj
sfx/web/dashboard'
scp
-r
./dashboard root@192.168.40.50:/
qj
sfx/web/
ssh root@192.168.40.50
"rm -rf /
ng
sfx/web/dashboard"
echo
'deleted /
ng
sfx/web/dashboard'
scp
-r
./dashboard root@192.168.40.50:/
ng
sfx/web/
echo
'sync complete'
src/assets/floor.jpg
deleted
100644 → 0
View file @
d4491b2c
238 KB
src/pages/models/jiqiebi.jsx
View file @
ad47c3ce
...
...
@@ -8,15 +8,15 @@ import { useGLTF } from "@react-three/drei";
const
Mesh
=
(
props
)
=>
{
const
model
=
useGLTF
(
props
.
path
);
let
mixer
=
new
THREE
.
AnimationMixer
(
model
.
scene
);
model
.
animations
.
forEach
((
clip
)
=>
{
const
action
=
mixer
.
clipAction
(
clip
);
action
.
play
();
})
//
let mixer = new THREE.AnimationMixer(model.scene);
//
model.animations.forEach((clip)=>{
//
const action = mixer.clipAction(clip);
//
action.play();
//
})
useFrame
((
scene
,
delta
)
=>
{
mixer
?.
update
(
delta
)
})
//
useFrame((scene,delta)=>{
//
mixer?.update(delta)
//
})
return
(
<
primitive
object=
{
model
.
scene
}
scale=
{
0.007
}
position=
{
[
20
,
0.35
,
-
8
]
}
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment