three.js Basic Character Controls - GLTFLoader, AnimationMixer, 3rd Person Controller

  Рет қаралды 51,690

Genka

Genka

Күн бұрын

Пікірлер: 56
@losrobbosful
@losrobbosful 11 ай бұрын
2 years have passed. And even though quite complex, this stuff is still the most clean & complete video tutorial on third person follow camera in ThreeJS. Hope at some point & enough repetitions I will completely understand the code :D Actually it would be great to have a separate video just on the camera movement & quaternion rotation stuff, which goes a bit slower :) That would be of insane help. Because here good walkthroughs just like yours are still lacking at YT
@losrobbosful
@losrobbosful Жыл бұрын
Exactly the video walkthrough needed. Finally a very clean and straight-forward explanation of the process. I love it. Will checkout more of your stuff :)
@SimonSt-l2f
@SimonSt-l2f 3 күн бұрын
Hello mister thats a great tutorial you really passionate about clean three js i have learned by watching your examples i wanted to ask you while using typescript what roll up setting are you using to build the the final result before uploading to web server and why we must use it could you show us in one of you videos how to rollup the code please brother
@Ajion
@Ajion 3 жыл бұрын
good choice of music lol
@robertpetrowsky5826
@robertpetrowsky5826 2 жыл бұрын
For real I had to restart cause I was just vibin to it
@omakase1890
@omakase1890 Жыл бұрын
Lol
@amalnathsathyan6029
@amalnathsathyan6029 2 жыл бұрын
That background and the soothing voice, What a nice place to learn to code!!
@jpjpjpjpjpjpjpjp
@jpjpjpjpjpjpjpjp 2 жыл бұрын
Love the video, super helpful for getting started on a threejs game. may I request movement on terrain for a future video topic?
@Cat_trot2333
@Cat_trot2333 2 жыл бұрын
nice video ! hi bro , can you make a montage motion lesson by three .js ? like roll or attack
@uRealReels
@uRealReels 7 ай бұрын
where is index.Js in git... i only saw index.Ts
@amirreza3638
@amirreza3638 8 ай бұрын
i loved the video, but it seems so complicated
@nguyentuantruong4815
@nguyentuantruong4815 Жыл бұрын
you can explain in the code: var angleYCameraDirection = Math.atan2( (this.camera as THREE.Camera).position.x - (this.model as THREE.Group).position.x, (this.camera as THREE.Camera).position.z - (this.model as THREE.Group).position.z ); At the 6:44 th minute video. I really don't understand why subtract the two coordinates together? I have learned about Math.atan2() function but still don't understand what you do in that part
@siddhipatil9648
@siddhipatil9648 2 ай бұрын
Can we add this to Aframe scene
@uRealReels
@uRealReels 7 ай бұрын
how do i use npm to run this?
@juangoyret9364
@juangoyret9364 Жыл бұрын
Amazing work, it will be awesome that you convert it to a library that anyone can import and the only thing to put as a parameter is the model, the animations names and a delta speed maybe. I think that threejs has a enormous potential if we start as a community to create libraries that makes more friendly the game developing. I think that threejs can compite with Unity or any game engine that allows you to develop in the browser.
@s-series2823
@s-series2823 Жыл бұрын
agree
@BhanuPratap-ss3ep
@BhanuPratap-ss3ep 8 ай бұрын
very good tutorial , please upload videos regarding game dev in threejs
@luka4695
@luka4695 29 күн бұрын
A salad
@webghoul
@webghoul 2 жыл бұрын
there is any error where us used the object method to store which key is pressed in event listener : error is here : (keypressed as any)[event.key.toLowerCase()] = true error : Uncaught SyntaxError: Unexpected identifier
@mohammadaamirkhan3359
@mohammadaamirkhan3359 3 жыл бұрын
i need source code plz
@vineetjana6393
@vineetjana6393 2 жыл бұрын
can you help me with getting the changing position of the model in the index ts file...I cannot export the position to the index file ...plz help
@anaymittal7720
@anaymittal7720 3 жыл бұрын
Yesssss thank you!!
@catdsnny
@catdsnny 2 жыл бұрын
Sample code doesnt work - wont build with node
@neelmistry9241
@neelmistry9241 Жыл бұрын
Amazing explanation, But can you please explain how to set the controls on html button click for mobile device access?
@clockssss
@clockssss Жыл бұрын
How would you be able to make it work on mobile?
@kerrykreiter445
@kerrykreiter445 8 ай бұрын
one of, if not the best Threejs tutorials I've seen on KZbin. Thanks so much!!
@nomiscph
@nomiscph 2 жыл бұрын
Amazing video, i was wondering do you have any suggestions on how to do the same movements but by mouse click as in diablo 2 :)
@kinsukaweerasooriya2933
@kinsukaweerasooriya2933 7 ай бұрын
Thank you very much Sir !
@djiduthID
@djiduthID Жыл бұрын
please full tutorial sirr
@cryptoMateMSGP
@cryptoMateMSGP 2 жыл бұрын
would you be keen to work for us animating a scene that we already have?
@webghoul
@webghoul 2 жыл бұрын
create the same for javascript please
@elingaldo
@elingaldo Жыл бұрын
simply billiatn c:
@HuynhLuong227
@HuynhLuong227 Жыл бұрын
that's amazing
@michaelmas2841
@michaelmas2841 2 жыл бұрын
Hello, great job! I have question: can i use arrow keyboard for the control of model?
@michaelmas2841
@michaelmas2841 2 жыл бұрын
It's ok : Can use arrowup, ect... for it!
@xbz24
@xbz24 Жыл бұрын
gracias
@jesusmuhammad8220
@jesusmuhammad8220 2 жыл бұрын
really helpful tutorial! Thank you. I got one problem: I wanna to have a camera which is not following the character, how should I set the walkDirection? :/ For now, the moving direction has some issue...
@heygenka
@heygenka 2 жыл бұрын
In a third person camera the walking direction depends on the camera direction. In your case the camera is positioned independently of the character so the character movement direction depends on some global direction axis
@weslleymatheus3643
@weslleymatheus3643 2 жыл бұрын
@@heygenka Hi man, I downloaded the entire "src" folder of your code, without changing anything. But it's giving an error. in this part the parts in quotes, turn red. import { KeyDisplay } from './utils'; import { CharacterControls } from './characterControls'; import * as THREE from 'three' import { CameraHelper } from 'three'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls' import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js'; in this one, too. import * as THREE from 'three' import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls' import { A, D, DIRECTIONS, S, W } from './utils' Would you help me??? i am braziliam. My english is not very good, sorry.
@日暮观翔何处是咖喱江
@日暮观翔何处是咖喱江 3 жыл бұрын
Cooooooool
@ethanendures
@ethanendures Жыл бұрын
thanks, this can be implemented in react-three/fiber.
@Unfair_Rabbit
@Unfair_Rabbit Жыл бұрын
you got any solutions ?
@ethanendures
@ethanendures Жыл бұрын
@@Unfair_Rabbit hi, I implemented this in react-three/fiber, but I got some bugs. I am learning and trying to get this implemented into 7878(rust) programming language 🚀, 1. Follow the exact same steps as he shown but with react three fiber 2. Some assignments must be done with useState, for example : const [velocity, setVelocity] = useState(THREE.vector(0,0,0)); 3. The animations I did were done on blender, Note to change the name of the actions and actually know what actions are set in blender for your amarture. 1. Go to Blender 2. Load in your model (fbx, or glb, etc..) 3. Click your amarture and go right above the Scene Collection and you should see two dropdowns ( one looks like a file system structure, and the one next to it looks like an picture frame with a mountain and a tiny moon in it. 4. click on the dropdown with the picture frame, and select Blender FIle 5. Then select actions, 3.A. you can look up how to work with loading animations with blender and mixamo. 4. I just translated the code from the video to react. Lastly, this is a good video to learn how to control a 3rd person camera correctly in threejs.
@Unfair_Rabbit
@Unfair_Rabbit Жыл бұрын
@@ethanendures maybe i can try fixing those bugs if you can provide your code to me
@johnpaulganzan1731
@johnpaulganzan1731 2 жыл бұрын
Thank you Very much!
@danielvaldecantos3629
@danielvaldecantos3629 2 жыл бұрын
the animations don't work if you create a constant elapsedTime variable before creating the mixerUpdateDelta variable. weird.
@harsh_here
@harsh_here 2 жыл бұрын
Can we have a 3rd person camera effect whicy can be controlled using Wasd without having any character?
@antoniofuller2331
@antoniofuller2331 2 жыл бұрын
Obviously yes, it's right in front of you
@harsh_here
@harsh_here 2 жыл бұрын
I meant controlling camera with WASD
@张智强-c4i
@张智强-c4i Жыл бұрын
@@harsh_here Is this a forward camera projection?
@jiweizhang3565
@jiweizhang3565 3 жыл бұрын
讲的真好
@ujeeblends
@ujeeblends 2 жыл бұрын
thanks a lot!
@christophkrass6929
@christophkrass6929 2 жыл бұрын
vielen Dank
@smackdownboy
@smackdownboy Жыл бұрын
This is really a good video. Every concept is taught so easily and clearly.
@howl2339
@howl2339 2 жыл бұрын
If only there were the words to describe how wonderful there tutorials are
three.js Particles - Using three-nebula Particle Engine
13:25
Simple Third Person Camera (using Three.js/JavaScript)
13:00
SimonDev
Рет қаралды 65 М.
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,1 МЛН
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 55 МЛН
Simple Character Controller (using Three.js/JavaScript)
10:07
three.js & rapier3D - Character Terrain Movement
7:17
Genka
Рет қаралды 17 М.
Loading Animated Characters in React Three Fiber
24:47
Code Workshop
Рет қаралды 42 М.
Build a multiplayer game with React Three Fiber and Socket.io
24:42
Vim Motions & Tricks I Wish I Learned Sooner
9:25
Henry Misc
Рет қаралды 34 М.
Three.js Optimization - Best Practices and Techniques
17:47
Valentin's coding book
Рет қаралды 37 М.
Realistic Reflections in Three.js with Environment Mapping
14:50
Dan Greenheck
Рет қаралды 2,9 М.
How to Create a Multiplayer Game with Three.js and Blender
15:37
Andrew Woan
Рет қаралды 29 М.
I Tried Making an FPS Game in JavaScript
8:19
SimonDev
Рет қаралды 132 М.
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,1 МЛН