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
    Avatardragosburian
    Licensee

    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
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

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

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #21052
    Avatardragosburian
    Licensee

    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
    Yuri KovelenovYuri Kovelenov
    Developer

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

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #21077
    Avatardragosburian
    Licensee

    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
    Yuri KovelenovYuri Kovelenov
    Developer

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

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #21372
    Avatardragosburian
    Licensee

    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
    Avatarruben
    Licensee

    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
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

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

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #21399
    Avatarruben
    Licensee

    Hey Yuri,

    Exactly!

    Greetings,
    Ruben

    #21400
    Avatardragosburian
    Licensee

    Hello Yuri,

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

    Dragos

    #21449
    Yuri KovelenovYuri Kovelenov
    Developer

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

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #22197
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

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

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #22198
    Avatardragosburian
    Licensee

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

    Kind Regards,
    Dragos

    #22422
    Yuri KovelenovYuri Kovelenov
    Developer

    the zoom puzzle shipped with 2.17.1!

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

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