- Home /
RenderTexture to create a movie very fast
Hi All,
I am working on some functionality that will render a movie something in our scene. Basically we just want to spit out a series of images which will get saved to disk along with some audio and composited into a movie.
What we would like is for this to happen as fast as possible. We want to be showing something entirely different on the screen while the render occurs, and before we start we have all the animation values for all frames already defined.
What I wish I could do would be to launch my own thread which would just go frame by frame and apply the animation values to the screen, render a camera to a render texture, save the file somewhere and then do the next frame, while the main application continues running, but this doesn't seem possible.
Is there a recommended way to do this?
Thanks, Liron
Answer by LKIM · Aug 22, 2011 at 05:11 PM
This actually did not seem to be so hard in the end. Basically we just created a new scene and camera in a new layer which isn't visible, and then frame by frame, rendered it to a RenderTexture, took the bytes and added them to a queue in another thread which writes it to disk.
Your answer
Follow this Question
Related Questions
RenderTarget in scripts 0 Answers
Rendering screen on texture and grabbing part of it 0 Answers
RenderTexture not working when in Editor 1 Answer
RenderTexture loses content 0 Answers
Unwanted dark edge around RenderTexture 0 Answers