The camera controls on google's lego build website are really impressive and I find them quite enjoyable.
Is there a way to manipulate perspective using buttons?
It would be amazing to have the ability to zoom in/out and rotate to fixed positions.
Currently, I am experimenting with this demo from three.js/examples. Any guidance or suggestions would be greatly appreciated!
<div class="perspective">
<div class="rotate">
<div class="build-rotate">
<a data-rotate="315" href="#rotate315"></a>
<a data-rotate="45" href="#rotate0"></a>
<a data-rotate="225" href="#rotate225"></a>
<a data-rotate="135" href="#rotate135"></a>
<a class="rotate-free" href="#"></a>
<img src="https://www.buildwithchrome.com/v2-2-1.376043847035368998/img/build/rotate-indicator.png" style="transform: rotate(77.3493023426611deg);">
</div>
</div>
<a href="#" id="zoomIn" class="zoomin">+</a>
<a href="#" id="zoomOut" class="zoomout">-</a>
</div>
Your rewritten text goes here...
Your redesigned CSS goes here...
<div class="scene">
</div>
<div class="perspective">
<div class="rotate">
<div class="build-rotate">
<a data-rotate="315" href="#rotate315"></a>
<a data-rotate="45" href="#rotate0"></a>
<a data-rotate="225" href="#rotate225"></a>
<a data-rotate="135" href="#rotate135"></a>
<a class="rotate-free" href="#"></a>
<img src="https://www.buildwithchrome.com/v2-2-1.376043847035368998/img/build/rotate-indicator.png" style="transform: rotate(77.3493023426611deg);">
</div>
</div>
<a href="#" id="zoomIn" class="zoomin">+</a>
<a href="#" id="zoomOut" class="zoomout">-</a>
</div>