Wednesday, 11 June 2014

Take One Painting: Intro & CG

The first module of my "Digital Effects" course is called Take One Painting. This is a project that is used to teach us the basics of CG, Compositing, (via set extension) and working on set (placing tracking markers, VFX photography, set measurements, data wrangling). It also gave us the opportunity to work with the cinematography and production design courses.

The Brief

This is the entire plot behind the Take One Painting brief:

--> The heads of department choose a period painting

--> The production designers get shown the painting and are told to design a set based on the painting.

--> All 8 production designers design the set, and the best one is chosen to be used for the shoot.

--> The production designers then build the set and source the costumes.

--> The cinematographers come along, once the set is built, setup the camera in the same POV as that of the painter. They also setup and light the green screen.

--> We come when everything is ready perform all the necessary measurements, place all the tracking markers, record all the camera data, and take all necessary VFX photography.

--> Once the shoot is complete, we spend the next 6 months being taught Maya, Nuke, PFTrack and 

earning any other relevant software which will help in achieving a photorealistic set extension.
In this post I wish to take you through the same journey that I went through while learning about the entire port production pipeline. I am not going to go into very much detail regarding what I learn but I will be treating this as a progress report, and going over any major problems I faced.

The chosen painting this year was Hospital at Granada by John Singer Sargent, shown below:


Directly below are 2 stills from the tracking shot that was filmed:



We were also told to work on a locked off shot of the set, which was supposed to closely match the painting (with some added actions from the actors). Below is the still plate that I used, as well as the end result:




Tracking


All my tracking was done in PFTrack. I made a few tests in MatchMover before hand but went with something that is used professionally to get my final track.

The problem that I had with this footage was establishing a good camera solve. The reason for this problem was because I knew that the camera lens was set to 25mm, but I did not know what the EXACT focal length was. We did shoot a checkerboard grid with the same lens, however the actual lens grid was warped and old so using it would have actually introduced more errors.

I had no access to 3D equalizer for this project so I was not able to use its ability to detect the focal length of the camera. Instead what I did (shown in the image below), is that I manually entered different focal lengths (from 25.00mm to 26.7mm) and used the one that gave me the best result. The Estimate Focal node was not a very accurate way of estimating the focal length as it is all done by eye (exactly like the Orient Scene node below) which I find to be a pretty stupid idea.



Below are 2 images showing what my camera solve looked like using a focal length of 25mm and then 25.6mm. The left most group of points is supposed to represent the back wall of the set. In the 25mm solve these points are almost randomly scattered. While the 25.6mm gave me a pretty solid back wall (it is quite hard to see in the image actually).

25mm

25.6mm


Modelling and Texturing

I don't have many images for this stage because the CG is simply too far away to require any kind of really detailed, close-up friendly textures. Also (as you can see) the models are fairly low res as there would simply be too many things in front of them (the actors on stage, the banisters that connect the pillars etc.) for the detail to be seen.

A simple wheelchair I modeled to add into the background. Low poly and simple textures as it will only be seen temporarily, and it will be placed behind various other objects/actors.




Another simple prop I made. Once again, it was low poly and the textures were not super detailed. In the image of the chair 'cushion' you can see that the texture has various problems such as stretching and not being properly matched with the geometry. However none of this matters as the texture will look completely fine from far away (and the chair is, indeed, very far from the camera).



Below is a low poly detail that would be added between each of the columns. The two images directly below are there to show that my texturing was done using a combination of Photoshop and Mudbox and also CrazyBump for Normal maps.



Nothing in my scene was subdivided at render time. The arches are the only thing that has any real subdivisions and that is because of the way I wanted to model and texture each arch. In the image below, what you are seeing is extra edge loops added in in order to create more deformation. The scene might be geometric and straight, but it is man made, so nothing in it should ever be perfectly straight. The extra edge loops I added allowed me to add this extra level of deformation. This was done using the sculpt tool and in some cases, the selection tool with soft selection turned on.


As some of you may have noticed, based on the images above, I have used a combination of Maya and 3DS Max for the modelling of my scene. This led to a series of problems regarding imports and exports and file types. I will not go into too much detail but basically I needed to export my assets from Max to Maya, but I needed them to be instances. An OBJ file would not give me instanced versions of an object but it would maintain the correct scale. An OBJ would also sometimes place my exported item in the wrong place in my scene. An FBX file, on the other hand, would maintain instances, but in some cases it would also offset my models. Another problem that would occur is that my models would triangulate even though I had disabled triangulation. I found that for some reason I had to make sure I add an Edit Poly modifier to every object at the top of their modifier stack (in Max) and this would disable the triangulation upon import into Maya. The OBJ file would not have this problem, however, it had the other drawbacks that I mentioned.

Lighting

Below are screen captures of different lighting test results. After trying to match the shadow perspective and quality/hardness, I went back and forth from Maya to Nuke in order to compare the luminance values of my CG compared to the live action.




Trying to match the luminance difference between the shadowed areas and the ares fully exposed to the sun. I was sampling the actual footage in Nuke and then sampling the same light and shadow areas in the render.


Rendering

V-Ray was used for the rendering process. I had never used V-Ray before and thought that this would be a great opportunity to learn it. Below are all the render passes I rendered out. The multiple shadow passes were rendered out because I was having problems in the beginning with the default shadows pass. The Raw passes were also rendered out as a backup, in case I was having problems with their non-raw counterparts. One pass which I should have rendered is the Light Select, however I think that my multimatte passes, combined with my lighting and GI pass, might give me enough flexibility to not have to render out the Light Select. 


 Below is my Nuke script for my render passes. NOTE: this script was laid out before I actually knew about how to structure a script. So at the time, this made sense to me, however, now it doesn't so it will have to be re-organised.



Comparing my beauty pass with my comped render passes.




The CG roughly comped in with the live action.



Tuesday, 3 June 2014

Zbrush!

I have been pretty bad with updating this blog because I have been incredibly busy over the past few months working on multiple projects at once and generally not having a life. Although, I still have 3 or so projects that I have to post on here, I decided to put up a couple of quick screen caps from my very first Zbrush lesson.

These were made while I was being taught the tools so it was actually more of a "try out these brushes and see what you can do" thing. Unfortunately these lessons will only take place once a week so I will try and spend more time on this hand until next week's lesson which will be about modelling a torso!


 The hand above was looking really wrong so below is the same hand but altered, after I spent quite a long time exactly how to move certain bits and not others. It still needs a lot of work but I will post more once I have more to post!

Wednesday, 12 March 2014

Tires!

So, after about a month of Maya tuition, I am starting to update my blog again. In our tuition we have gone through modelling, unwrapping, texturing, shading, and we have started doing rigging. I have been working on some side projects which I haven't been to upload onto here but I will do so once I have permission.

For now, I have been working on tires for the Mitsubishi I modeled over the summer. Since I have been learning Maya, I decided to make the tire in Maya!

So, below, in the first image, I have modeled just one piece of the tire. This was modeled in the top down view and was based on the 4th design from the left, on the left screen. The key thing to remember is that the pattern HAS to be tile-able for later on. So, bearing that in mind, I selected the smallest piece of the pattern I needed to. To make life even easier for myself, I only modeled half of the tire as it is perfectly symmetrical on the left and the right.




The next stage is duplicating the piece I have modeled and making an approximate amount of copies which would then be made to revolve and make a wheel. This number is quite arbitrary and simply determines how many times you want the piece of the pattern to revolve (and create the final shape of the wheel).

The image below is the finished product with all vertices merged.



Below are a slightly different set of tires which I had made previously for the Mitsubishi. I chose a slightly simpler and 'bulkier' design to make them look more like off road tires.




After modelling the tire I decided that it needs some really nice alloys; and while I was at that, I decide it would be a good idea to challenge myself a bit (plus I wanted to model some really cool looking alloys).

Below you can see some progress images. I started off in Maya but I ran into problems when it came to constraining multiple edges all around the tire, so I continued the workflow in Max.




I have to be honest, half the reason I decided to do the alloy in Max is because Max is simply a much better 3D package when it comes to modelling (among other things).

Below is the finished result rendered out with a wireframe.

Wednesday, 1 January 2014

Matchmover

I have been meaning to learn this piece of sotware for a while now and I have finally got around to doing it. I have to say, this is possibly the easiest piece of software I have had to learn. For anyone interested in Matchmover it's a must for VFX. It's essentially a stand-alone 3D tracking software which tracks your footage and then sets 3D markers based on the track to calculate the 3D space. The easiest way to explain what Matchmover can do is by showing you. I was unable to upload my video onto blogger, so instead here is a link to the video on Vimeo:

https://vimeo.com/83174201

All I did was track the shot in matchmover, then I exported the tracking data as a 3D scene to 3DS Max and rendered everything together to composite it in After Effects. It is very simply stuff but I am quite happy with my first track.

Sunday, 27 October 2013

Bass Culture Artwork

I was recently contacted by Tomb, the artist I had previously made an album cover for to his EP "Momentum". This time around he asked me to come up with a design for a radio show he is doing (the desing will be used to promote the channel on facebook/youtube/twitter). The channel is going to be called Bass Culture where Tomb will talk about and play a combination of liquid drum and bass and dubstep tacks.

The only advise I was given by the artist was that he wanted something that was black and white and had the words Bass Culture written on it. As you can imagine that wasn't much to go on so I went out in search of images online. I got a few ideas before I decide to go out on a photo shoot. Here are some of the images I chose to use as a starting point for the design.


























I really liked the roots of the tree and thought I could do something with that. At first I changed the levels and saturation so that the grain within the roots stood out more so that I could play around with it perhaps.


After some experimentation I tried a different approach and below is what I came up with:



From this point on it was a matter or adding or removing bits to add to the design as I saw fit. Below are a variety of designs I ended up with:





As I said above, there were just SOME of the designs I came up with. After looking through all the possible outcomes I decided to go with this design:


 After ironing out some final issues I had with the design, this is what the finished product looks like:


Saturday, 28 September 2013

Perspective Match

This is somethign I have been very eager to try out. As I don't have 3DS Max 2014 I will have to model the environment (the hallway) and then use camera points (as opposed to simply using the perspective match function that comes with 2014).

So to start off with here is a photo of what I will be modeling:
Seeing as this is right outside my door, I was able to get up close to see the detail at any point during the modelling process.

All this had to be built to scale as it is necessary when adding the camera points. Below are some progress snapshots showing the progression of the modelling:


Building the walls first and making sure they are to scale. I was frequently going in and out of the room in order to get precise dimensions.


Building the door frames and cuttingout the holes for the doors from the wall (the image above was actually captured after the doors were made which is why the holes are there).


Working on the banister. The right one is smoothed using NURBS as it is easy to enable and disable the feature when I want to see how an object looks smoothed.


Working on some finer detail. This was done using a simple spline and then lathing.

First attempt at using the perspective match. The door frame is off quite a bit so below is the next attempt after adding a few more points.

Looking slightly better but still not perfect. I will keep working on the scene so I can take a video/photo from different parts of the hallway and have it modelled entirely.