Hi, I’m creating a three.js visualizer for a hip hop group. We’re creating various scenes with objects that have movement/animations linked to audio data and have to transition between scenes. Each scene has some different objects and variations of colors/materials on the same objects. What’s the best way to structure this? We’re also using tween.js to animate transitions between scenes.
Right now this is kind of what i’m thinking for the class structure (not complete)
Class Renderer
init()
render()
animate()
Class Scene
var CommonObject1
var CommonObject2
Scene Child Class Scene1
- Class Scene1Object1
Scene Child Class Scene2