omrips / viewstl

Viewstl Javascript plugin - STL/OBJ 3D files Viewer by viewstl.com
MIT License
199 stars 49 forks source link

Zooming out hides the model in v1.12 #16

Open JayEnaR opened 3 years ago

JayEnaR commented 3 years ago

I'm not sure if this is only me experiencing this behavior, In that case I'm obviously doing something wrong, but when I zoom out on a model it starts to disappear/hide. It doesn't take a lot to zoom out to see this happen. This is in an Angular 9 application.

When I replace only the stl_viewer.min.js in v1.12 with stl_viewer.min.js from v1.11, then all works fine.

image

image

omrips commented 3 years ago

That is probably because of the improved auto_zoom algorithm .. it messes with camera.far property. will be fixed on v1.13

Thanks !