Work in Progress, Part 9 – Water shader

Fantasy Castle

So to add a little life to my water element, I want it to animate and have waves cascading. What I can do is create a new shader, MIA_X like I did for the other elements but fine tune it’s parameters for water.

mia_x_material Continue reading “Work in Progress, Part 9 – Water shader”

Adding life to CG Camera move

Cg Cameras can inherently feel too smooth compared to an actual physical camera move. Now you could spend the time and really add subtle nuances to your camera move or you could explore other means to achieve this.

One way is using a script to randomize your camera move. This will add some artifacting to your camera’s keyframe that will give it a little life and feel more organic. There are a multitude of scripts out there that people have written. One I have  used is from Creative Crash site: http://www.creativecrash.com/

The one that I used is RandomizeKey. It’s a python script that you can copy into your script editor.

1_randomize_key_python

Once copied you can File–Save Script to Shelve for future use.

2_script_editor_save_to_shelf

I typically add extra keyframes to my animation (maybe every 5-10 frames) so that the randomizer has more to work with.

Open up the Graph Editor, Window–Animation Editor–Graph Editor. Select the keyframes you want to randomize.

3_script_editor

Click to activate the script to get the GUI for it.

Spacial Keyframes will modify attribute values for each keyframe. Min/Max Randomness is the amount to be applied to each value. You can have positive and negative values. Start/End Frames is the frame range you want the randomization to happen on. Then you have a whole list of values you can affect on those frames; translate, rotation, scale, etc. You can even affect each parameter for individual x,y,z or as groups.

4_randomize_gui

What you are looking to do is add a little life to your camera move and not cause to much disruption to cause the camera move to be distracting.

Another way to add noise to your camera move is to use fractals. Add a group node to your camera.

a_fractal_group

In the transform Attributes, right click on what parameter you want the fractal to affect. Select “Create New Texture”.

b_fractal_create_new_texture

Select the “Fractal” node.

c_fractal_node_shader

In the fractal node, you’ll want to check “Animated” on. This allows the fractal to animate over your frame range. Amplitude will add wobble to your camera. Ratio can either smooth out the fractal (lower number) or increase it (higher number). Try experimenting with all the different parameters.

d_fractal_node_attributes

You can even go in the 2dTexture node and use the Repeat UV fields to add additional variations. Again subtle bits of artifacts to your camera’s movement is all your want. Little hints of imperfections to give an organic feel.

Try also using both techniques the script approach with the fractal.

Work in Progress, Part 8

Fantasy Castle

Last time we looked at this piece I had switched to HDR Lighting on it.

hdr_light_with_hdr_sun_yel_brighter

The way I had arranged the vegetation on the mountain buttes didn’t sit well with me. It looked too sparse and purposefully placed. Something I wanted to try on this as well as using Maya dynamics, specifically emitting particles on my geometry for the plant life. This would give greater coverage of grass, shrubs, etc. I wanted was to still have control on where the vegetation grew.

particle_emitter_on_main_mesa_geo

I’ve created an emitter with the geometry selected, and click “emit from selected”. This creates an emitter and a particle to work with. I then add an “Instancer(Replacement)” so I can swap out my particle shape to a piece(s) of geometry Continue reading “Work in Progress, Part 8”

Mental Ray Exposure Photographic Node

Maya Mental Ray – Physical Sun and Sky

Switching from Exposure Simple to Exposure Photographic

Create Physical Sun and Sky. Render Settings, select Mental Ray. Under “Indirect Lighting” tab, Environment click “create” under Physical Sun and Sky button.

mental_ray_render_settings

This creates a “sunDirection” light in your scene. Rotate this sun Light to position the Sun’s angle. Physically translating this light does not change it’s angle, only the rotation does. It is basically a Directional Light with extra bells and whistles.

It also creates a “mia_exposure_simple node” that is attached to your camera and is visible in a tab for your camera’s attributes. Now the parameters of this node aren’t as user friendly as one would like. You have gamma and gain that seem to make sense, but the rest aren’t as apparent (at least to me).

mia_exposure_simple_node

Now based on the settings of the Exposure Simple, I can Gamma or Gain the image, but rest of the terms (Pedestal, Knee, Compression) I don’t know what they mean or will do.

This is the reason want to switch to the “mia_exposure_photographic” node.

mia_exposure_photographic_nodeNow this node has more options and they are listed in more photographic terms; ISO, camera shutter, F number (F-stop), burning highlights, crushing blacks, and etc.

To swap from the “Exposure_Simple” node to the “Exposure Photographic” node, select your camera, then go to “Window–Hypergraph:Connections”.

Now open up Hypershade, click on Mental Ray—Lens, then click on the “mia_exposure_photographic” node.

create_mia_exposure_photographic_node

This creates the “mia_exposure_photographic” node and you’ll see it appear in the Hypergraph Connection windows.

hypergraph_connections

Now you can swap them out. Click the “exposure_photographic” node, middle mouse drag to the shot_camShape. A “Plus” sign will appear and release middle mouse button.

Now it will ask you where to assign the connection. Click “Default”.

switch_nodes

This assigned the Exposure Photographic to the Camera.

Now you need to assign it to the Physical Sky node. So you will click the Exposure Photographic and middle mouse drag it onto the “Physical Sky” node. This time you will click “Other”.

physical_sky_connection

A pop-up dialog opens where you need to select certain input and output connections, but by default they are hidden so you have to turn on “show hidden”

connection_editor_show_hidden

Now click “message” on Output, and “miSkyExposure” on Input.

message_sky_conn_editor

You will see the connections change. Now you can delete the “mia_exposure_simple” if you’d like.physical_sky_hooked_up

Now you just need to change your RGB space for the Exposure node. Click the Physical Sky.

In it’s attributes, change the R, G, and B values to .318 for each.

rgb_convert1

Another piece to change is to render with a MIA Material when using Mental Ray and because we’re dealing with Exposure nodes (whether exposure_simple or exposure_photographic) you’ll need to gamma correct the shader as well.

So first, let’s create an MIA material X.

MIA_material

Graph the MIA shader by clicking Input/Output setttings.

input_output_graph

And now you’ll just need to add a Gamma correct node to it.

In Hypergraph, select Utilities — Gamma Correct.

gamma_correct

Now, select the Gamma Correct, middle mouse click it onto the MIA shader and assign to Diffuse. The Gamma Correct needs to be assigned to the correct color space for 2.20 Gamma so enter .454 in it’s settings.

gamma_correct_settings

Now you have a balanced 50% grey shader and when you input a file texture it will be color corrected for your renders.

You can update all your cameras by going to Physical_sky tab on the camera your converted, and at bottom “Update Camera Connections”. Now all your scene cameras will have the update.

That’s basically it.