Announcement

Collapse
No announcement yet.

VFB #setRegion through maxscript

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • VFB #setRegion through maxscript

    Hello,

    From the docs about getting/setting VFB render region info:
    * The returned values in the VFB are relative to the VFB window margins instead of to the actual rendered image.
    So the way we set render regions through maxscript has changed in Vray 5. This seems such a weird change...

    The issue however, is that now it seems impossible to set render regions accurately through maxscript because the values depend on the current space size where the image is displayed, and this data is not available. So resizing the VFB window messes up all the region placement coordinates.

    Do you have any tips on how to do that?

    Thanks,
    Eugenio

  • #2
    I'm not sure what they are describing with the "relative to the VFB window margins...", it works just as I'd expect it to with the coordinates based on the origin 0,0 at the upper left. The only thing I can think of is that it's based on the size of the current image in the frame buffer, not what's in the render setup dialog.
    www.dpict3d.com - "That's a very nice rendering, Dave. I think you've improved a great deal." - HAL9000... At least I have one fan.

    Comment


    • #3
      Hi, thanks for posting. What version of V-Ray are you using eugenio_miolo? The coordinates are based on rendered image and not VFB window in latest V-Ray 5, update 2.3 and V-Ray 6 versions. In V-Ray 5.10.01 the coordinates are affected by VFB window size, which is fixed in later builds so please update if you can.
      Vladimir Krastev | chaos.com
      Chaos Support Representative | contact us

      Comment


      • #4
        Originally posted by vladimir_krastev View Post
        The coordinates are based on rendered image and not VFB window in latest V-Ray 5, update 2.3 and V-Ray 6 versions. In V-Ray 5.10.01 the coordinates are affected by VFB window size, which is fixed in later builds so please update if you can.
        Good to know. This needs to be fixed in the docs then since it still has that confusing language..
        www.dpict3d.com - "That's a very nice rendering, Dave. I think you've improved a great deal." - HAL9000... At least I have one fan.

        Comment


        • #5
          Thanks for the answers,

          I'm currently on 3ds max 2021 - Vray 5.10.02. Good to know it's fixed in later versions.

          Comment


          • #6
            This needs to be fixed in the docs then since it still has that confusing language..​
            I submitted an issue about that towards the docs team.
            Vladimir Krastev | chaos.com
            Chaos Support Representative | contact us

            Comment

            Working...
            X