I'm currently working on an application for 3D Visualization and Interactivity using threejs.
Here are the main functionalities I aim to include in this project:
In this app, users should be able to:
- Rotate and Scale the Object - completed
- Manipulate specific parts of the Object, such as changing its color or replacing a part with another - pending
I have been referring to the extensive threejs documentation and the list of helpful examples provided, which has greatly assisted me in making progress.
I also found a useful Chrome extension called ThreeJS Inspector.
This ThreeJS Inspector Chrome Extension seems to fulfill all my requirements; however, I am struggling to comprehend how it functions and allows selection and manipulation of the parts within an Object file.
Currently, I am utilizing the following block of code with threejs to solely display, rotate, and scale the Object file.
Updated Code:
//The code block goes here
If anyone can offer assistance with this, it would be greatly appreciated. Thank you in advance, and please provide feedback if there is anything I may have overlooked.
Update
Next Challenges
- While I can change the color of a specific node (part of the object), it requires clicking on the canvas/object again to view the changes instantly.
- Although I can hide/show a particular node (part of the object), I aspire to replace that specific node (part of the object) with another one.
- I intend to save the final object file as an image after implementing all modifications. In the future, I aim to save it as a GIF or video to enable users to visualize a 360-degree view of the end product.
PS
TheJim01 has been instrumental in helping me understand the fundamental but crucial concept of traversing the object file and its components. This insight has brought me closer to achieving my desired outcome.