Wheiraucher
09-06-2009, 01:01 PM
Hi everyone
I realized that somethings wrong with regioncrop. look at the code i wrote. It should render exactly the same image as a render command without cropping. However, it returns an image that is exactly one pixel too high and wide. This one pixel renders as a black line right, and at the bottom (best turn environment to white to see it). This is really bothering me. And the worst part is that i get it with any numbers in the crop dialog, always two black lines. How does this happen, and how can i overcome the problem? Is it a bug?
c = freecamera()
viewport.setCamera $camera01
render camera:$camera01 rendertype:#regioncrop region:#(0,0,renderwidth,renderheight)
Curiously, the problem does not happen when i manually set the activeviewport to the camera and run only the last line of code.
Help is very appreciated.
I realized that somethings wrong with regioncrop. look at the code i wrote. It should render exactly the same image as a render command without cropping. However, it returns an image that is exactly one pixel too high and wide. This one pixel renders as a black line right, and at the bottom (best turn environment to white to see it). This is really bothering me. And the worst part is that i get it with any numbers in the crop dialog, always two black lines. How does this happen, and how can i overcome the problem? Is it a bug?
c = freecamera()
viewport.setCamera $camera01
render camera:$camera01 rendertype:#regioncrop region:#(0,0,renderwidth,renderheight)
Curiously, the problem does not happen when i manually set the activeviewport to the camera and run only the last line of code.
Help is very appreciated.
