Overview

Sample Code

Programming Guide

API Reference

Support

HPS::Transparency Class Reference

#include <hps.h>

Public Types

enum  Algorithm {
  Algorithm::None, Algorithm::Painters, Algorithm::ZSortNicest, Algorithm::ZSortFastest,
  Algorithm::DepthPeeling, Algorithm::WeightedBlended
}
 
enum  AreaUnits { AreaUnits::Percent, AreaUnits::Pixels }
 
enum  Method { Method::None, Method::Blended, Method::ScreenDoor }
 

Detailed Description

This is the Transparency Class

Member Enumeration Documentation

Transparency Algorithm

Enumerator
None 

No sorting will be performed, but transparent objects will be deferred (drawn on top). If overlapping transparent objects are present the rendering will not be accurate.

Painters 

Will produce a completely accurate rendering of transparent objects which are overlapping other transparenty objects, but tends to be slow.

ZSortNicest 

Sorts every transparent triangle in a shell by its mid-point. This algorithm can result in rendering artifacts at locations where transparent objects intersect with one another.

ZSortFastest 

Sorts transparent tristrips in a shell by the mid-point of the entire tristrip. This algorithm can result in rendering artifacts at locations where transparent objects intersect with one another.

DepthPeeling 

Non-sorting technique based on multi-pass drawing, and leverages hardware acceleration to quickly produce an accurate rendering. Will give varying accuracy and performance results based on the number of 'layers' that are specified by the user.

WeightedBlended 

Non-sorting technique which blends and approximates transparent objects based on the distance from the camera.

Transparency Area Units

Enumerator
Percent 

Transparency Area Units.

Pixels 

Transparency Area Units.

Transparency Method

Enumerator
None 

This will disable transparency, overriding all other transparency settings and forcing geometry to be opaque.

Blended 

The transparent object will be blended with the color of the underlying object.

ScreenDoor 

This is a pseudo-transparency algorithm that sacrifices visual quality to improve performance.


The documentation for this class was generated from the following file: