D-Type Shading Rasterizer

A one-of-a-kind specialized rasterizer for rendering exceptionally realistic vector graphics with smooth color gradation.
D-Type Shading Rasterizer

Download Purchase

D-Type Shading Rasterizer is a portable and special-purpose rasterizer designed for rendering highly realistic scalable vector art, such as VIVO scalable photos, or complex SVG and gradient meshes sometimes found in other vector formats. Unlike D-Type Direct Color Rasterizer, which processes only one color value per contour, D-Type Shading Rasterizer is designed to concurrently apply many RGBA color values to the same contour. More precisely, this rasterizer combines the energy of multiple spatially separated color sources to generate smooth color transitions, or color gradients, within each contour.

Typically one color source is located at each contour’s vertex, and a color interpolation algorithm is employed to compute the final pixel color values inside the contour. D-Type Shading Rasterizer currently supports six color interpolation algorithms:

The characteristics of these algorithms are illustrated further down. Despite their technical differences, they have one thing in common: all of them utilize multiple color sources to generate a smooth spectrum of colors or, alternatively, different shades of a single color, within the interior of individual contours. This smooth and gradual change of color — or color gradation — can be utilized to generate vector images that look highly realistic while remaining fully scalable and resolution-independent.

This is best illustrated by the following example:

FIG 1 This is a 100% vector based image rendered by D-Type Shading Rasterizer!
FIG 2 It can be zoomed in...
FIG 3 ...or rotated, stretched and twisted as you wish!

Notice that in the images above, no contour is painted using a single (flat) color value. Instead, the contours are painted using many different color shades, resulting in a naturally textured appearance. Additionally, observe in the second magnified detail how the color outside the owl’s outer edge transitions gradually from white to light grey. Yet, the actual edge line is perfectly sharp and smooth.

The contours in a vector image can be triangles, polygons or other complex shapes consisting of straight and/or curved segments. D-Type Shading Rasterizer is not limited to rendering triangles only, unlike most GPUs. With D-Type Shading Rasterizer, end-user applications can create much richer vector-based geometries and take advantage of how different color interpolation algorithms interact with these geometries. Furthermore, D-Type Shading Rasterizer imposes no restrictions on the complexity of the underlying geometry. In other words, applications can supply to the rasterizer just a few contours or, in the case of highly realistic vector images, thousands of contours.

Much like D-Type Direct Color Rasterizer, D-Type Shading Rasterizer generates the entire vector image during the rasterization process, in a single pass. So it’s exceptionally fast. In fact, the rendering machinery behind D-Type’s VIVO Image Vectorizer relies on D-Type Shading Rasterizer to render extremely complex and detailed vector images designed to match or exceed the quality of high-resolution photographs.

Features

Key Specifications

Coordinates

  • Integer
  • Fractional
  • Float

Color Shading Algorithms

  • Mean Value Coordinates
  • Distance Field - Method A
  • Distance Field - Method B
  • Inverse Distance Weighting
  • Gouraud Shading With Anti-Aliased Edges
  • Gouraud Shading Without Anti-Aliased Edges

Advanced Features

  • Amazing quality
  • Smooth color/shading transition between adjacent fill areas (all algorithms except Inverse Distance Weighting)
  • Perfect stitching between adjacent fill areas
  • Not limited to rendering triangles only
  • Supports both convex and concave polygons and arbitrary shapes with straight and/or curved segments

Dependencies

None

Availability

Static or shared (dynamically linked) library for:

  • Microsoft Windows (all versions, both Intel and ARM based)
  • macOS (all versions, both Intel and ARM based)
  • Linux (all modern distributions, both Intel and ARM based)
  • BSD (FreeBSD, NetBSD, OpenBSD)
  • Raspberry Pi
  • Android
  • iOS
  • Xbox
  • Custom builds (32-bit and 64-bit architectures)

See Platforms and Portability for details.


Examples

Disconnected Shapes

Each color shading algorithm exhibits different characteristics regarding how color changes within the contour and along its edges. The following chart demonstrates these characteristics. On the left side of each illustration, the top shape (triangle) has yellow, green and red color sources at its corners, while the bottom shape (quadrilateral) has green, blue, blue and red color sources. On the right side, the top shape (triangle) has blue, yellow and red color sources at its corners, while the bottom shape (triangle) has yellow, blue and red.

Illustration of edge anti-aliasing and color shading algorithms
Algorithm Sample Output
Mean Value Coordinates Mean Value Coordinates
Distance Field - Method A Distance Field - Method A
Distance Field - Method B Distance Field - Method B
Inverse Distance Weighting Inverse Distance Weighting
Gouraud Shading With
Anti-Aliased Edges
Gouraud Shading With Anti-Aliased Edges
Gouraud Shading Without
Anti-Aliased Edges
Gouraud Shading Without Anti-Aliased Edges

Conclusions

Adjacent Shapes

This example closely resembles the first one, with the triangle and quadrilateral on the left now joined along their bottom and top edges, respectively. Similarly, the two triangles on the right have also joined. This setup illustrates the color transition between adjacent fill areas and the edge stitching behavior of each color interpolation algorithm.

Illustration of edge stitching and color/shading transition between adjacent fill areas
Algorithm Sample Output
Mean Value Coordinates Mean Value Coordinates
Distance Field - Method A Distance Field - Method A
Distance Field - Method B Distance Field - Method B
Inverse Distance Weighting Inverse Distance Weighting
Gouraud Shading With
Anti-Aliased Edges
Gouraud Shading With Anti-Aliased Edges
Gouraud Shading Without
Anti-Aliased Edges
Gouraud Shading Without Anti-Aliased Edges

Conclusions

Overlapping Shapes

Ideally, contours that are part of the vector-based geometry (which D-Type Shading Rasterizer renders in a single rasterization pass) should not overlap. When overlaps do occur, end-user applications should be aware of the fact that different color interpolation algorithms yield different results in the overlapping regions. This is illustrated in the following example:

FIG 4 Mean Value Coordinates
FIG 5 Gouraud Shading Without Anti-Aliased Edges

Conclusions

Concave Shapes

As mentioned earlier, D-Type Shading Rasterizer is not limited to rendering triangles. The contours in a vector image can be polygons or other complex shapes consisting of straight and/or curved segments. However, when rendering concave polygons and shapes, end-user applications should be aware of a limitation imposed by the Gouraud Shading algorithm, which is not present in any other color interpolation algorithm. Let’s examine the following example. Here, we have a sample concave shape with three color sources (red, yellow and blue) at its vertices:

FIG 6 Mean Value Coordinates
FIG 7 Inverse Distance Weighting
FIG 8 Distance Field - Method A
FIG 9 Distance Field - Method B
FIG 10 Gouraud Shading With Anti-Aliased Edges
FIG 11 Gouraud Shading Without Anti-Aliased Edges

Conclusions

Need More Information?

If you have a question about D-Type technology that you can’t find the answer to, please use our Obtain Additional Information form. We will publish your question along with our response within a few days and notify you once the answer is available on our website.

Additionally, you may find it helpful to explore the history of D-Type releases and review the D-Type News page.

Get Started Now Using D-Type

Available in binary, object, and/or source code format for any hardware or operating system environment, D-Type technology is an excellent choice for software developers seeking a rendering solution that is affordable, mature, reliable, secure, well-maintained, well-supported, super-fast and packed with features.

About D-Type Contact Us

Copyright © 1996-2025 D-Type Solutions. Last updated on August 22, 2025.