Fit camera to object

Home Forums Puzzles Fit camera to object

This topic contains 11 replies, has 3 voices, and was last updated by Yuri Kovelenov Yuri Kovelenov 1 week, 1 day ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #21032
    Avatar
    dragosburian
    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 Kovelenov
    Yuri Kovelenov
    Developer

    Hi,

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

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

    #21052
    Avatar
    dragosburian
    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 Kovelenov
    Yuri 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
    Avatar
    dragosburian
    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 Kovelenov
    Yuri 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
    Avatar
    dragosburian
    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
    Avatar
    ruben
    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 Kovelenov
    Yuri 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
    Avatar
    ruben
    Licensee

    Hey Yuri,

    Exactly!

    Greetings,
    Ruben

    #21400
    Avatar
    dragosburian
    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 Kovelenov
    Yuri Kovelenov
    Developer

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

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

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.