Skip to content Skip to sidebar Skip to footer

Three.js - Scale Model With Scale.set() Or Increase Model Size?

What is the best practise for scaling 3d models in Three.js (or other 3d renderers)? Here is an example I just faced: I load a model in and realise the size of the model is too sma

Solution 1:

It is not a matter of best practice but rather of optimization. If your mesh will always be scaled, it is better if you do the scaling in your modeling software. That simple statement mesh.scale.set(2,2,2); is a matrix multiplication that needs to happen on each frame rendered. Now maybe your scene does not have much geometry in it in which case you don't care. But as I said it is a matter of optimization. What if your scene had 1000 such meshes or 1000000. That matrix multiplication would need to happen for each one of them. Optimize whenever you can.


Post a Comment for "Three.js - Scale Model With Scale.set() Or Increase Model Size?"