Skip to content
Advertisement

only part of gltf model appearing using three.js

I have been trying to add this gltf model ( https://poly.google.com/view/28RBIWE8jzc ) using threeJS’. The code below is the only way that I have been able to see anything and I only see a small part of the object. If anyone knows what needs to be changed I would appreciate some help.

JavaScript

Advertisement

Answer

The baseball asset is quite large so I suggest you change your camera configuration. Try it with:

JavaScript

Alternatively, you could also consider to scale down the baseball after the loading process. Try it with:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement