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 to camera not working?

Home Forums Graphics / Blender Fit to camera not working?

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #82586
    c4cc
    Customer

    Hi,

    It is actually possible without coding. You can use an empty object parented to the camera, with your object parented to this empty. Both empty and your object should have camera fit enabled, for example: to the left and to the bottom. See attached file.

    I tried, but unfortunately, it did not work?

    https://postimg.cc/4mBbkxTY

    https://postimg.cc/nXrKHfH0

    https://postimg.cc/75R3hthD

    As per this quoted post, fit to camera is not working

    • This topic was modified 3 weeks ago by c4cc.
    • This topic was modified 3 weeks ago by c4cc.
    • This topic was modified 3 weeks ago by c4cc.
    Attachments:
    #82591
    xeon
    Customer

    Did you clear the parent inverse for the empty?

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #82595
    c4cc
    Customer

    I did, sadly nothing

    Edit: to do camera fit:

    1) create a dummy object to parent to camera

    2) parent dummy to camera

    3) clear parent inverse

    4) copy name of original intended object

    5) join original intended object to dummy object

    6) rename joined object with name of original

    7) shift+S to assign cursor to selected over targeted vertices to appear in camera viewport

    8) deleted unwanted vertices misaligned due to fit to camera:

    9) Choose “fit to camera” settings
    (left in this case)

    Optional
    Parent other object to “fit to camera” object

    1) Keep transform in this case to prevent vertex colors becoming black

    2) Sensor fit for camera

    • This reply was modified 2 weeks, 4 days ago by c4cc.
    #82596
    xeon
    Customer

    What version of blender and V3D are you using ?

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #82597
    c4cc
    Customer

    Blender 4.2, V3d 4.9

    #82600
    xeon
    Customer

    Here is a sample cube..parented to an empty that is camera fitted to upper right corner.
    Its using Blender 4.2.3 and V3D 4.9.2. Its working….take a look and see if it works for you.

    https://cdn.soft8soft.com/AROAJSY2GOEHMOFUVPIOE:f2f27a4091/X3L_cam_fit_4_9_2_test.zip

    Blender file included.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #82602
    c4cc
    Customer

    Unfortunately it only works for verge3d viewport

    https://postimg.cc/zbm8dFVN

    https://postimg.cc/xXTCH5bF

    On the other hand, not so in sneakpeak:

    https://postimg.cc/qtJ8N2kk

    https://postimg.cc/0MBkY1Dt

    Hi, It is actually possible without coding. You can use an empty object parented to the camera, with your object parented to this empty. Both empty and your object should have camera fit enabled, for example: to the left and to the bottom. See attached file.

    Only from here does Yuri’s fit to camera actually work

    • This reply was modified 2 weeks, 6 days ago by c4cc.
    #82606

    Hi,
    You might open the browser console to see if there are any issues printed there. Fit to camera feature should work exactly the same for exported gltf and Sneak Peek.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #82608
    xeon
    Customer

    Working in sneak peak and exported fie me.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #82610
    c4cc
    Customer

    Hi,
    You might open the browser console to see if there are any issues printed there. Fit to camera feature should work exactly the same for exported gltf and Sneak Peek.

    Sneak peak:

    Nothing mentioned

    First, I tried to parent to camera:

    Then I used fit to camera:

    https://postimg.cc/CBYj91MQ

    Unfortunately no changes, not even with auto, horizontal, vertical camera fit

    • This reply was modified 2 weeks, 6 days ago by c4cc.
    • This reply was modified 2 weeks, 6 days ago by c4cc.
    #82614

    Is it the same version printed in the sneak peek mode and the regular app?

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #82617
    c4cc
    Customer

    It only works in viewport for verge3d library, but sneak peak, no

    • This reply was modified 2 weeks, 6 days ago by c4cc.
    #82619

    Could you please share exactly the same blend file that fails? The version you provided in your initial post definitely has parent inverse issue.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #82621
    c4cc
    Customer

    The original blend file

    Attachments:
    #82623

    The console clearly states that the parent inverse matrix should be cleared for both t1 and t2:

    BTH, considering the high prevalence of this problem we decided to implement checks and a warning message right on the “Fit to Camera Edge” panel in Blender. New feature will be available in the upcoming Verge3D update.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

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