Friday, 10 June 2011

Alternative Styles (1)

As part of the visual development of my project, I have started to explore different styles which could be used to present the outcomes of my technical development.

Using the final frame (1900) of one data-set, Adobe Photoshop was used to create several concepts, each of which present the data in slightly different ways. To highlight the differences, this first image shows the style of a very early render, followed by a more recent version (achieved mainly through compositing - more information can be found in a previous post here);

cellVis_v106_meta_hou

cellVis_data1_cells_locators_comp

The first of these newer examples (below) tries to maintain simplicity. Although similar to the previous examples, there is nothing going on except the cells growing and expanding, forcing the viewer to focus on this and only this.

I have also chosen to remove the blue colour from the cells, and instead apply a saturated grey colour - this colour choice is much darker and aligns itself more with the fact that it represents the growth of cancer, a potentially fatal condition. This new colour also suits the new background better, whilst still being clearly visible (due to the whiter edges on the cell surface).

From a technical perspective, the gradient background was removed, as this caused problems with banding once compressed. By adding a 'cloudy' background with a small amount of animation (as a final sequence could have) it would minimise visual defects. A subtle vignette was also added, helping to maintain the viewer's focus in the middle of the frame;

cellVis_compColourTest_1900

The next example uses the same cell appearance, though just with a different background. The background style was inspired by the images here, although has been modified slightly to suit my own tastes. This contrast between the cells and the background, makes the content stand out more - also, the background could potentially be animated (the 'light bursts' could move and/or change colour over time);

cellVis_silhouetteBurstTest_1900

Finally, I wanted to toy with the idea of using negative space (particularly as cancer is something which cannot be 'seen' naturally). So far, the styles created have concentrated on what we can see - instead, I wanted to create an image which had a focus on what we can't see (similar to using a silhouette cut-out). The idea behind this third attempt, is that the background bokeh-style effects could be animated and moving around slowly, but the cell growth would still be happening in the front of the frame. I have also previously conducted experiments, which could enable this background to gain motion (found here).

cellVis_silhouetteBokehTest_1900

These ideas have been developed as still images, although they could also be created as animated sequences. By creating images first, it acts as a 'prototype' and lets me see how the final result could look. Moving forwards, I plan on creating more images first and fully exploring the different looks that could be achieved. Once a final style (or more than one) has been chosen, I can then create that as an animated sequence.

Wednesday, 8 June 2011

Creating Dust Effects

Continuing on from my recent work involving compositing in After Effects (here), I decided to explore the different methods of adding dust and/or bokeh effects - either in 3D or 2D based software. My goal was to find the most efficient method of adding the effects that I wanted, without having to learn a large amount of technical skills - allowing me to maintain a focus on the process of visual experimentation.


Initially, I had started by creating dust motes using a particle system in Maya (above). This gives the most flexible result, but is time-consuming. It does factor in object depth however, creating a 3D particle system which objects can be placed inside of.

As a different approach, I tried using the Particular plug-in for After Effects (first used here). This is much simpler to use, and I created a scene with dusty clouds (or could be used as a simple bokeh effect in the background). This created an entirely different result to the Maya particles, as it is not truly 3D, and cannot 'surround' my cell structures. It is much easier to get a nice-looking result quickly though.

The result of my Particular testing can be seen below. It is important to note that I was only testing motion and style, rather than colours, so all of these videos are greyscale purposely;


Finally, I used After Effects to composite the two 'passes' together, out of interest, and decided that although each approach has it's own advantages and disadvantages, they do work well together, because they do different things. The result of this can be seen below;


Although these are relatively short and simple tests, each method can be easily adapted and scaled to fit a larger composition, or longer timeline - something which will be important in the next stages of my projects.

Monday, 6 June 2011

Getting Particular

Between semesters, I decided to briefly sidestep my main programme of study, and play around with After Effects, using Video Co-Pilot as inspiration.

My aim was to take a break from all the technical development I had been working on - avoid scripting - and get back to visual development, so that I could continue down this route when returning to my programme of study at the start of semester 3.

Using an After Effects plug-in, called Particular (by Trapcode - more information here) I set out to create interesting particle-based sequences. To help in this process, I followed through a couple of video tutorials, and then adapted and experimented further to get something really nice looking.

At the moment, I am not sure if these techniques are something I will use moving forwards, but I am still exploring different options, especially when considering how I will present my work at the Masters Show later this year!

Below are two videos which show some of the experimentation that took place;


Sunday, 8 May 2011

Compositing Goodness...

Following on from my most recent post (here), I continued to develop the scene I had been working on as a 2D image in Photoshop (using 3D renders from Maya).

I then added additional layers/objects to the Maya scene file and organised the appropriate render layers. Image sequences were rendered, and imported into After Effects, where a 10-second sequence was constructed - using the same 'style' as the prototype image.

The completed test sequence can be seen below;


Moving forwards, I would like to continue this visual development, perhaps with the addition of camera movement and depth-of-field techniques.

Thursday, 5 May 2011

Having Fun!

In terms of technical development, my knowledge of 3D software, scripting skills and problem solving abilities have surpassed those that I need to be able to complete the projects I am currently working on.

This has given me the time and opportunity to focus on visual experimentation, bringing a bit more fun back into my work, and making it more interesting than searching through pages of MEL commands!

I have been experimenting with using the skills gained in the Going Live module, to enhance the output and presentation of my previous cell visualisation work - using my skills as a digital artist.

Starting with a previous data-set, I adapted one of my scripts to create locators instead of spheres. I then created a simple particle system and used a modified version of a script provided by the external examiner to 'attach' the particles to the locators. This meant that I could use Maya's own 'metaball' system - not strictly metaballs, as it is a particle render type called "Blobby Surfaces", but it gives a similar effect. The image below shows a beauty render of the blobby surfaces;

cellVis_data1_cells_locators_original

Once this model had been created, I started to experiment with shaders. After reading some articles in this months 3D Artist and 3D world magazines, I created an MIA mental ray shader, and added a mental ray fast skin shader (normally used for subsurface scattering) and adjusted the colours and attributes to create a suitable look.

I added lighting in the form of two area lights, which used the mental ray area light options to transform from squares into cylinders, 'wrapping' around my geometry. Decay was set to quadratic (to create more accurate lighting) and the intensity of the lights was increased significantly (around 4500 each).

The next stage was to incorporate dust motes floating around. This is something I could imagine in my head, but was not sure how to implement. I looked at adding this in post-production, but although this could be quicker, did not provide enough control (or use 3 dimensions). I created a new scene file and using a particle emitter, created a particle 'explosion' - the forces were then zeroed out, so that I had a static particle cloud. I added my own gravity and turbulence fields, and tweaked these until I had the movement that I liked.

Finally, I setup render layers to output the passes I wanted - a MIA shader pass, a second MIA with an outline style shader, and separate pass for dust motes. After rendering a single frame, I moved into Photoshop and started experimenting with compositing these passes together, to create the look I wanted. I also added some fake bokeh effects in the background, coupled with some randomly generated cloud textures. The final image can be seen below, looking entirely different to how it first started (above);

cellVis_data1_cells_locators_comp

At this stage, I wanted to make sure that I could recreate this look with image sequences, so I started work in After Effects. Fortunately I was able to mirror this image in video form, and can swap in the rendered image sequences when finished. By working in AE, I realised that I would need to add a matte pass for the cell geometry. Below, a short video shows the breakdown of how this shot was constructed, and although static, shows how a final video could look;


I have thoroughly enjoyed this experimentation, and I have created something I am really happy with - something very different to the first attempts (which can be seen in an earlier post here). Although I don't yet see this as a finished piece, I can already see ideas developing, and it is good to try new techniques and methods of presenting the same mathematical data... more importantly it is good to get back to being an artist, something that I did not realise I missed until now!


Friday, 29 April 2011

Advanced Production (Summary)

Despite returning to Semester 2 later than expected (due to illness), I have made excellent progress, with major breakthroughs in overcoming many of the challenges my project was facing.

My programme of study takes a more visualisation based route, and I am working with the University mathematics division to visualise numerical data (gained from their mathematical models) which represents the growth and development of cancer cells (or solid tumour growth).

Working with numerical data has created it's own set of challenges, as Maya cannot read or interpret this in it's off-the-shelf form. As a result of this problem, I have developed skills in using Maya's own scripting language, MEL (Maya Embedded Language) and also a second scripting language (used more widely) called Python. Although this has been a difficult and time-consuming process (several months of learning, which is still ongoing) I have been able to harness this new understanding and create custom tools which can be used to read the mathematical data and create appropriate 3D geometry.

Throughout learning each scripting language, I referred primarily to online sources, and the 'official' documentation provided. I also used the Digital Tutors service, which was both informative and relevant, helping me overcome the hurdle of knowing where to start, and what to focus on.

Through creating my own custom tools, I was able to work with the numerical data-sets provided. Starting with simple tests, I was (eventually) able to construct fully animated scenes containing simple spheres, representing the individual cancer cells, and although time-consuming to process, these results opened the way for more advanced development of the data and it's visual attributes.

I spent some time experimenting with Maya's render layers, and compositing passes using Nuke. This was as a response to feedback given last semester - not everything has to be done in 3D, as it can often be quicker and easier to complete some work in 3D, but fine-tune the details in post-production. This helped me develop possible ideas for the look of cells, when considering texture on a microscopic basis, and I also experimented with 'faking' depth-of-field techniques to enhance this.

Although creating spheres was great, I wanted to push my skills further. I spent time working with RealFlow, Cinema 4D and Houdini - three great 3D packages. With the exception of RealFlow, these were entirely new to me, and although Cinema 4D was fairly straight-forward, Houdini had a very steep learning curve. Using my Python scripting skills, I created a large-scale metaball system, equivalent to the spheres created in Maya - this was a challenging task, forcing me to solve several problems, whilst trying to script in a language mostly new to myself. The result of this technical experimentation allowed me to create an interesting almost-organic 3D structure, which moved and behaved as one surface, instead of 1068 individual cells.

After completing these Python related tasks, I returned to Maya to work with additional data-sets, still showing the growth and development of cancer cells, but in a different format. This data would require not only animated movement of cells, but changing colours, and eventually, complex density 'clouds'.

The difficulty at this stage in my work, was the size of the data-sets... one of which contains over 30 million lines of information (a text file weighing in at around 800mb). Despite breaking this into smaller chunks of data, it was still computationally intense, and difficult to work with (often crashing high speed computers). I spent time streamlining and optimising my scripts, and the way they handled the data - as an example, my oxygen density script was originally taking around 350 seconds per frame to process, whereas now it takes around 90 seconds, about a quarter of the time. As I have learned more about MEL, and gained a better understanding of the language, I have been constantly improving and refining my scripts, to ensure the best efficiency when working with large data sets.

I am currently working with new additional data-sets, which again have constantly required me to think and problem solve... now that my scripts are optimised, I am confident that my scripting abilities are suited to a wide range of data types, across two very different scripting languages. This allows me to tackle upcoming problems with new knowledge, based on the experiences I have had over the last ~3 months, giving me a definite headstart.

In summary, my practice-based learning has developed the following;
  • Scripting - both MEL and Python, for simple and complex tasks (including 3D visualisation)
  • Improved software knowledge - Maya, RealFlow, Nuke
  • New software knowledge - Cinema 4D, Houdini
  • Advanced 3D skills development - particles/dynamics, data input/output, script optimisation, rendering
  • Experience in 2D compositing with 3D-based image sequences


Due to the sensitive nature of the mathematical data I am working with (and as the source data is effectively the result of unpublished research) I am unable to post a large amount of my visual work online. However, this sensitive material will be made privately available during course presentations, and to module assessors as necessary.

Sunday, 17 April 2011

Visible Progress!

Over the last couple of weeks, my role in the Going Live project increased significantly, and then stopped completely. All of the animated shots had lighting added, and then I added the render layers/passes and started feeding completed shots through the render farm (which was considerably faster than I expected it to be). Sound effects and music were then added by the sound team, creating our finished advert.

It took a long time to get there, and there were problems along the way, but I learned a lot (particularly about rendering and compositing) and I am glad we all got there in the end! Next week, we are due to meet with the company in their London studio and present our finished project - hopefully the feedback will be good!

As for my cell visualisation work, this has been making good progress since my role in Going Live has lessened.

The first data-set I was working with, which represented cells and fibres in 2D space, now has fully working scripts, which are streamlined to work efficiently (or to actually work at all!). I am currently awaiting feedback on the video outcome of this work, so that I can decide where to take this next.

The other data-sets (involving cells, blood vessels, and oxygen density maps) have made even better progress. Again, after optimising my MEL scripts, the amount of data (several million lines of information) has become manageable, although time-consuming to process. I am currently part of the way through 'translating' this data into Maya's 3D environment.

An example render from the cells file can be seen below. This example frame is approximately two thirds of the way through the cell data, and incorporates some 'noise' on the cell surfaces to break up the uniformity (an idea suggested by the mathematician who provided the data);

cellVis_g_testPasses

As for the oxygen density, I decided to continue using a single polygonal plane for this, with grid points in the data having a matching vertex on the 3D geometry. The data then lifts/lowers each grid point/vertex between 0 and 1, where 1 is the most dense area of the oxygen 'clouds'.

The 'look' of these clouds is then controlled using one of two shaders.

Shader 1 ("Clouds") is coloured white, and uses a vertically-aligned ramp shader for it's transparency value, where 0 is fully transparent and 1 is fully visible. This means that as points on the vertex grid are changed in the Y-axis, their transparency is also changed (as they are moved higher, they become more visible).

Shader 2 ("Bands") expands upon this idea, and uses a second ramp for the colour (from blue to red, low to high). The transparency ramp is also 'sliced' into bands which are evenly spaced vertically - this means that only the narrow bands are visible, giving us slices of colour (where the colour is defined by where the slice falls on the colour ramp, rather than a fixed colour). This gives a result similar to the high/low pressure bands which weather presenters often use, but with colour added.

I have included a video below, which better explains these shaders - the white 'cloud' is shader 1, and the coloured 'bands' are shader 2;


Although this video shows a top-down view of the scene, it is important to remember that these effects are generated in 3D - moving forwards, I could include moving camera or changing points of view to highlight particular events.

Also, the oxygen density visuals are considered another 'layer' which I can add to the cells and blood vessels, creating a more complete final output.

I am not sure as to how this final output will look at the moment, as I am still developing the visual elements of each of the data-sets, but progress is good and things are at least working now...