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.

Match camera exactly to viewport

Home Forums Graphics / 3ds Max Match camera exactly to viewport

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #32902
    Avatarweb
    Licensee

    Is it possible to set a fixed aspect in order to match a rendered image 100% for webgl?

    I’m trying to overlay webgl with some rendered image and would need to get exactly the same camera/aspect as for the rendering.

    #32904
    GlifTekGlifTek
    Licensee

    You can get the image dimensions then update the dimensions of your v3d-container to it with the get/set attribute html puzzles

    #32911
    Avatarweb
    Licensee

    I’ve already placed the v3d-container inside of a div with the correct aspect.
    But the camera itself isnt placed as it should be

    #32913
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    But the camera itself isnt placed as it should be

    you can possibly render the image with Verge3D. You can improve the quality by specifying higher resolution factor and enabling anti-aliasing.

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

    #32916
    Avatarweb
    Licensee

    What exactly do you mean with render with verge3d?

    I’m trying a hybrid version of pre-rendered images and overlaying webgl content. Because a pure webgl version is to overkill. We got threes, humans, cars, grass, approx. 30-40mio polys so no way to show that in webgl.

    #32935
    Yuri KovelenovYuri Kovelenov
    Developer

    Got it. Can you provide some screenshot or may be a link to your app to show off the issue?

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

    #32970
    GlifTekGlifTek
    Licensee

    You could make a camera animation frame in your 3d package of the proper camera dimensions, then go to that frame when the dimensions of the image match it..
    Just trying ideas

    • This reply was modified 1 day, 16 hours ago by GlifTekGlifTek.
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.