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



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


see in the Collection of examples from 2019
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: (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.


1 Like