ABERDEEN SHANG
  • REEL
  • Houdini / Maya
  • UE4
  • Other VFX PROJECT
  • Blogs
    • Mentor Project
    • MatchtoLive
    • VSFX 755 Class Blog >
      • C: debris procedural primitive
      • C++: side-mask pattern node
      • OSL: renderman moom shading
  • Other Art Works
  • About
  • Award

​BLOG - C++: side-mask pattern node

reference:

Picture
Picture
Picture
Picture

Cinemagraph

final render:

Picture

about this pattern node:

This pattern node is to calculate the angle between the normal on the object and the vector of the camera, which allows users to assign color/ texture base on sides.

code:

AberSideMask.args
AberSideMask.cpp

ui:​

Picture
'Front Color' and 'Rear Color' are where the users chose color or connect the texture;
'Blur' is when the number getting bigger, 'Front Color' and 'Rear Color' can mix together;
'Swap_Colors' checkbox is to switch to different color/texture quickly without taking time to re-connect everything.

hypershade in Maya:

Picture

scene in Maya:

Picture

normals:

In my scene, I use this pattern node on two different objects.
Pictures below shows their normals.
Picture
Picture

function 'Swap_Colors' test:

original
check 'Swap_Color'
original
check 'Swap_Color'
Picture
Picture
Picture
Picture

function 'Blur' test:

Picture

vellum simulation in Houdini:

for the animation, I use 'vellumsolver' in Houdini to simulate the paper movement. Then I export the geometry and animation to alembic files, and reference those alembic files in Maya.
Picture

layers:

I shot the background footage, matched the lighting in Maya, and rendered two different render layers: beauty & reflection;
Because in my background image, the table is black, it really couldn't show the shadows on the table clearly when I did the test. So in the final render, I didn't render the shadows on the table.
Picture
Beauty Layer
Picture
Reflection Layer
I also used photoshop to get the alpha channel of my hands from the background image I took. So that in the later compositing in NukeX, I could get my hands on the top.
Picture
Background Image
Picture
Hands Alpha

node in NukeX:

Picture
  • REEL
  • Houdini / Maya
  • UE4
  • Other VFX PROJECT
  • Blogs
    • Mentor Project
    • MatchtoLive
    • VSFX 755 Class Blog >
      • C: debris procedural primitive
      • C++: side-mask pattern node
      • OSL: renderman moom shading
  • Other Art Works
  • About
  • Award