Announcement

Collapse
No announcement yet.

Get frame buffer region size

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

  • Get frame buffer region size

    How to get the region numbers (210;752;560;100 from the right image (frame buffer)?
    When using the function from the picture I get different set of coordinates.
    Click image for larger version

Name:	region.png
Views:	133
Size:	5.1 KB
ID:	1130987

  • #2
    The coordinates you get are pixels from the screen edge.
    They will work just fine if you pass them back to the function to create the region again.
    You'll need to get the image plane extents, and do simple math, to get the absolute pixel value.
    Lele
    Trouble Stirrer in RnD @ Chaos
    ----------------------
    emanuele.lecchi@chaos.com

    Disclaimer:
    The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.

    Comment


    • #3
      To add to this - in Update 2 we fixed this function and now it returns what you see on screen.
      Yavor Rubenov
      V-Ray for 3ds Max developer

      Comment

      Working...
      X