emanueledonati commited on
Commit
e537ed2
·
1 Parent(s): fa4a309

Update App.js

Browse files
Files changed (1) hide show
  1. src/App.js +6 -6
src/App.js CHANGED
@@ -239,7 +239,7 @@ function Avatar({ avatar_url, speak, chat, setSpeak, text, language, setAudioSou
239
 
240
  }, [speak]);
241
 
242
- /*
243
  let idleFbx = useFBX('/idle.fbx');
244
  let { clips: idleClips } = useAnimations(idleFbx.animations);
245
 
@@ -250,20 +250,20 @@ function Avatar({ avatar_url, speak, chat, setSpeak, text, language, setAudioSou
250
  idleClips[0].tracks = _.map(idleClips[0].tracks, track => {
251
 
252
  if (track.name.includes("Head")) {
253
- track.name = "head.quaternion";
254
  }
255
 
256
  if (track.name.includes("Neck")) {
257
- track.name = "neck.quaternion";
258
  }
259
 
260
  if (track.name.includes("Spine")) {
261
- track.name = "spine2.quaternion";
262
  }
263
 
264
  return track;
265
 
266
- }); */
267
 
268
  useEffect(() => {
269
 
@@ -360,7 +360,7 @@ function App() {
360
  const audioPlayer = useRef();
361
 
362
  const [speak, setSpeak] = useState(false);
363
- const [text, setText] = useState("My name is Virtual Girlfriend 0.0.2. I'm a virtual human who can speak whatever you type here along with realistic facial movements.");
364
  const [audioSource, setAudioSource] = useState(null);
365
  const [playing, setPlaying] = useState(false);
366
  const [language, setLanguage] = useState('en-US');
 
239
 
240
  }, [speak]);
241
 
242
+
243
  let idleFbx = useFBX('/idle.fbx');
244
  let { clips: idleClips } = useAnimations(idleFbx.animations);
245
 
 
250
  idleClips[0].tracks = _.map(idleClips[0].tracks, track => {
251
 
252
  if (track.name.includes("Head")) {
253
+ //track.name = "head.quaternion";
254
  }
255
 
256
  if (track.name.includes("Neck")) {
257
+ //track.name = "neck.quaternion";
258
  }
259
 
260
  if (track.name.includes("Spine")) {
261
+ //track.name = "spine2.quaternion";
262
  }
263
 
264
  return track;
265
 
266
+ });
267
 
268
  useEffect(() => {
269
 
 
360
  const audioPlayer = useRef();
361
 
362
  const [speak, setSpeak] = useState(false);
363
+ const [text, setText] = useState("My name is Virtual Girlfriend 0.0.3. I'm a virtual human who can speak whatever you type here along with realistic facial movements.");
364
  const [audioSource, setAudioSource] = useState(null);
365
  const [playing, setPlaying] = useState(false);
366
  const [language, setLanguage] = useState('en-US');