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.

Relative Position from Camera

Home Forums General Questions Relative Position from Camera

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #18734
    Sargento
    Participant

    Hello, I’m trying to place a 3D obect in the bottom right corner of the canvas. I know it is possible to do that with HTML elements and a little of CSS, but need to place a 3d object ( included in the scene ) in that corner.
    I’ve used parenting methods as usual with the camera, an empty object and a 3D mesh. The mesh is children of the empty and the empty is a children of the camera, so when I move or orbit the camera the object follows it. Everything as usual.

    The problem is that when I change the aspect of the canvas (browser), the object isn’t just where I want it to.
    I’m sending some images as examples of what I mean.

    Is there any puzzle or known solution for that?

    Regards.

    #18738
    Sargento
    Participant

    In other words: I need the same behavior as the full-screen button but with a 3D object included in the scene.

    #18745

    If you are a Blender user, you can set Horizontal or Vertical sensor fit for the camera. Unfortunately, it is difficult to make it snap to the corner without programming.

    Chief 3D Verger | LinkedIn | X

    #18780
    Sargento
    Participant

    OK, I see.
    I think that would be a great addition.

    Thanks.

    #18797

    Agreed. Unfortunately this is not an easy thing to implement, but will have this task in mind for the future. :good:

    Chief 3D Verger | LinkedIn | X

    #59006
    albi
    Participant

    Any updates on this? Is this still only possible with coding? :-(

    #59010

    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.

    Chief 3D Verger | LinkedIn | X

    #82431
    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.

    sorry for responding to a late question, but does this still apply in 2025?

    Or is there now a simpler way for keeping objects in relative position to camera/intended position as in Blender, even though browser/device screen is actively resized?

    • This reply was modified 1 week, 6 days ago by c4cc.
    #82455

    Sure the “fit to camera edge” feature got some updates since 2022 and is now easier to use.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #82462
    c4cc
    Customer

    Thanks. Also, are there html puzzles to make scene on screen expand proportionally to the (browser) window whenever it is resized, instead of exposing more scene?

    • This reply was modified 1 week, 5 days ago by c4cc.
    #82474

    Thanks. Also, are there html puzzles to make scene on screen expand proportionally to the (browser) window whenever it is resized, instead of exposing more scene?

    If camera sensor fit is not enough, you should move the camera or change its field-of-view depending on the screen aspect ratio. There is a puzzle zoom camera to object that simplifies things a lot, allowing to position the camera at the optimum distance from the object.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #82558
    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

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