We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Fit camera to object

Home Forums Puzzles Fit camera to object

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #21032
    dragosburian
    Customer

    Hello, is there a posibility to make the camera zoom in to such a degree that it fits the entire model while tweening. If not, is it something that maybe you could implement in a future version of Verge? Thank you!

    Dragos

    #21038

    Hi,

    this can be done via some hardcore JavaScript at the moment.

    Chief 3D Verger | LinkedIn | Twitter

    #21052
    dragosburian
    Customer

    Aren’t there plans to maybe implementing this in a future build, like making the camera fit the bounding box of the selected object?

    #21053

    Yes we can think about it. What is your case exactly, can you provide some more details?

    Chief 3D Verger | LinkedIn | Twitter

    #21077
    dragosburian
    Customer

    See the simple proof of concept attached, the camera looks at a target, which can vary on the Z axis, and the object scales freely on all 3 axis, what we would like is for the camera to go further/closer on its local Z axis in order to fit the bounding box of the object.

    Attachments:
    You must be logged in to view attached files.
    #21122

    Not sure about Puzzles, but this can certainly be implemented with JavaScript.
    https://discourse.threejs.org/t/camera-zoom-to-fit-object/936

    Chief 3D Verger | LinkedIn | Twitter

    #21372
    dragosburian
    Customer

    Any chance you are going to use that to make a puzzle in the future, I am sure there are many who need this as something more “standardized”, not just us.

    Thank you,
    Dragos

    #21394
    ruben
    Customer

    Hey Juri,

    We need this a lot for making thumbnails of our models on Hive. A preview of what is inside a configuration. Because our models can differ a lot, sometimes we have thumbnails on which the model is very small, and sometimes it doesn’t fit. That doesn’t look nice on our quotes.
    Because we have a lot of different models, it is very time consuming to add a JavaScript each time. For that reason a puzzle would be really handy.

    Zoom to fit is quite standard in modelling, from Autocad to Solidworks, it would be nice to see it implemented in Verge3D :)

    Thanks!

    #21395

    Hi,

    so you don’t need smooth transition for the camera – just moving to a static position for screenshot?

    Chief 3D Verger | LinkedIn | Twitter

    #21399
    ruben
    Customer

    Hey Yuri,

    Exactly!

    Greetings,
    Ruben

    #21400
    dragosburian
    Customer

    Hello Yuri,

    Ideally, this would be working with the tween function, so having a smooth transition is a good thing to have.

    Dragos

    #21449

    Thanks for the clarifications. We’ll discuss a possible implementation internally.

    Chief 3D Verger | LinkedIn | Twitter

    #22197

    Hi,

    we implemented this puzzle. It missed the 2.17 version but we’ll ship it with a minor update soon.

    Chief 3D Verger | LinkedIn | Twitter

    #22198
    dragosburian
    Customer

    Thank you, Yuri, we are really looking forward to seeing it in action.

    Kind Regards,
    Dragos

    #22422

    the zoom puzzle shipped with 2.17.1!

    Chief 3D Verger | LinkedIn | Twitter

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.