-
首页
-
C4D R23.110 C++ SDK
RayObject Struct Reference
#include <c4d_raytrace.h>
构造函数 & 析构函数文档编制
◆
RayObject()
Member Data Documentation
◆
type
Object type: RayObjectTypes
Special types such as
O_SPHERE
have no polygonal geometry, thus all values like
padr
and
vadr
are
nullptr
.
◆
flag_phong
Phong flag.
◆
flag_castshadow
Cast shadow flag.
◆
flag_receiveshadow
Receive shadow flag.
◆
flag_seenbycamera
Seen by camera flag.
◆
flag_compositing
Compositing flag. Catches shadows.
◆
flag_selfshadow
Self shadowing flag.
◆
flag_seenbygi
Seen by GI flag.
◆
flag_matteobject
Object is matte object flag.
◆
flag_seenbydetails
Seen by details flag:
OBJECTRESTRICTION
.
◆
flag_instanced
Object instanced flag.
◆
v2
Normal in Y direction.
◆
mp
Center of bounding box.
◆
rad
Radius of bounding box.
◆
visibility
Object visibility. This is the information about the object dissolve (see the Timeline and the Visibility track) in the range from
0.0
to
1.0
.
◆
phong_angle
Phong angle.
◆
padr
Address of the point array for the object. Can be
nullptr
for non
O_POLYGON
元素。
◆
pcnt
Number of points for this object.
◆
vadr
Address of the polygons array. Can be
nullptr
for non
O_POLYGON
元素。
◆
vcnt
Number of polygons for this object.
◆
texadr
Address of the texture array. Can be
nullptr
, always check.
-
注意
-
It is not possible to access textures directly. Use
VolumeData::GetTexData()
instead.
◆
texcnt
Number of textures.
◆
uvwadr
Address of the UVW coordinate sets. Can be
nullptr
, always check.
-
注意
-
It is not possible to access UVWs directly. Use
VolumeData::GetUVW()
instead.
The UVW sets range from
1
to
uvwcnt-1
.
◆
uvwcnt
Number of UVW coordinate sets.
◆
rsadr
Address of the object's restriction. Can be
nullptr
, always check.
-
注意
-
It is possible to access the restriction directly. The restriction sets range from
1
to
rscnt-1
.
◆
rscnt
Number of object's restriction.
◆
link
Link to real
Cinema 4D
object. Can be
nullptr
, always check.
◆
mg
World matrix for the object.
◆
mg_inverse
Inverse object matrix.
◆
motion_delta
Motion transformation matrix. This is
oldmg * !newmg
. The delta time is always 1/fps.
-
注意
-
The
VIDEOPOSTINFO::REQUEST_MOTIONMATRIX
flag must be set for this value to be calculated.
◆
oblurlen
Object blur strength.
◆
aa_minlevel
Minimum antialiasing level.
◆
aa_maxlevel
Maximum antialiasing level.
◆
aa_threshold
Antialiasing threshold.
◆
channelid
Object buffer IDs.
◆
texture_link
Link to the real object that inherited the texture tag. Can be
nullptr
, always check.
◆
default_color
Object default color.
◆
restriction_index
Index to light/object restriction table.
◆
edges
Address of the edges array, one per polygon. Can be
nullptr
, always check.
Bits
0
to
3
indicate hiding of edge A to D, bits
4
to
7
indicate the broken phong property.
◆
psum
Private
. Phong normals. Access depends on mode.
◆
spd_displacement
Sub-pixel displacement subdivision.
◆
spd_height
Maximum displacement height, taking the strength into account.
◆
spd_keepedges
Sub-pixel displacement keep edge setting.
◆
spd_distribution
Sub-pixel displacement best distribution setting.
◆
spd_round
Sub-pixel displacement round setting.
◆
spd_roundcontour
Sub-pixel displacement round contour setting.
◆
spd_hqremapping
Sub-pixel displacement high quality remapping setting.
◆
spd_mapresult
Sub-pixel displacement map geometry setting.
◆
userdata
Only to be used by plugin renderers.
◆
rr
Compositing tag restriction.
◆
instance
The render instance data. If not
nullptr
the object is a render instance.
◆
tex_tsum
Address of the precomputed tangents for each UV channel used in
VolumeData::GetDUDV()
.
Just like the smooth normals, the way the data is stored depends on the mode (in same way as it does for phong). Can be
nullptr
, always check.
Only one tangent vector is stored. The second can be easily computed by cross product with the normal vector.
◆
flag_compositing_gi
New compositing flag for Sky mode as seen in the Compositing Tag.
◆
forceDefaultColor
force the use of default color. added for R20.