Through multiple posts on this forum, I’ve noticed a recurring need for a straightforward solution to overlay Three.js objects onto an HTML layout. In response, I’ve created a pair of utility classes – CSSLayout and its child, CSSLayoutObject – designed to simplify this process. These classes seamlessly integrate with Three.js, allowing for effortless overlay creation, responsive design implementation, and dynamic transformations with animations and transitions using CSS3 and HTML5.
As a side note, the red objects are too round and their rotation around the vertical axes is hard to perceive. I have the impression that the objects are fixed, but their stripes are moving over the fixed shape.
The menu is fine. Didn’t cause me any problem. From interface point of view I had a slight confusion with the (<-|->) marker in the middle – I thought it is a slider to be moved left-and-right.
Is it possible to contain the graphics within each block? [Object fit] option does not make any visual change.
It should emulate CSS object-fit, try different aspect ratios between the html layout and the three.js. The following has the HTML layout aspect at 16:9 and the three.js at 1:1.