0
$\begingroup$

I want to create a rendered image of a scene and in addition several alpha chanel images that are only 100% black and 100% white. The objects should be seperated from the background. My goal is to import those images to Photoshop for an overpaint and I need the alpha chanel images to quick select the different elements of the image like items, building etc.

How do I render those alpha chanel images?

Thanks in advance!

PS.: is it possible in blender to render only occlusion shadows in fron of a 100% white background?

$\endgroup$
  • 1
    $\begingroup$ related: blender.stackexchange.com/questions/40848/… and blender.stackexchange.com/questions/1303/… $\endgroup$ – cegaton Apr 28 '17 at 13:28
  • $\begingroup$ and blender.stackexchange.com/questions/16152/… $\endgroup$ – cegaton Apr 28 '17 at 13:34
  • $\begingroup$ Tell me if I've got this right - You have a main bkd image and on top of that some alpha layered labels. If this is the case you could make a single alpha layered "Label" layer with the same pixel resolution and export that so your labels could be imported into another app and laid over the bkd image's layer. i.e. two separate layers allowing you to edit the bkd image without affecting the labels? $\endgroup$ – Edgel3D Apr 29 '17 at 4:55
  • $\begingroup$ Hi Edgel, thanks for your reply. I'm sorry that I can't give you a competent answer since I'm fairly new to blender and I lack a lot of knowledge - especially outside pure modeling. Shame on me, but i don't even know what a bkd image's layer is. I rephrase my question in hope to better explain my goal: After I did a 'normal' render of an object, I want another render of the same scene. But this time, the object shall be white. And the background shall be black. No shadows, no grays. How can I achieve that. Thank you! $\endgroup$ – Baudolino Apr 29 '17 at 10:53
  • $\begingroup$ Hi again Baudolino. Is this what you're after? The link is to 3 images, the model, black on transparent and white on transparent. Had to use transparency bkd otherwise the black model would be black on black! If these are what you need I can place an answer here together with the blender file. the pics are here - dropbox.com/sh/jackg5k42di15wl/AADyDUDafdPsyX_7P6XfwWFta?dl=0 You'll have to download the black & white models and view them in Gimp $\endgroup$ – Edgel3D Apr 30 '17 at 1:00
1
$\begingroup$

To render a model as a matte black or white on a transparent background:

Firstly, for the black matte image, simply switch the lights off! Locate the lamp being used in the Outliner panel at top right. Click the eye and camera symbols off. (they're at the extreme right)

Next we make the background transparent -

At right in the properties panel (under the outliner panel) click on the camera icon. (at the left)

Go down to the shading tab, open that and at the right change "Sky" to 'Transparent'.

Close the tab and go down further, open the Post Processing tab and make sure both the sequencer and Compositor boxes are UNTICKED. (precautionary step) Close that tab and -

Further down again, open the "Output" tab. Set the format (just under 'Placeholders') to "PNG". At the extreme right again you'll see a button called RGBA. Highlight that (click on it). That's your alpha channel.

While you're there check the output folder is where you want the image to end up.

We're almost set up but you might want to change the pixel resolution for your images and can do that back at the top. Open the "Dimensions" tab and set the xy pixel sizes. (I use the 100% option just under those slots and also make sure the "Time Remapping" figures remain at 100 & 100)

That's the output set. Close the tabs, get back into the 3D window and press N.

The window's panel will appear. Open its "Display" tab and tick the "Only Render" box.

If you're wanting to render using Blender's internal renderer you'll have to position the camera for the view you're after.

If you're a little on the lazy side like I am, you'll render it out as it appears already, using the OpenGL renderer which is much much faster, particularly for video. That can be accessed at top left of the window from the (amazingly) "Render" menu !

To make sure the pic does render, change the timeline's frame range from 1 to 1.

Go back to the Render menu (at top) and click on "OpenGL Render Animation".

The pic will appear in the output folder. When viewed in Gimp or Blender's Video Sequence Editor, you'll see the black model with a checker pattern behind it. That's the alpha layer.

Make sure you rename the pic file because the white model is about to write using the same filename.

The white Model -

Change the Model's material colour (diffuse) to white with slider up all the way.

Turn the Specular slider back to zero.

Sllde the shading "Emit" slider to full. (2.00) It often comes out a little brighter than 'shadeless' this way.

...and you're all set to go. (You don't need the lights)

Render that out and you've got what you want !

The Blender file is attached, it's settings left at the white cube on transparent

  • Happy Blending!

$\endgroup$
  • $\begingroup$ Thank you so much. It works perfectly, exactly what I needed! Thanks again to you, Edgel. And to this great community. $\endgroup$ – Baudolino May 2 '17 at 13:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.