This article explores the integration and features of React Three Fiber, a library that combines React and Three.js for creating 3D graphics on the web. It discusses the advantages of using React Three Fiber, the relevance of web game development, and performance aspects to consider. The article provides a step-by-step guide on

26m read timeFrom habr.com
Post cover image
Table of contents
IntroductionAbout the React Three Fibre stackRelevance of Web-GameDevGame performance in modern browsersOn your mark!Setting up the project and installing packagesCustomising the Canvas displayFloor surfaceBasic lightingTexture for the floor surfaceCamera movementAdding physicsThe floor as a physical objectSubjecting a character to the laws of physicsMoving a character - creating a hookMoving a character - implementing a hookMoving a character - jumpMoving the camera behind the characterGeneration of cubesImporting the model into the projectDisplaying the weapon model on the sceneAdding shadowsAdding shadows - correcting shadow clippingBinding weapons to a characterAnimation of weapon swinging while walkingRecoil animationAnimation during inactivityConclusion
3 Comments

Sort: