Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recording just part of the screen #8

Open
yosun opened this issue Jun 19, 2017 · 3 comments
Open

Recording just part of the screen #8

yosun opened this issue Jun 19, 2017 · 3 comments

Comments

@yosun
Copy link

yosun commented Jun 19, 2017

It seems that, due to the usage of RenderTexture.active and having the resultant ReadPixel be "blit'd" from that, it's not possible to record just part of the screen?

I've tried using multiple cameras and changing the pixelRect to be cropped to the right part of the screen.. Is using RenderTexture necessary or is there a work around to this?

Changing the y coordinate of the ReadPixel after the RenderTexture.active source - instead of read pixel from that y coordinate, here is an example of what I mean - https://gyazo.com/5393dd53594368d117370377466cf102

@Chman
Copy link
Owner

Chman commented Jun 19, 2017

You'll need to modify the source code for that, by default Moments captures the whole camera view. The easiest way would be to do the cropping right after it captured the screen.

@yosun
Copy link
Author

yosun commented Jun 20, 2017

it looks like Unity is not able to crop a RenderTexture, so the next best thing is changing the camera pixelRect. I'm not sure where the rendertexture is being rasterized (?)

@yosun
Copy link
Author

yosun commented Dec 23, 2017

pokes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants