1. #1

    Post Creating and exporting Alphas…(Mini-tutorial)

    Hi
    When exporting a ZBrush image to be used in other programs, you may need to have an alpha (mask) created. This mini-tutorial describes four common methods that can be used when creating such alphas.

    The following is a sample image that was created in ZBrush. The image is composed of 3 rings and a sphere. Each of these items was drawn with a different color and material.

    The grayscale images are various alphas that can be created from the above sample image.

    Instruction for creating the alphas...

    Alpha 1: Creating a grayscale mask from depth(z) values...
    This is the most common method as it allows depth information to be converted to alpha. This gray scale alpha represents the relative depth of each Pixol in the canvas. White=nearest, Black=farthest. This alpha can be used when applying ‘special’ depth-sensitive effects (such as fog and depth-blurring).

    Instructions:
    A. Select the MRGBZTool, Unpress TOOL MODIFIERS AUTO CROP.
    B. Click in canvas and ‘drag’ to ‘grab’ the canvas. A new Alpha will be added to the ALPHA Palette and a texture will be added to the TEXTURE palette.
    C. Export the new alpha from the ALPHA palette.
    D. Switch to the target application and import the Alpha.


    Alpha 2: Creating a simple B&W mask from Depth values...
    Same as above with the added step to convert the grayscale into a B&W mask.

    Instructions:
    A. Select the MRGBZTool, Unpress TOOL MODIFIERS AUTO CROP.
    B. Click in canvas and ‘drag’ to ‘grab’ the canvas. A new Alpha will be added to the ALPHA Palette and a texture will be added to the TEXTURE palette.
    C. Export the new alpha from the ALPHA palette.
    D. Switch to the target application and import the Alpha.
    E. In the target application... Select all ‘black’ pixels of the alpha, inverse selection and fill selection with white.

    Note: When an image has a simple flat-color background (such as the above image), you may choose to create the B&W mask from the texture in the target application by selecting all ‘background’ pixels and inversing the selection.

    Alpha 3: Creating a multi-levels mask from color intensities...
    This method is most effective when objects have been drawn with different colors (such as the above rings). This alpha allows you to select different parts/objects of the image based on color intensities.

    Instructions:
    A. Select the MRGBZTool, Unpress TOOL MODIFIERS SHADED MODE , Unpress TOOL MODIFIERS AUTO CROP.
    B. Click in canvas and ‘drag’ to ‘grab’ the canvas. A new Alpha will be added to the ALPHA Palette and a texture will be added to the TEXTURE palette. You may now export the flat-shaded image and use it to create color-based selection in the target application or continue with the next step and export a grayscale version of the image.
    C. Convert the new texture to an alpha by pressing the TEXTURE MAKE ALPHA button. Export this alpha from the ALPHA palette.
    D. Switch to the target application and import the Alpha.


    Alpha 4: Creating a multi-levels mask from material indexes...
    This method is most effective when the objects have been drawn with different materials. This material-index channel allows you to create masks based on the material index of each object.

    Instructions:
    A. Select the MRGBZTool, Unpress TOOL MODIFIERS AUTO CROP, Press DRAW MRGB mode.
    B. Click in canvas and ‘drag’ to ‘grab’ the canvas. A new Alpha will be added to the ALPHA Palette and a texture will be added to the TEXTURE palette.
    C. Export the new texture from the TEXTURE palette in PSD format. When exporting this texture in PSD format, you’ll be presented with the following dialog box…

    This image contains material-index imbedded within each pixel.
    Would you like to save the material-index as a separate channel?


    Press “Yes” and the PSD image will be saved with an added material-index channel.
    D. Switch to the target application and import the texture.
    E. In the target application...Select the extra channel that was imported with the texture. Each pixel in this mask channel has intensity value equivalent to the index number of the material that was used. In most cases, the material index value is small and therefore this mask channel may appear to be completely black. In order to clearly see each of the sections, you will need to increase the contrast of this channel (manually or by using auto-contrast).


    I hope that you'll find this useful (and not confusing)
    -Pixolator

  2. #2
    Senior Member Follow User Gallery
    Join Date
    Apr 2001
    Location
    ITALY
    Posts
    1,272

    Post

    Great, as usual for a GrandMaster.

    Thank You

  3. #3
    Senior Member Follow User Gallery
    Join Date
    Apr 2001
    Location
    St. Louis, MO, U.S.A.
    Posts
    170

    Post

    Oh, yes... very useful!
    Thanks!

    Adman

  4. #4
    Super Moderator Follow User Gallery
    Join Date
    May 2001
    Posts
    21,530

    Post

    Great stuff to know, Pixolator. Thanks!

    Questions about using ZBrush? Check out these valuable resources:

    ZBrush Tutorial Movies: Link
    Download Center: (PDF documentation, models, plugins): Link

    Online Documentation: Link

    ZBC FAQ: http://www.zbrushcentral.com/faq.php
    ZBC Advanced Search:
    http://www.zbrushcentral.com/search....st&forumchoice

  5. #5
    Senior Member Follow User Gallery
    Join Date
    Apr 2001
    Location
    New Zealand
    Posts
    823

    Post

    Good on ya Pix!
    I fiddled around with this in THIS thread, but I goofed it up by replacing the texture map with a white texture map and exporting the picture. Doh!

    You export the alpha grab and the picture and composite them together correctly in PSP or photoshop. Paint Shop Pro gives the best results;- (check out steps- 5 to 8 the my thread above!) and with photoshop it can get a little "dirty" when it comes to fiber brush selecting.


    In Photoshop with the select the black area and select "SIMILAR" from the select pannel to more of the small black areas selected - then save the selection with a name of your choice eg "My new Alpha"


    Then with the RGB picture loaded LOAD the selection from the SELECTION-LOAD dropdown and load the alpha you just named.


    As you can see the selection isn't the best, so I recoment trying it with Paint shop Pro if you can where you can load a black and white picture as an alpha!
    Upham's ZLand! ZBrush For Newbies!
    http://zbrush.cjb.net/

  6. #6
    Member Follow User Gallery
    Join Date
    Feb 2002
    Posts
    81

    Post

    Thanks so much for your time spent creating this tutorial and the information!

  7. #7
    Senior Member Follow User Gallery
    Join Date
    May 2001
    Location
    vancouver
    Posts
    3,693

    Post

    another huge tut to add to the quicklinks pix..awesome thread ..thanks

  8. #8
    Senior Member Follow User Gallery
    Join Date
    Sep 2001
    Location
    Isle of Wight, United Kingdom
    Posts
    1,458

    Post

    Thanks for the useful info.
    Dave

  9. #9
    Senior Member Follow User Gallery
    Join Date
    Jan 2002
    Location
    In a galaxy far far away
    Posts
    2,994

    Post

    As always your insight is most welcome o' wize one of the Zeenites!

  10. #10
    Senior Member Follow User Gallery
    Join Date
    Apr 2001
    Location
    USA
    Posts
    2,205

    Thumbs up

    Thanks for the info! I didn't know half of it like I should have, and half of it I knew half as well as I should of. Errr...

  11. #11
    Senior Member Follow User Gallery
    Join Date
    Jul 2005
    Location
    Brazil
    Age
    52
    Posts
    190

    Default

    Thanks a lot!

    Anderson Soares
    gendragon

  12. #12
    Member Follow User Gallery
    Join Date
    Jun 2007
    Location
    West Coast Canada
    Posts
    67

    Smile

    Pixolator
    Thank you very much for the tutorial.
    I emplyed your techniques to generate several alphas from a old model.
    They make excellent stamps for base reliefs.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Z_bug.jpg 
Views:	406 
Size:	64.0 KB 
ID:	99901  
    Doing the best I know how,with the tools I have .
    http://www.cgmystic.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •