Friday, October 10, 2014

Specialisation Progress & Official Asterix Trailer!

A month ago I started the second to last course and it's actually a sort of phase called 'Specialisation'. I've mentioned this phase in a post before because I wanted to address some of the ideas I had for it. Unfortunately most of these ideas where really not executable because they either were incredibly over-scoped for someone still needing to learn everything; and secondly, they really didn't coincide with the intended learning goals. It's less about making a product and more about learning the bumpy road towards it; at least that's how I understood it.

So that's where I started studying kind of everything related to VFX workflow. I bought books and subscriptions to bring structure to my learning progress. I've set up a heavy duty roster so I can easily see what 'classes' I am taking on which day and at which time; including what chapters I should read and which I can skip... Writing and reading this aloud it sounds a little silly but it's definitely helping me progress a lot faster than I anticipated. So far it's a pretty solid ride.. and I guess now it's time to show some stuff.

Unfortunately I can only show the stuff I made this week because everything from the past 4 weeks is currently only on 2 drives, both of which are not accessible at this time. One is being used to render out a 400 frame sequence for a presentation next Wednesday and the other is at home - I am in Ghent. So here goes.

Swolla at around 1650. This is what I want to make into a scale model.


Modeling Progress:


I started out with a design of Zwolle, a Dutch city in Overijssel. I used the old inner city as example, called Swolla, and drew a rough illustration of where the rivers, roads, walls, etc would be. Stylized of course because I want to create a scale model. In dutch that's called a "Maquette". In the image above I've started creating polygonal meshes to resemble the design.

Trying to get a feel for the Maquette. At this point I wasn't sure why it didn't work yet as a scale model. The extruded part didn't make it feel more convincing but I figured it had something to do with shaders and a sense of scale; something that's completely missing here. I did figure out what colors I wanted everything to have.

For this ugly image I used a random city generator MEL script I found on Creative Crash but I wasn't happy with it at all. It started looking like an industrial area or a large city with highways running through it and monster rivers flowing on each side. Totally broke the feeling of a old city. I did make the bridges a little prettier.

So I created meshes around and overlapping the roads; effectively creating a much cozier environment. I also took some open source buildings from 3D Warehouse created in Google sKetchup and cleaned them. I had hoped this was quick, but it only turned out to be very dirty. Normals pointing in all direction, un-closed meshes and locked UV sets however, it's really good stuff nonetheless.

Another shot of where I figured I had added enough detail. At this point I used a small script to randomly select faces on the buildings to make chimney's and scale them accordingly.

I also did some really easy rigging. I mean.. really easy.


Shading Progress:

Camera (AA): 3     ...     Back lighting: 0.25     ...     SSS: 0.1     ...     Light passes: 3
For this I took a small selection of the Maquette so I could cut down on render times so I could quickly iterate between attributes and values. I was trying to get papery / cardboard kind of feel to the models. After some research this was actually fairly easy to achieve as it's mostly back lighting and some sub surface scattering. Next to that I was trying to cut down on render time by reducing the multiplier in the Arnold render settings but also light passes, for softer shadows.

Camera (AA): 4     ...     Back lighting: 0.75     ...     SSS: 0.25     ...     Light passes: 2
In this image I cut down render times by 50 percent and managed to increase the subsurface scattering. The back lighting in this image is increased by a factor three which in turn makes sure all the surfaces are lighter and have bright spots where the distance to the next side is smaller. For the time being I was happy with this result and decided that maybe a displacement map or bump map would make it more convincing, but as you can see from the images they made it worse. Although this is just a 'funny' stab at how it looked at one point, I really couldn't get those to look right. 

Terrain shader set up and bump map still applied to the rest of the objects. I quickly realized that even the smallest crack in anything resulted in the material definition being completely off from what I wanted it to be.

At this point most of the shaders were done and I called it quits. Here I tried out the focal distance option in the Arnold camera attributed and attached it to a measure distance node, which in turn would be attached to two locators, both of which were constraint to the camera settings. This way I can move the camera and focal point around and my focal distance will automatically shift. I'm thinking about using NURBS curves and animating locators along those curves to avoid having to manually change things.


Rendering progress:

I'm trying to become accustomed to separating my scenes into separate ones where I eventually use the render scene to reference all the one's holding shader, polygonal and others sorts of information. I feel this works best and keeps the working environment clean.

Testing shadow catcher in my render layers according to the support files provided by Arnold.

Testing shadow catcher in combination with a clean plate I created of the living room floor. I managed to get the reflections right for what I wanted and prepare the scene for HDR image lighting. The right ball in this case is a chrome one to check the reflection. This is simply following another part of the Arnold support file.

HDR image reflection in the chrome ball and a change of coloration in the entire scene. The reflections are accurate and the lighting is almost identical to the recording circumstances. I set up another lighting scene to help with the appropriate discolorations due to spill light caused by blinds and a construction light. This should neutralize all the incorrect lighting.
 

In the above four images I was trying out render settings. Like in the images above relating to shading I removed render passes for lights and tested the difference in duration for different kinds of lights (directional against area lights etc). I found that, against my expectation, the skydome is actually a really fast and accurate way of lighting. I stuck to that and added lights to keep an interesting image but optimized for rendering at the same time.

0m42s - 0m50s

1m21s - 1m32s

1m49s - 1m59s

I didn't want render times for this little piece to exceed 2 minutes so I used the set up from the renders of the hand and played a little bit with the lighting and HDR image emission attributes. Turns out if I render this scene and try to avoid really heavy shadows I can set many of the lighting passes set to 1 or 2 iterations. The anti-aliasing fixes most of the ugly stuff.

EDIT: apparently Google is awesome and automatically made a .gif of the previous images!
Awesome .gif


Where I am currently:

As you can see I decided not to keep either of the two previously shown shapes and collection of scale models. I didn't understand at first why my Maquette wasn't feeling like a one and I think the reason for that is because Maquette nearly always just cut off the terrain. They're not keeping into account all the other stuff because it's really just not interesting enough to see. So that's what I did; Boolean-ed my way through hundreds of meshes, repaired all of them, UV'd them again and textured the cut up parts.

The lighting in this image is not final yet, but has to do for now because next week I'm going to dive into simulations. Fluid, smoke and fire. According to my roster (hehe) I have three weeks to learn and apply.

This is also the model that I am currently rendering for a presentation next Wednesday. The windmills (5 in total) are rigged and animated so it's not a completely static scene.  Some things are still missing and I'm currently in the process of adding some final touches. In this case that's guard towers, benches and some fences.

I am also quietly thinking about redoing some of the footage I've shot. I talked about it with an ex-colleague and we kind of came to the conclusion that it might be much more interesting to shoot for action in the digital scene instead of just moving the camera around for 20 seconds. Still just food for thought.


Asterix!
Yes! Finally a trailer that is actually official. You'll see it also says in the title. It's 2 minutes long and no subtitles unfortunately, but really, you'll get what's going on without knowing a word in French.


That was it again. Hope you enjoyed that wall of text,
Pim

Thursday, September 4, 2014

Houdini Great War Frontline v0.6



Another update as tomorrow is my deadline and tonight I managed to, with a gut wrenching nerve in my stomach, create a working digital asset which actually worked the first time around. I made it in a test library but as it did exactly what I wanted I think I'm going to keep it. Tomorrow I'll spend the day adding a metric ton of parameters so the tool is actually usable.

Also, because I'm really tired and don't feel like writing much I'll post a gallery of screenshots I took during the past few days with some explanations in the same format as I used in the previous blogpost.
These two images show that I've created a locator using a box geo to randomly change the location and shape of barracks. Additional parameters manipulate the size of the placement shape and the density of barracks placed on the terrain. To make sure the barracks don't go everywhere I've restricted their spread to between two trenches.


Although spoiled in the first two images, here I take a group selection and use a color attribute to alter the color of that color attribute. After this I transfer the color attribute of just the group selection to the terrain. Purely cosmetic change for presentation.


A quick layout to explain to friends what exactly is going on in the terrain. I think it looks nice and clear enough to post it here as well. The blue lines are the basic trenches, defined by a set of curves. The yellow area is No Man's Land, the piece of land between opposed front lines. The red's are trenches that are dependent on the blue ones. The white is one that is dependent on the red trenches and the the red one in the background wasn't supposed to be red because it's not dependent on anything. The headquarters can be placed independently.



The above two images are intended for comic relief. I accidentally created a loop and saved the file. Instead of using a foreach node I have become accustomed to using a delete node and a copy node with a stamp expression. Unfortunately I made a small mistake and had the copy node refer to a scatter node that spawned 10.000 points. Not cool.


This is how my network looked this afternoon after finishing a clean up. I am using a LOT of object merge nodes to avoid having really long pipes. Also, I like how it looks like a clown network, though I assure you, all colors have meaning. For example, light blue indicates a "prep"-network, dark blue indicates an "edit"-box, purple "selection"-networks and red is either a "necessary evil" or "cleanup"-network.


This is a zoomed in image of the input nodes from the network featured in the image above. These are all the inputs necessary for the digital asset I wanted to make. This worried me to no end. How will I ever make a subnet with more than 10 inputs I wondered. This apparently wasn't an issue as a digital asset can have an infinite amount of inputs. Which is absolutely great.


The working system! I cleaned it a little bit and this is how it worked out. All the nodes in the white box are necessary inputs and the ones in the red box are -as mentioned before- "a necessary evil". I also added a little read me node with important information about curve direction, input hierarchy information as having 11 inputs can be fairly confusing and some information concerning build times on my machine.


The result of a build time of 3 minutes and 15 seconds. I've tried various different curve setups and they all manage to work so far. Cooking the geometry takes a long time in my opinion but I'm not sure how to optimize this. In total I think the entire network is close to 4000 nodes of which some extremely heavy subdivide and polyReduce nodes.

  
I think this is a pretty acceptable memory usage. I hope my teach has a similar rig to what I have... or better.

I think tomorrow I'll add some images with different trench shapes. Right now I haven't changed it up much as cooking the geometry every time takes so much time.

Thanks for reading,
Pim

ps. delivery is complete. I managed to get all the parameters in and fixed some other small issues related to radius matching and the likes. If I get a major passing grade I'll think about releasing it to the public. Otherwise nope.

Monday, September 1, 2014

Houdini Great War Frontline v0.5

A little update again as the pressure is now getting to me. The deadline went from unclear to next Friday so I'm working hard to finish this tool. Oorah. In the past few days I managed to pull off the following things; each of which I will precede with an image. I also figured out I could tear off panels in Houdini and work on a dual monitor setup. Silly me.

In this instance I was in the process of duplicating the existing trench network and rotating it at it's core. Changing up group names wasn't an issue, though some weird exceptions appeared in a few of the operators. I have also yet to figure out how to make the funk-hole trenches procedural as an exception appears somewhere at the creation of the name spaces.


Here I have sweeped a short line across the trenches and combined the result with the funk-hole circles. The best result presents itself when I extrude the whole shape upward and combine the shapes with a boolean operation called 'cookie'. At this point the downside is, I have to apply this operation to each curve individually -so many different operations- as this cookie node doesn't operate on self-intersecting geometry. 


The non-procedural way of ray casting the trench into the terrain. It works fairly well, though somewhere along the line the smooth node's color selection tends to be too small and I get the same effect as a bad filter for when contrast is being added to an image. Both values on each end get pushed; just on the edge of each side a thin line of opposing values gets pushed into the wrong direction, exactly countering what you're trying to achieve.


The procedural way of ray casting the trench into the terrain, though you can see it brings it's own issues. The ray cast is very accurate and on it's own doesn't bring a whole lot of problems with it but when a facet-node is added to recompute the normals I get shading errors. Most likely these are caused by mesh errors. In the image below the shading errors are more apparent.


Clearly very ugly meshing errors. Not sure how I am going to fix this yet.

That was it again. Thanks for reading.
Pim

Monday, August 25, 2014

Houdini Great War Frontline v0.4

The title is only slightly referring to the number of times I've blogged about this subject, but since I find it so fascinating here's another one. I figured a monthly blog update is pretty sweet especially since this project is running into its final week (hopefully) and next week I'm going to start a whole new one win a completely different area.

Next week I'm entering the "specialization" phase of my education. The penultimate course of my education which allows me to fully surround myself with software I've hardly or never had the chance of working with before.

But for now, screenshots below of my progress and small notes in which I explain what's going on. You'll notice much has been cleaned and many more subnet's have been placed in a 'for each' kind of node setup using stamp functions in Delete and Copy nodes. I've had help from a friend and colleague at Grid-VFX. 


The Original Curve. Dictates the placement of No Man's Land. The piece of land between two opposing forces, usually surrounded by a trench. The term is mostly commonly associated with the First World War.
  


Application of the Original Curve. The flattened land is almost unnoticeable in the top left corner of this image but work wonders for the trench curves that are projected onto the surface later. Especially the SAP's (forward listening posts) are prospering in flatter area's as they're short in length and don't feature a stepped pattern.

>
The Front-line, Support Trench and Reserve Trench are now three separate curves combined in a merge node. After the merge a delete with a stamp expression and a copy node repeat the operations located between the two to mimic the operations of a 'for each' node. A trench digital asset does the rest.

  

After this, a friend helped me out with creating a selection set that I would be able to use indefinitely for each collection of trench curves, given that I precede it with a digital trench asset. Between the selected curved I spawn a number of curves using the parameter in the top right part of the image. The random seed changes the direction and strength of its control points but.. the real trick is being able to adjust the end points of each individual curve to adjust it's direction. The curvature is preserved and the curves never intersect, unless you spawn thirty of them.



Both the placement of SAP's and additional reserve trenches have been applied in this image. The SAP's are created by duplicating the front-line trench in order to maintain their direction; which is pointing at the opposing trench. The same concept is applied to the additional reserve trenches but I used a group selection to cut off the parts of the trench I don't need as it falls out of the 'combat zone'; as dictated by the bounding box of the terrain.




Today I've been bug fixing mostly. Some of which didn't make much sense and others that seemed to be so incredibly persistent on just, for example, the second primitive in a sequence that the easiest solution would have simply been to adjust just the second primitive and leave the rest as is... Coincidentally this is what I did and I've tried a least a dozen completely different input expression to try to break it but it won't anymore. I can't get over how weird Houdini is sometimes, though I guess somewhere it has to make sense.

For next time I want:

  • Funk holes and dugouts between communication trenches the same way as the communication trenches are currently located between the regular trenches. However, they must not connect to the other side and cannot end in a linear fashion.
  • Sweep across each individual curve with a previously created shape. Invert all three curves and calculate their curve points against the Original Curve's curve point positions to create an opposing trench network with the same customization as the original one.


That's it again. Not much time left on this project. Hopefully I can finish these things before I hand it in!

Thanks for reading,

Pim

Friday, August 1, 2014

Astérix Le Domaine Des Dieux, Houdini Great War Frontline and SolidAngle Arnold

Some time has passed and since I didn't write anything last month I figured I'd give it another go. During these past few weeks it has become clear that the production I have been working on is on schedule and will air in French cinema's around November 27th. So as far as I know I am totally allowed to tell you what it is!  Yay!

So I've been working on "Astérix: Le Domaine Des Dieux"; in English "Asterix: The Mansion of the Gods". Unfortunately the IMDB page is empty but there's an unofficial Facebook page which you can go ahead and like. At least I think it's unofficial... I'm not sure... Oh well. Here are some promotional posters.





So in my last blog update I wrote about duplicated curve projections on a procedural landscape and some problems that arose with the technique I used. Firstly it wasn't entirely procedural and secondly it featured a gigantic node system; one that could be easily fit into multiple Digital Assets. Below a duplication of what my comments were on the progress I had made and how I addressed them with the help of a colleague and friend.



  • Create non-stretched UV's for the additional 3 sweeped curves using the length of the line used for the sweep and the measured length of the curve.


  • In the copy node above I output 7 curves which I blend between a blendshape node like you would in Maya, however each curve of my output will be added to it's own separate group. Using a blast node I can now select the copyGroup I need and delete the rest (non-selected). This will then allow me to measure the curve along it's length and apply accurate UV's onto a sweeped mesh. This happens later.




  • Ability to adjust the sweep distance for each individual curve so I can determine the amount of land they smooth out.

  • This turned out to be a different issue than I had first anticipated as it didn't just incorporate the sweeping distance; it would also incorporate the size and shape of the trench. In the first image of the previous paragraph a solution is already present in the shape of a trenchnet digital asset.


    I used an L-system to create a curve that would allow me to duplicate it along a resampled curved but with the premise that the L-system curve's size would be the same as the distance between two adjacent points on a resampled curve. I achieve this by adding a transform node that uses the following expression in the Uniform Scale attribute:

    (1/bbox("../lsystem#",D_YSIZE))*ch("../resample#/length")
    The first part normalizes the bounding box volume of the L system and the second part multiplies it with the edge length determined by the resample node. Then I add normals, copy the l-system along the curve and clean up until I have something I desire.

    Below are some examples of the shapes it can take on in it's current state of development. I'm contemplating whether I should add a few more functions like degradation and additional offset, but for now I'm satisfied.



    A three dimensional result of the above with a sweep looks pretty sweet.





  • Find a way to get rid of the holes that are currently created in the landscape mesh. I know these are created by a group selection a tiny bit back up the selection creation grouping but I can't seem to figure out how to make that selection smaller.

  • This is one where I had to do the exact opposite and increase the reference instead of decreasing the size of the selection to avoid it taking point positions from a location that was not correct yet.

    The solution was to take the curve that creates the height of the reference mesh and increase it along it's own normals by creating a vector between the last and second-to-last point. This is high school math where using an if statement (compare node) calls both the top result as the one below as an output. The normalize node at the end makes sure that we're extending the normal of the curve at the same rate.






  • Create a polygonal bridge between the existing sweeps so I can create a selection for the area's between the trenches. This may become handy for the distribution of details later.

  • This one... I didn't think this through as it's not something I would like to have. I think it would be much better to use the bounding shape of the trench to sweep across the curve and act as a smoother for the landscape than to have a whole general area that flattens everything. Not a fan of this idea anymore. Going to do it differently.



    For now the most difficult step will be to find a way to have all the different trenches connect to one another. I will definitely update this blog as soon as I have a solution for that... And that was it for Houdini. But I did do some other stuff also!

    I can't keep my hands off of Arnold. Such a great rendering tool. Even crappy light setups can turn out to be great physically correct calculations. I also discovered this amazing website with free high quality models ready for everyone to render.


    I specifically want to add that the two renders above are not an exercise in my lighting capabilities but more of a test whether I want to use Arnold for my graduation phase. I'll be starting my specialization soon and I'd like to know some render engine specific things before I even start researching software and hardware packages.

    Anyways, that was it. Thanks a lot for reading!
    Pim

    ps. Arnold coming to Houdini? The best of both worlds? GWAAAAAAaaaaaaa