Semi-Transparent Layer Rendering in 3dsMax

Written March 3rd, 2011
Categories: Articles, Rendering / Compositing
3 comments

In this tutorial, I’ll be sharing a quick technique for removing the glows, halos, or other anti-aliasing artifacts from your matte/shadow renders or Render Elements renders.  The key here is getting the alpha map to apply to the object before the anti-aliasing effect blends the edges of your object with the background.  See the examples below.

Black halo around the object.

Notice the black halo around the green areas. This is where the transparency is failing.

These black halos are caused by anti-aliasing and attempting to render at transparent image out of 3dsMax.  When the image is smoothed during the render it blends colors together.  If our color map is anti-aliased separately from the alpha map, we get color bleeding.  In the image above, I’ve replaced the back background

Summary

I detail the following steps below, but for people looking for the quick answer, here it is.

  1. Under Customize > Preferences… > Rendering tab, select “Use Environment Alpha”.
  2. Render against a flat, black background – this isn’t optional.
  3. Save to 32-bit .tga with “Pre-Multiplied Alpha” turned off.
  4. Load the image in Photoshop and select the alpha channel via Select > “Load Selection…”
  5. Create a layer mask for the background layer.

Render with a Black Background & Transparency

Now I won’t tell you how to set a black background since it’s the default and, if you’ve changed the background from the default, you know how to change it back.

3dsMax-customize-preferences

Go to the Customize menu and select "Preferences…"

Engage "Use environment alpha"

Select the "Use environment alpha" option.

Save the Render to .tga with Pre-Multiplied Alpha Disengaged

Disengage Pre-Multiplied Alpha

Disengage the pre-multiplied alpha setting

Now you’re ready to open the file in Photoshop.  Just open your new .tga file, and re-apply the alpha map that has been saved separately embedded within the image file.

photoshop-select-load-selection

Once you've opened the new .tga file, go to Select and pick "Load Selection…"

Load the alpha channel.

Load the image's alpha channel. It should be the default.

Create new layer mask

With your alpha channel as your selection, create a layer mask.

And here’s our final result without any halos.  I’ve added an image of clouds to the areas where the background was black.  The areas in purple were a purple background that was anti-aliased into the image.

Our final render without halos.

Halos are gone- the object can be anti-aliased against any background.

That’s a wrap.  Enjoy!

Free, High Res Studio HDRI Pack

Written November 11th, 2009
Categories: Downloads, Textures / Materials
21 comments

There’s a free HDRI library out there with lots of high resolution images of studio lighting setups. HDRI images are 32-bit graphics that contain luminance information so it’s basically canned lighting setups! Note that these are huge HDRI images (~1000×5000) so they will bog down your computer. Just take it slow and give your computer time to work through it and things will speed up.

It’s free and it’s a torrent, so you’ll want to get a good torrent client if you don’t already have one. I recommend uTorrent; a small, smart little torrent client with lots of good features.

I’ll be seeding this thing for a few weeks, so you’ll always have a peer, but please help me out and keep seeding. It’s not like you’re going to get in trouble with this one. Learn how to use these images with my HDRI Setup Video Tutorial.

Update

I’ve made a number of changes to this torrent that you should know about.

  1. Now includes lower resolution HDRI images.  The originals are too large for ordinary production so you can work with the lower resolution versions first and then swap out for the high resolution versions when you’re ready to take a final render.
  2. Now includes 8-bit versions for the same reason as above.
  3. Now compressed as a self-extracting .exe file.  I know this is creepy, but it’s the most efficient way. If it were a .zip file, it’d be almost 50% larger.  Please trust me.

If you’re really worried about the EXE or are on a slow connection, You can download the original 230mb file here.

Click this link to download the HDRI Torrent File. It’s a legitimate torrent so you’ll need a torrent client. Alternatively, you can click this link to download the massive file directly, but if at all possible, please try the torrent first.

Backgrounds

Written June 8th, 2009
Categories: Rendering / Compositing, Videos
No Comments »

Hi all!

This week I’m providing a quick tutorial on how you can use backgrounds in 3dsMax. I know that 90% of users already know how to add an image background to a scene. However, I’ll also be covering how you can display the background in the viewport as well as a few of the more robust uses for 3d Studio Max backgrounds. Many users don’t think outside the box when it comes to putting your scene into a context, so this’ll put you a little ahead of the curve.

Designed by Alejo "Mr. Bluesummers" Grigera"
©2012 MrBluesummers.com