Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP PEX Implementation and Programming Supplement: HP9000 Series 700 Color Workstations > Chapter 10 Texture Mapping Tutorial

Creating and Editing Textures

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

End-users will want to use texture maps from many different sources. For scientific data display applications, the texture maps will be created from real-world data and may be in almost any for mat. One of the application developer's jobs is to support the importation of this data into the application or to document the supported formats so the end user can translate their data into these formats.

  • Some end-users will want to create their own texture maps using paint programs, scanners, video-in equipment, screen grabs, etc. Again, the application needs to provide a mechanism for the user to use files with these formats for texture maps.

  • The binary version of a texture file reader, read_texture, is included in the directory 〈hp-examples/TexMap[22]. This utility will read files from several different formats and produce a PEXlib-compatible texture data structure suitable for passing to PEXExtCreateFilteredTM. A source code interface to the read_texture utility is provided in read_tex.c in the same directory. All of the example programs included in this tutorial use this interface to read texture files. The utility will read the files formats listed in the following table of file suffixes, formats, supported versions, and typical contents:

    .tif

    TIFF, version 5.0 (6.0 for TIFF JPEG). Contains PC, scanned, or FAX images. Note that TIFF images may be in uncompressed format, or any of the following compressed formats: JPEG, LZW, G3, G4, or Packbits.

    .jpg or .jpeg

    JFIF, version 8-R8. Contains JPEG-compressed images.

    .gif

    GIF, version 87a. Contains xv and xgif images.

    .xwd

    XWD, version X11. Contains pixmap images from xwd (Z format).

    .xbm or .bm

    XBM, version X11. Contains bitonal X bitmap images.

    .xpm or .pm

    XPM, version 3.0. Contains color X pixmap images.

    .bmf

    BMF, version 1. Contains Starbase bitmap images (Z format).

    The file reader, read_texture, is provided for your convenience, particularly to use one of the example programs with a texture file of your own choosing. The file reader is not guaranteed to read all files in the supported formats; in particular, it does not support maps with an alpha channel included. For a more robust and complete solution, the HP product, HP B2157A "Image Developer's Toolkit for the S700" supplies source code for read/write, display, file format conversions, and compression/decompression for multiple file types. Please contact your local Hewlett-Packard Sales Office or the Customer Information Center at (800)752-0900 for more information on ordering this product.

  • Libraries of predefined textures are also available. These provide myriad textures including interiors (carpets, tiles, wood grains), and natural textures (skies, rainbows, etc.).

Sources of Textures

The following products facilitate texture creation and editing. Please contact the companies directly for details and pricing. These products are listed for your information only, and except for the products from HP, do not represent an endorsement by HP.

  • Pixel!FX Scanner support, image viewing and manipulation including resize, blend, rotate, etc. Supports TIFF, XWD, X bitmap and GIF formats. Contact: Mentalix, 1700 Alma Drive Suite 110, Plano, Texas 75075. Phone: (214)423-9377; Fax: (214)423-1145.

  • HP C1788A ScanJet IIc for Series 700 Workstations High-performance, color and grayscale flatbed scanner. Scans to TIFF format. Contact your local Hewlett-Packard Sales Office or the Customer Information Center at (800)752-0900.

  • HP Z1100A RasterOps VideoLive Card Digitizes and captures images from video to main memory on demand. Saves images to TIFF files. Contact your local Hewlett-Packard Sales Office or the Customer Information Center at (800)752-0900.

  • HP MPower Software supports image scanning, view, and manipulation of images for scale, contrast, and brightness. Supports TIFF, JFIF, GIF, XWD, XBM, XBM, and BMF. Contact your local Hewlett-Packard Sales Office or the Customer Information Center at (800)752-0900.

  • HP B2157A Image Developer's Toolkit for S700 Developer's tool for bundled HP-UX Image Lib. ImageLib supports read/write, display, file format conversions and compression/decompression for multiple file types including TIFF, JFIF, GIF, XWD, XBM, and XPM. Includes source code. Contact your local Hewlett-Packard Sales Office or the Customer Information Center at (800)752-0900.

Predefined Textures

There are texture map libraries on CD-ROM available from the following sources. Please contact the companies listed for pricing and more information. These products are listed for your information only, and do not represent an endorsement by HP.

  • Pixar One Twenty Eight CD Photographic textures include bricks, fabrics, environmental, landscaping, etc. Includes 128 512×512×24 bit images in TIFF format. Contact: Pixar, Attn: Renderman Retail, 1001 West Cutting Boulevard, Richmond, CA 94804. Phone: (510)236-4000, fax: (510)236-0388.

  • ImageCELs® Includes building materials, environmental, "designer" patterns, landscaping, and industrial finishes. Supports file formats: 8-bit GIF, PCS, IFF, TIFF, TGA, and DIB; 16-bit TGA, I16, WIN; 24-bit TGA and CEL. To request a catalog, call (408)252-4706 (you must use fax machine handset). Contact: Imagetects™, P.O. Box 4, Saratoga, CA 95071-0004. Phone: (408)252-5487, fax: (408)252-7409.

  • PhotoDisc Photographs of people, nature, places, etc. in PICT or JPEG-Compressed TIFF format. Contact: PhotoDisc, Inc. 2013 Fourth Avenue, Seattle, Washington 98121. Phone: (206)441-9355, fax: (206)441-9379.



[22] The actual pathname of this directory depends on the file system structure. See the Graphics Administration Guide for details.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1996 Hewlett-Packard Development Company, L.P.