Apr 27, 2015 Curvature to Vertex Color Modifier

More : Visual Effects · · · ·

Curvature to Vertex Color Modifier

One popular request on the Autodesk 3ds Max is the curvature map. While you can’t create procedural texture maps with Max Creation Graphs (at least not now) you can create modifiers that set the vertex color map and then use the vertex color map to drive materials.

In the zip file CurvatureMCG.zip there are three tools and a few supporting compounds. To use the simply unzip the file into your MCG user folder (%userprofile%/Autodesk/3ds Max 2016/Max Creation Graph) and restart 3ds Max. Alternatively you can go into the MCG editor and select “Operators > Reload Operators” and then “Build > Evaluate all Tools”.

In the package are three MCG modifiers:

1. Curvature – Computes curvature at each face-vertex based on the angle between the vertex normal and the face normal. The value is clamped at 90 degrees +/- a delta (default 10), converted to a gray scale value, and stored in the vertex color channel.

2. SmoothVertexColors – A modifier that smooths the vertex colors in two steps: a. Gives each face the same vertex color across the face. b. At each vertex averages the vertex color based on the vertex color of each contributing corner.

3. VertexColorGrayScaleToColor – A modifier for visualizing gray scale vertex colors. It converts gray-scale values in the vertex color channel to RGB where 0,0,0 is red, 0.5,0.5,0.5 is green, and 1.0,1.0,1.0 is blue.

I’m also sharing with you a scene (DragonWithCurvature.zip) with the modifiers and a simple material applied to the Stanford dragon.

Under the hood

In order to understand what is going on in the MCG graphs, the key is to first understand how the TriMesh structure is organized as a set of immutable (unchanging) data-channels.

dragon

Data channels are arrays of data associated with different mesh elements: faces, vertices, face-vertices (i.e. the corners of each face), and edges. Data channels can have different types (Int32, Boolean, Single, Vector3, etc.) and can be either direct or indirect. A direct data channel mean the data buffer has the same length as the associated number of elements, and can be indexed in the same manner. An example of this are the material IDs data channel.

An indirect data channel has two arrays: the data buffer and an index buffer. The index buffer is the same length as the number of elements, and is used to lookup data elements. The most common example of this is the topology data channel. The topology data channel has a vertex buffer and an index buffer. The index buffer is the same length as the number of face-vertices (i.e. corners of faces). This is how most 3D APIs represent triangular meshes.  We say that the topology channel is an indirect data channel of type “Vector3” that is associated with face-vertices.

In 3ds Max a common category of data channel is called a MapChannel. In MCG the map channel is an indirect data channel of type Vector3 that is associated with face-vertices. Map channels are exposed to 3ds Max users via the Channel Info Utility which is one way to understand them better.

About Vertex Colors

Despite the somewhat misleading name vertex colors are a general purpose mechanism to store Vector3 data (triples of floating point values) with particular face-vertices. A face-vertex is a corner of a triangle. There are exactly N*3 face-vertices in a TrIMesh, where N is the number of face. This is usually different than the number of vertices, because multiple faces can share a vertex.

BUG ALERT: due to a bug in the current version of MCG, the vertex data channel data buffer must have exactly N*3 data elements.

Article by Christopher Diggins originally appeared here. 

Leave a Response

Search Our Blog

New FumeFX Feature Film & Games Reel

The new FumeFX feature film and games reel is pretty amazing. It showcases the powerful particle generation toolset they have for creating smoke, fire, sparks and more. Check it out!

Read more →

Blackmagic URSA Mini 4.6k Camera Test & Color Grade

Check out this video where the youtube channel Tested, takes a look at the Blackmagic URSA Mini 4.6k camera and puts it to the test. Take a look for yourself.

Read more →

Motion Media’s March Madness Challenge is Back!

Motion Media’s March Madness Challenge – Do you have what it takes to pick them all? Join Motion Media and our customers in a challenge to pick the most correct games in the 2017 College Basketball playoffs and you could win a 5TB Lacie Rugged hard drive!

Read more →

Deadline 9 Now Available

Deadline 9

The latest version of our scalable high-volume compute management solution – Deadline 9.0 is now available. This new version introduces additional security features and UI improvements. For improved security of your render farm, all connections from Deadline to the Deadline database…

Read more →

Photorealism with Quixel Megascans & Redshift

Using Quixel Megascans and Redshift you can create stunning photorealistic renderings using the GPU. Check out these images and see if you can tell which one’s real and which one’s CG.

Read more →


News/Press Releases


Motion Media’s March Madness Challenge is Back!
Mar 13, 2017 | No Comments | Read more →

Motion Media’s March Madness Challenge – Do you have what it takes to pick them all? Join Motion Media and our customers in a challenge to pick the most correct games in the 2017 College Basketball playoffs and you could win a 5TB Lacie Rugged hard drive!

Maxon Announces Cinema 4D R18 – New Features
Jul 25, 2016 | No Comments | Read more →

Maxon announced the release of Cinema 4D R18 today at Siggraph in Anaheim. After watching some of the demos and reading a bit about it, the new features look pretty great. Take a look at the press release below from Maxon, and check out this Promo to find out how you can get a free copy of Cinema 4D R18.

iToo Software Call for Submissions!
Jun 9, 2016 | No Comments | Read more →

iToo software is looking for submissions for their showreel for 2016. If you have any Archviz, Animation, VFX or other shots you’d like included, get in touch with them today.

Autodesk Subscription Changes Coming Soon.
Dec 17, 2015 | No Comments | Read more →

Starting Feb 1, 2016, Autodesk will no longer allow for the late renewal of Maintenance Subscription contracts after expiration and all subscription agreements must be renewed on time. It is crucial that you do not miss your renewal date! Read on to get more information.

Atomos Shogun Studio
Jun 17, 2015 | No Comments | Read more →

Just Announced! The Atomos Shogun Studio is the word’s first all-in-one 4K/HD, 2ch, dual 7” 3RU rack recorder, monitor, and playback deck!

Events


Motion Media Does Art Walk
Apr 6, 2015 | No Comments | Read more →

Last Thursday the Seattle Motion Media Project space launched at the Seattle Pioneer Square Art Walk with a soft opening. The Motion Media Project space featured the work of visual artist, Robbie Schroeder.

Webinar: Network Attached Storage for Creative Workflows
Apr 1, 2015 | No Comments | Read more →

We want to teach you about Seagate NAS Solutions! Join Motion Media and Seagate to learn about how Seagate NAS solutions are ideal for all creative environments from Game Development, VFX and Animation to Post Production.

Motion Media Presents Robbie Schroeder!
Mar 23, 2015 | No Comments | Read more →

On April 2nd, Motion Media Project presents the work of Seattle artist, Robbie Schroeder. Join us at our Seattle, Pioneer Square gallery space for the April 2nd Pioneer Square Art Walk.

Motion Media’s Top 8 GDC Picks
Mar 13, 2015 | No Comments | Read more →

Motion Media attended the GDC 2015 last week. We went, we saw, we conquered. Now we are catching up on our sleep. Check out out top 8 picks for the most exciting attractions featured at the convention hall.

Join the Motion Media Madness Bracket Challenge!
Mar 12, 2015 | No Comments | Read more →

Register for the Motion Media Madness Bracket Challenge and you would win a Robox 3D Printer or other great prizes. Challenge the Motion Media team along with your peers to see who is the best at guessing who’s going to win!

Updates/Upgrades


Deadline 9 Now Available
Mar 9, 2017 | No Comments | Read more →

The latest version of our scalable high-volume compute management solution – Deadline 9.0 is now available. This new version introduces additional security features and UI improvements. For improved security of your render farm, all connections from Deadline to the Deadline database…

Realflow 10 from Next Limit Has Arrived!
Dec 7, 2016 | No Comments | Read more →

Realflow 10 is much improved and faster with a lot of new features. Realflow 10 also has a new lower price! Check out the new Dyverso Multiphysics solver, three new daemons and more.

Phoenix FD Maya Beta Now Available
Dec 7, 2016 | No Comments | Read more →

Phoenix FD for Maya Beta. Phoenix FD can simulate smoke, liquids, ocean waves, splashes, spray, mist, and more. It’s been refined to give users the power they need, with tools that are fast, intuitive and interactive. We’ve also added online licensing as an option.

Maxon Announces Cinema 4D R18 – New Features
Jul 25, 2016 | No Comments | Read more →

Maxon announced the release of Cinema 4D R18 today at Siggraph in Anaheim. After watching some of the demos and reading a bit about it, the new features look pretty great. Take a look at the press release below from Maxon, and check out this Promo to find out how you can get a free copy of Cinema 4D R18.

V-Ray Beta 3 for Revit Has Been Released
Jul 20, 2016 | No Comments | Read more →

V-Ray Beta 3 for Revit is now ready! Beta 3 runs noticeably faster — up to 30% faster. We’ve also refined the interface, improved interactive rendering and added support for Revit 2017.



Latest Tweets

  • Flame Artist, Ross Vincent on marrying old with new as finishing touches were made on the 4K Netflix feature...… https://t.co/BX5PCgCqaT
    about 2 hours ago
  • .@ArupGroup used ancient designs to help the Al Bahr Towers adapt to a harsh Abu Dhabi climate.… https://t.co/viZDpaHGKz
    about 2 hours ago
  • #3dprinting hands is changing the lives of those in impoverished countries https://t.co/2szA1BDGEk https://t.co/JlF3dD9Ivn
    about 2 hours ago
  • I added a video to a @YouTube playlist https://t.co/8cSkng5KLF For the Love of a Good Meal
    about 6 days ago
  • Paradox Short Film (Thriller): https://t.co/g8z2kk40VM via @YouTube
    about 6 days ago