As in some game,
there is a list of candidate heroes.
When I interact with the chosen one (the red zone), then center model will rotate itself;
When I interact with the others (the green zone), I can slide the list to choose the pre hero or the next one.
One solution what I thought may work like:
<swiper>
<swiper-slide> scene_1 </swiper-slide>
<swiper-slide> scene_2 </swiper-slide>
<swiper-slide> scene_3 </swiper-slide>
<swiper-slide> scene_4 </swiper-slide>
</swiper>
Each slide create a THREE.Scene()
and add
a model into it.
When slide to next one, create a new scene and pre-load the following models ( like: scene_5, scene_6)
Obviously, this solution has a bad performance.
other solution what I thought is:
create only one scene, and add models into this scene.
use OrbitControls to controller.
in this solution, I can rotate the chosen hero independently.
The whole list will rotate by interact.
So, I’m searching the best practise of this kind problem.