3ds Max C++ API Reference
|
#include "coreexp.h"
#include "maxheap.h"
#include "strbasic.h"
#include "maxtypes.h"
#include "geom/point2.h"
#include "geom/color.h"
#include "baseinterface.h"
Classes | |
struct | GBufData |
class | GBufReader |
class | GBufWriter |
class | GBuffer |
Macros | |
#define | NUMGBCHAN 14 |
#define | GB_Z 0 |
(4) Z-Buffer depth, float | |
#define | GB_MTL_ID 1 |
(1) ID assigned to mtl via mtl editor | |
#define | GB_NODE_ID 2 |
(2) ID assigned to node via properties | |
#define | GB_UV 3 |
(8) UV coordinates - Point2 | |
#define | GB_NORMAL 4 |
(4) Normal vector in view space, compressed | |
#define | GB_REALPIX 5 |
(4) Non-clamped colors in "RealPixel" format | |
#define | GB_COVERAGE 6 |
(1) Pixel coverage of the front surface | |
#define | GB_BG 7 |
(3) RGB color of what's behind the front object | |
#define | GB_NODE_RENDER_ID 8 |
(2) System node number, valid during a render | |
#define | GB_COLOR 9 |
(3) Color (RGB) | |
#define | GB_TRANSP 10 |
(3) Transparency (RGB) | |
#define | GB_VELOC 11 |
(8) Velocity (Point2) | |
#define | GB_WEIGHT 12 |
(3) Weight of layers contribution to pixel color | |
#define | GB_MASK 13 |
(2) Sub pixel coverage mask | |
#define | BMM_CHAN_NONE 0 |
#define | BMM_CHAN_Z (1<<GB_Z) |
The size is 32 bits per pixel. | |
#define | BMM_CHAN_MTL_ID (1<<GB_MTL_ID) |
The size is 8 bits per pixel. | |
#define | BMM_CHAN_NODE_ID (1<<GB_NODE_ID) |
The size is 16 bits per pixel. | |
#define | BMM_CHAN_UV (1<<GB_UV) |
The size is 64 bits per pixel. | |
#define | BMM_CHAN_NORMAL (1<<GB_NORMAL) |
The size is 32 bits per pixel. | |
#define | BMM_CHAN_REALPIX (1<<GB_REALPIX) |
The size is 32 bits per pixel. | |
#define | BMM_CHAN_COVERAGE (1<<GB_COVERAGE) |
This provides an 8-bit value (0..255) that gives the coverage of the surface fragment from which the other G-buffer values are obtained. | |
#define | BMM_CHAN_BG (1<<GB_BG) |
The size is 24 bits per pixel. | |
#define | BMM_CHAN_NODE_RENDER_ID (1<<GB_NODE_RENDER_ID) |
The size is 16 bits per pixel. | |
#define | BMM_CHAN_COLOR (1<<GB_COLOR) |
It is a 24 bit RGB color (3 bytes per pixel). | |
#define | BMM_CHAN_TRANSP (1<<GB_TRANSP) |
It is a 24 bit RGB color (3 bytes per pixel). | |
#define | BMM_CHAN_VELOC (1<<GB_VELOC) |
It is a Point 2 (8 bytes per pixel). | |
#define | BMM_CHAN_WEIGHT (1<<GB_WEIGHT) |
It is a 24 bit RGB color (3 bytes per pixel). | |
#define | BMM_CHAN_MASK (1<<GB_MASK) |
The 4x4 (16 bits = 1 word) pixel coverage mask. | |
#define | BMM_CHAN_TYPE_UNKNOWN 0 |
#define | BMM_CHAN_TYPE_8 2 |
1 byte per pixel | |
#define | BMM_CHAN_TYPE_16 3 |
1 word per pixel | |
#define | BMM_CHAN_TYPE_24 8 |
3 bytes per pixel | |
#define | BMM_CHAN_TYPE_32 4 |
2 words per pixel | |
#define | BMM_CHAN_TYPE_48 5 |
3 words per pixel | |
#define | BMM_CHAN_TYPE_64 6 |
4 words per pixel | |
#define | BMM_CHAN_TYPE_96 7 |
6 words per pixel | |
Functions | |
CoreExport int | GBDataSize (int i) |
CoreExport MCHAR * | GBChannelName (int i) |
CoreExport void | SetMaximumGBufferLayerDepth (int m) |
CoreExport int | GetMaximumGBufferLayerDepth () |
CoreExport GBuffer * | NewDefaultGBuffer () |
#define NUMGBCHAN 14 |
CoreExport int GBDataSize | ( | int | i | ) |
CoreExport MCHAR * GBChannelName | ( | int | i | ) |
CoreExport void SetMaximumGBufferLayerDepth | ( | int | m | ) |
CoreExport int GetMaximumGBufferLayerDepth | ( | ) |
CoreExport GBuffer * NewDefaultGBuffer | ( | ) |