Public Types | List of all members
PxHeightFieldFormat Struct Reference

Describes the format of height field samples. More...

#include <PxHeightFieldFlag.h>

Public Types

enum  Enum { eS16_TM = (1 << 0) }
 

Detailed Description

Describes the format of height field samples.

See Also
PxHeightFieldDesc.format PxHeightFieldDesc.samples

Member Enumeration Documentation

Enumerator
eS16_TM 

Height field height data is 16 bit signed integers, followed by triangle materials.

Each sample is 32 bits wide arranged as follows:

heightFieldFormat_S16_TM.png

1) First there is a 16 bit height value. 2) Next, two one byte material indices, with the high bit of each byte reserved for special use. (so the material index is only 7 bits). The high bit of material0 is the tess-flag. The high bit of material1 is reserved for future use.

There are zero or more unused bytes before the next sample depending on PxHeightFieldDesc.sampleStride, where the application may eventually keep its own data.

This is the only format supported at the moment.

See Also
PxHeightFieldDesc.format PxHeightFieldDesc.samples

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


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com