Skip to content
Advertisement

Tag: scale

ThreeJS Match GLTF Model To Size Of Bounding Box

I want to scale the imported GLB Model to the same size a cube in my scene. It is needed to make sure that the model stays inside the shadow casting areas and is big enough to make the shadows visible. I ‘ve calculated the bounding Boxes of both objects already: and but now I do not know what to

Javascript zoom in/out to mouse x/y coordinates

I managed to make the mouse dragging to scroll the div, but the zooming in/out with the mouse is not complete. It works, but I would like for the mouse pointer to hold the image in that position and scale it at the same time, like so: I need to use scrollBy() to return the scrolling back to the previous

Advertisement