Render a Kitchen Concept in Virtual Reality: Composit Sketch & Photoreal VR Renders in After Effects

Photo of Rick Barrett

Instructor Rick Barrett

Share this video
  • Duration: 12:27
  • Views: 2071
  • Made with Release: 17
  • Works with Release: 17 and greater

After Effects compositing and masking for animated Virtual Reality from a single rendered frame

In this tutorial, we’ll combine the Sketch & Photoreal VR visualizations we’ve created to create a final animation that draws the sketch lines and then transitions to a photoreal image. To save render time, we’re only using one frame of the photoreal render. We’ll create a dynamic animation by compositing the photoreal render with the sketched treatment rendered from Skybox Studio, and by masking various elements in After Effects.

See the final 360 degree animation in YouTube VR.

show less

Transcript

- In this tutorial we'll combine the sketch and Photoreal VR visualizations we've created in order to generate a final animation that draws the sketched lines and then transitions to a Photoreal image. To save render time we're only using one frame of the Photoreal render and masking it with the SkyBox output to create a dramatic visualization of this kitchen remodel. So what we're going to do first is go ahead and create a new comp to work in for our sketch to Photoreal VR scene. So I'm going to go ahead and hit the New Comp button and we're going to keep the size at 4K with 30 frames per second and a duration of one minute. And I'm going to name this "VR sketch to Photoreal." And now what we can do is either drag the SkyBox output directly into this comp and reference it directly as a footage item or in order to save some processing time because I have already rendered the SkyBox output to sequence TIFF. What I'm going to do is simply load that sequence as a footage item. So I'm going to double click here in the Project window and we'll go up to Project Four and grab the render that we created earlier. Make sure that TIFF sequence is checked. And I'll go ahead and drag that in and add it to our comp. Now this sequence goes for the first 30 seconds of course and what we want to do is actually continue that last frame on for the next 30 seconds. And for that I'm just going ahead and import just the last frame individually. So we'll go grab frame 899 there, disable the TIFF sequence option and import that frame. Now we'll go ahead and drag this into our comp as well. And I want to have this frame start at the end of the animation so I'm going to select our sequence and hit O to go to the end and then select our single frame and hit Alt, left square bracket. And that's going to start this frame at the end frame of the prior animation. Now we need to go ahead and bring in our Photoreal render so I'm going to double click again in the project window to bring up the import dialog. We're going to jump back into VR Kitchen 05 in the render tab and I'm going to choose this final Kitchen Sketch 04. And I'm going to go ahead drag that into the scene. So now we're not actually seeing the Photoreal because it's at the bottom layer. But if I go ahead and change the layer modes to these other layers, to Multiply, you'll see the sketched lines over the top of the footage. And we'll go ahead and hit T for opacity and drop the opacity of this layer temporarily so that you can see that the sketch lines line up precisely with the Photoreal image. Now what we want to do is figure out how we're going to bring the Photoreal image onto the scene. Now of course for the sketch lines, we're drawing those progressively already through our sketch animation. But with the Photoreal image we have a few options. One thing is we could simply fade it up with opacity. Or we could use some sort of masking to bring it in. The one thing you need to be especially careful of when masking a VR image is the edges. Remember that this entire image is going to be wrapped back around the sphere so this left edge and the right edge are actually a seam. And you need to make sure if you're masking across that seam your paint strokes are consistent. Ideally you'll avoid masking across the seam entirely. You've also got to remember that the top and bottom here are actually extremely stretched. So trying to paint a mask across the top and bottom is going to be very difficult as well. I'm going to take sort of a hybrid approach with this and we're to mask on the appliances because none of them are actually close to any of the seams. And then what we're going to do is simply fade on the cabinetry, and counter top and wall color with an opacity fade. So what I want to do first is build up a luma matte for the refrigerator. And I think it'd be fun to actually paint that refrigerator on. It kind of goes with the sketch treatment that we've done elsewhere. So I'm dragging another copy of the kitchen down here into our comp and I'm going to go ahead and activate the paintbrush tool. Now over here in the paint settings, I'm going to make sure that I've got it set for RGBA Channels and a duration of Write On. And that's actually going to record the animation of my paint strokes. I also went ahead and reduced the flow here to 30% so that we'd only sort of fade in a little bit of opacity with each stroke. I chose a soft brush here in the brushes palette. This was already selected here but it's a fairly large, soft and squarish brush. And what we want to do is go ahead and paint on this fridge. So in order to do any painting, we need to open this layer in the layer window by double clicking it within the timeline and the painting's going to begin at whatever spot our current time indicator is. So we'll drop that sort of right here at the 30 second marker thereabouts. And what I'm going to do is simply paint this on. And we'll just sort of go back and forth like this, and then we'll fill in, sort of rub in the full color, sort of like that. And now if we go ahead and play back this animation, you'll see that same paint stroking that I just did like so. If we go ahead and expand out this layer and go down to Effects and Paint, you'll see that this is our start and end of the stroke right here. So I can actually drag this back in order to draw that all on a little bit quicker. Now what I want to do is actually combine this with the object buffer that I already have for the fridge so that I'm only drawing on the refrigerator itself. Because if I'd simply go in and create a alpha matte from what we've got right now and go into my comp window, and one other thing to keep in mind is that with the paint, if you're going to reference the alpha mask, you need to turn the Paint on Transparent option On and now you can see that we're painting in the fridge but we're getting the cabinetry around the fridge as well which might be okay. But I want to limit it just to the refrigerator. So what I'm going to do is pre-comp these paint strokes that we've created with the object buffer for the refrigerator. So I'm going to go ahead and select the Paint Strokes layer and Pre-compose, and we'll call this "Fridge Mask." I'm going to go ahead and check to open the new composition and I'm going to move all the attributes into the new composition. And here we have our alpha mask painted on. And what I want to do now is import the object buffer. And I'm just going to go and import all of them while I'm here. And we'll grab the object buffer for the refrigerator. And I'm just going to drag that in here. And what I'm going to do is go ahead and set that below our paint strokes and set the track matte to an alpha matte. So now between frame 30 and 40, you're going to see it paint on but it's respecting the edges there of the refrigerator. And now we can go back into our sketch to Photoreal comp and I'm going to set this not as an alpha matte now but as a luma matte. And now from frame 30 to 40, we'll see that fridge get painted on to the screen. So now we'll basically rinse and repeat this process for each of the appliances creating a new copy of the kitchen render, painting on that in the layer window and then pre-comping it and combining it with the object buffer for that appliance. We'll make sure to offset the time of the paint stroke animation for each appliance so that it gets painted on separately. We'll take that pre-comp and apply it as a luma mask to another copy of the finished kitchen render. For the sink, here, I'm going to use a smaller brush so that we can sort of paint on in the shape of the sink objects. And again we'll go ahead and pre-comp this "Sink Mask" and Paint on Transparent will be on, and here we ended up with two separate brush strokes so we'll adjust the start and end of both of those. Once again we're going to go ahead and grab the sink object buffer, set it as an alpha matte and let's take a look at what that looks like. And actually I want that first brush stroke to happen sooner so I'm going to adjust the animation here so that this one comes in after. There we go. We'll go ahead and return to our main comp. I'm going to drag in another layer and set that new mask as our luma matte. So now we have all of the appliances in and I just want to drop in one more layer of this. And I'm going to fade in all of the rest of the color simply with opacity. So i'm going to go ahead and add that layer. Hit T for opacity, and we'll start that fade at about frame 50 or at about 50 seconds. Set this to zero, set a key frame, come out here to 55 and set the opacity to 100%. And we will go ahead and fade off the lines at the same time. So come back here at about 54 seconds. Hit T for opacity. Set a key frame at 100%. Come out here to one minute and I'm going to set this to 0%. So now we'll just preview from 30 seconds onward. We see the fridge come in, then the oven. We're going to paint on the microwave and then the dishwasher and finally the sink. Now we're bringing in all of the color for the scene and at the same time the lines are going to start fading out. And that's my final composition combined with the sketch drawing that we started with at the beginning here. So what we'll do is go ahead and render this out using the same type of process that we did earlier. I'm going to go ahead and add this to the render queue. We're going to save this with a TIFF format. So I just have a TIFF sequence and output this into our VR Kitchen folder. And I'm happy with this output file name right here so we'll hit Save and go ahead and render this out. After this finishes rendering I'm going to do the same process I've done before bringing this into Media Encoder and saving out the final Mp4 video, injecting it with the metadata and then uploading to YouTube or Facebook. And here's the final 360 degree video in YouTube. You could also view it in Facebook or any 360 degree viewer. Thanks for joining me as we created this 360 degree kitchen visualization. I hope you learned a lot and will begin to create your own spaces in VR and remember to tag those spaces or share them with Maxon C4D and Cineversity. Thanks.
En este tutorial vamos a combinar el boceto y Photoreal VR visualizaciones que hemos creado con el fin de generar una animación final que llama la esbozado de líneas y luego las transiciones a una imagen de Photoreal. Para ahorrar tiempo de renderizado sólo con un frame de Photoreal render y enmascararlo con la salida de SkyBox para crear una visualización dramática de esta remodelación de la cocina. Así que lo que vamos a hacer primero es seguir y crear un nuevo prototipo para trabajar en nuestro esbozo de escena Photoreal VR. Así que voy a continuar y pulsa el botón Nuevo y Comp vamos a mantener el tamaño de 4K con 30 fotogramas por segundo y una duración de un minuto. Y voy a llamar a esta "VR boceto para Photoreal." Y ahora lo que podamos hacer es arrastrar la salida de SkyBox directamente en este prototipo y hacer referencia a ella directamente como un elemento de material o con el fin de ahorrar algo de tiempo de procesamiento porque ya estan renderizados de salida de SkyBox, secuencia de TIFF. Lo que voy a hacer es Sólo tiene que cargar esa secuencia como un material de archivo Así que voy a hacer doble clic en aquí la ventana del proyecto y nos vamos hasta proyecto de cuatro y agarrar el render que nos ha creado anteriormente. Asegúrese de que la secuencia TIFF se comprueba. Y voy a seguir adelante y de arrastre que en y agregarlo a nuestro prototipo. Ahora esta secuencia se aplica a los primeros 30 segundos de curso y lo que queremos hacer en realidad es continuar con ese último cuadro para los próximos 30 segundos. Y por eso voy simplemente seguir e importar sólo el último frame individual. Así que vamos a ir marco de agarre 899 que hay, deshabilitar la secuencia TIFF opción e importar ese frame. Ahora vamos a ir adelante y arrastrarlo a nuestro prototipo como así. Y yo quiero tener este inicio de trama al final de la animación, así que voy a seleccionar nuestra secuencia y pulsa S para ir al y luego seleccione nuestra único frame y pulsa la tecla Alt, abrir corchetes. Y eso va a comenzar en este frame bastidor final de la animación anterior. Ahora tenemos que seguir adelante y poner en nuestro Photoreal rinder así que voy a duplicar vuelva a hacer click en la ventana de proyecto para llevar el diálogo de importación. Vamos a saltar de nuevo en la cocina VR 05 en el render pestaña y voy a elegir esta última Cocina Boceto 04. Y voy a ir arrastre por delante que en la escena. Así que ahora no estamos realmente viendo el Photoreal ya que está en la capa inferior. Pero si seguir adelante y cambiar los modos de capa a estas otras capas, para multiplicar, podrás ver las líneas esbozadas en la parte superior del material de archivo. Y vamos a seguir y pulsa T para la opacidad y la caída de la opacidad de esta capa temporalmente, para que pueda ver que las líneas de boceto se alinean exactamente con la imagen Photoreal. Ahora lo que queremos hacer es averiguar cómo vamos a llevar la imagen Photoreal en la escena. Ahora, por supuesto, para las líneas de boceto, estamos dibujando aquellos progresivamente ya través de nuestra animación boceto. Pero con la imagen Photoreal que tenemos algunas opciones. Una cosa es que podríamos simplemente desvanecerla para arriba con opacidad. O podríamos utilizar algún tipo de enmascaramiento para ponerla. Lo único en que necesita tener especial cuidado cuando enmascarar una imagen de realidad virtual son los bordes. Recuerde que esta imagen entera va a ser envuelto de nuevo alrededor de la esfera por lo que este borde izquierdo y el borde derecho son en realidad una costura. Y lo que necesita para asegurarse de si está enmascarando a través de esa costura de su pintura los trazos son consistentes. Ideal sería que usted evite la disimulación través de la costura en su totalidad también tiene que recordar que la parte superior y de fondo aquí son en realidad muy estirados. Así que intenta pintar una máscara en la parte superior y la parte inferior va a ser muy difícil también. Voy a tomar una especie de enfoque híbrido con esta y vamos a enmascarar en los accesorios ya que ninguno de ellos están realmente cerca de cualquiera de las costuras. Y entonces, qué vamos a hacer?, es simplemente se desvanecen en los gabinetes y encimera y color de la pared con una opacidad de transición. Así que lo que quiero hacer primero es construir un mate de luminancia para el refrigerador. Y yo creo que sería divertido para pintar en realidad ese refrigerador En cierto modo se va con el boceto de tratamiento que hemos hecho en otros lugares. Asi que estoy arrastrando otra copia de la cocina aquí en nuestro prototio, voy a seguir y activar la herramienta pincel. Ahora aquí en los ajustes de pintura, vamos a asegurarnos de que lo tengo configurado para los canales RGBA y una duración de escritura Y que en realidad va a grabar la animación de mis trazos de pintura. Yo también sigo adelante y redujo el flujo de aquí a 30% en lo que nos gustaría de la distorsión En un poco de opacidad con cada golpe. Yo elegí un cepillo suave aquí en la paleta de cepillos. Esto ya fue seleccionado aquí pero es bastante grande, suave y casi cuadrado Y lo que queremos hacer es seguir y pintar en este refrigerador. Así que con el fin de realice una pintura, tenemos que abrir esta capa en la ventana haciendo doble capa click en él dentro de la línea de tiempo y la pintura va a comenzar en cualquier punto de nuestro indicador de tiempo actual. Así que vamos a caer ese prototipo aquí, en el 30 por ahí segundo marcador. Y lo que vamos a hacer es simplemente pintar sobre esta. Y sólo tendremos que tipo de seguir y atrás como este, y luego rellenaremos, una especie de roce en el color, algo así como eso. Y ahora si vamos adelante y reproducir esta animación, verá que la pintura misma frota acabo de hacer como tal. Si vamos por delante y ampliar esta capa e ir hacia abajo a los efectos y de la pintura, se verá que este es nuestro principio y final de la carrera aquí. así que puede arrastrar este hacia atrás con el fin de llamar la que todos en un poco más rápido. Ahora lo que quiero hacer es realmente combinar esto con la memoria intermedia de objetos que ya tienen para la nevera, así que sólo dibujo el refrigerador en sí. Porque si hubiera simplemente entrar y crear un mate alfa de lo que tenemos en este momento y entrar en la ventana de mi composición, otra cosa a tener en cuenta es que con la pintura, si se va a hacer referencia a la máscara alfa, que necesita para convertir la pintura en opción transparente activo y ahora se puede ver que vamos a pintar en la nevera, pero Estamos recibiendo los gabinetes alrededor de la nevera, así que podría estar bien. Pero yo quiero limitar sólo a la nevera Así que lo que voy a hacer es pre-componer éstos trazos de pintura que hemos creado con la memoria intermedia de objetos para el refrigerador. Entonces vamos y seleccionar la pintura capa Strokes y Pre-componer, y vamos a llamar a esto "Máscara Nevera". Voy a seguir adelante y comprobar para abrir la nueva composición y voy a mover todos los atributos en la nueva composición. Y que aquí tenemos nuestra máscara alfa pintada. Y de lo que quiero hacer ahora es importar la memoria intermedia de objetos. Y yo sólo voy a ir e importar todos ellos mientras estoy aquí. Y que agarraremos la memoria intermedia de objetos para el refrigerador. Y sólo voy a arrastrar a aquí. Y lo que voy a hacer es seguir adelante y establecer que por debajo de nuestra pintura trazos y fijan la pista mate a un alfa mate. Así que ahora entre el frame 30 y 40, vas a verlo, pero pintar sobre Es respetar los bordes no del refrigerador. Y ahora podemos volver a nuestro boceto de un borrador de Photoreal y voy a establecer esto no como un mate alfa ahora, pero como mate de luminancia. Y ahora desde el fotograma 30 a 40, veremos que conseguir el pintado de nevera en la pantalla. Así que ahora vamos a básicamente aclarar y repetir este proceso para cada uno de los accesorios crear una nueva copia del render de la cocina, que en la ventana de capas y entonces pre-comping y combinándolo con la memoria intermedia de objetos para ese accesorio. Nos aseguraremos de que para compensar el tiempo de trazo de la animación de pintura para cada accesorio de modo que consiga pintado en forma separada. Tomaremos que la pre-composición y aplicarlo como una máscara de luminancia de otra copia del render de la cocina acabada Para el fregadero, aquí, voy a utilizar un cepillo pequeño para que podamos ordenar la de pintura en la forma de objetos de lavabo Y de nuevo vamos a seguir y pre-componer esta "máscara del fregadero" y pintura en Transparente habrá en adelante, y aquí terminó con dos pinceladas separadas por lo que vamos a ajustar el inicio y el final de los dos. Una vez más vamos a seguir y agarrar la memoria intermedia de objetos fregadero, establecerlo como un mate alfa y vamos a echar un vistazo a lo que se parece. Y en realidad quiero que la primera pincelada ocurra más rápido, así que vamos a ajustar la animación aquí para éste viene después. Allá vamos. Vamos a seguir y volver a nuestra composición principal. Voy a arrastrar en otra capa Y establecer que nuestra nueva máscara como mate de luminancia. Así que ahora tenemos todos los accesorios y sólo quiero caer en una capa más de esto. Y voy a desaparecer el resto de los colores, simplemente con la opacidad. Entonces vamos a seguir y añadir esa capa. Pulse T para la opacidad, y vamos a empezar a que se desvanescan A aproximadamente 50 o al frame de unos 50 segundos Ajuste a cero, establecer un frame clave, llegado hasta aquí para 55 y establecer la opacidad a 100%. Y vamos a seguir adelante y se desvanecen frente las líneas al mismo tiempo. Así que volver aquí en unos 54 segundos. Presionar T para la opacidad Establecer un fotograma clave al 100%. venir aquí a un minuto y voy a establecer este a 0%. Así que ahora sólo tendremos previsto en 30 segundos en adelante. Vemos la nevera entrar, entonces el horno. Vamos a pintar en el microondas y el lavavajillas y luego finalmente, el fregadero. Ahora estamos con todo el color de la escena y en el mismo tiempo las líneas van a empezar a desvanecerse. Y ese es mi última composición combinada con el boceto de dibujo que empezamos con el comienza aquí. Entonces, ¿qué vamos a hacer continuar y hacen esto utilizando el mismo tipo de proceso que hicimos antes. vamos a seguir adelante y añadir esto a la cola de procesamiento. Vamos a guardar esta con un formato TIFF. Así que sólo tengo un archivo TIFF secuencia y salida de esto en nuestra carpeta VR de cocina. Y estoy feliz con este Nombre del archivo de salida aquí, así que va a pulsar en Guardar y seguir adelante y hacen esto. Después de que termine este renderizado que voy a hacer el mismo proceso que he hecho antes traer esto en Media Encoder y ahorrar el vídeo a MP4 final, inyectando con los metadatos y luego subir a YouTube o Facebook. Y aquí está el final de vídeo de 360 grados en YouTube. También podría verlo en Facebook o cualquier visor de 360 grados. Gracias por unirse a mí como hemos creado esta visualización de cocina 360 grados. Espero que haya aprendido mucho y pueda empezar a crear sus propios espacios en VR y recuerde etiquetar esos espacios o compartirlos con Maxon C4d y Cineversity. Gracias.
Resume Auto-Scroll?