#include <c4d_raytrace.h>
◆ RayObject()
◆ type
◆ flag_phong
◆ flag_castshadow
◆ flag_receiveshadow
◆ flag_seenbycamera
◆ flag_compositing
Compositing flag. Catches shadows.
◆ flag_selfshadow
◆ flag_seenbygi
◆ flag_matteobject
Object is matte object flag.
◆ flag_seenbydetails
◆ flag_instanced
◆ v2
◆ mp
◆ rad
◆ 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
◆ padr
Address of the point array for the object. Can be nullptr for non O_POLYGON elements.
◆ pcnt
Number of points for this object.
◆ vadr
Address of the polygons array. Can be nullptr for non O_POLYGON elements.
◆ vcnt
Number of polygons for this object.
◆ texadr
Address of the texture array. Can be nullptr, always check.
- Note
- It is not possible to access textures directly. Use VolumeData::GetTexData() instead.
◆ texcnt
◆ uvwadr
Address of the UVW coordinate sets. Can be nullptr, always check.
- Note
- 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.
- Note
- 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
◆ motion_delta
Motion transformation matrix. This is oldmg * !newmg
. The delta time is always 1/fps.
- Note
- The VIDEOPOSTINFO::REQUEST_MOTIONMATRIX flag must be set for this value to be calculated.
◆ oblurlen
◆ aa_minlevel
Minimum antialiasing level.
◆ aa_maxlevel
Maximum antialiasing level.
◆ aa_threshold
◆ channelid
◆ texture_link
Link to the real object that inherited the texture tag. Can be nullptr, always check.
◆ 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.