From 4d0cc97f96da7c320de9205a662398848fc42a8a Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Thu, 22 Jan 2026 11:53:40 +0100 Subject: [PATCH] Add 3D character rendering to Character3D component - Integrated Three.js for 3D character visualization based on user gender and age. - Simplified the character structure by removing outdated HTML elements and replacing them with a dynamic 3D model loader. - Implemented model loading with fallback options and added animation capabilities for enhanced visual appeal. - Updated CSS for the character container to ensure proper rendering and responsiveness. --- frontend/package.json | 1 + frontend/src/components/Character3D.vue | 506 +++++++++++------------- 2 files changed, 241 insertions(+), 266 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 989bac3..d7b26b2 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,6 +21,7 @@ "dotenv": "^16.4.5", "mitt": "^3.0.1", "socket.io-client": "^4.8.1", + "three": "^0.169.0", "vue": "~3.4.31", "vue-i18n": "^10.0.0-beta.2", "vue-multiselect": "^3.1.0", diff --git a/frontend/src/components/Character3D.vue b/frontend/src/components/Character3D.vue index c89ea7f..7d8ed21 100644 --- a/frontend/src/components/Character3D.vue +++ b/frontend/src/components/Character3D.vue @@ -1,31 +1,11 @@