Very basic ViewCube

Hi everyone,

Just wanted to share my very basic implementation of ViewCube.
It transforms the view to face the model at a orientation specified by one of the cube faces.

Live example

Source

12 Likes

Great, I’ll put it in the collection. :+1:


related

see in the Collection of examples from discourse.threejs.org 2019

https://hofk.de/main/discourse.threejs/2019/index2019.html
the CubeBoxIcon - @prisoner849

Looks like 3DS Max’s ViewCube.
Thanks for sharing the source code on github.
React & TypeScript code are really good!!

html overlay is an interesting solution! this was our attempt, an orthographic projection via r3f: https://codesandbox.io/s/react-three-fiber-viewcube-py4db (would still need onClick to react to clicks)

we use it in a slightly more complex form in a web based cad system

Screenshot 2020-04-08 at 14.56.18

Did you oriented on the Unity one too? I join the club :cat:

1 Like

I made one entirely with three.js for my viewer too.

demo: http://glb-viewer.blogspot.com/
source: https://github.com/bytezeroseven/GLB-Viewer

1 Like