![]() |
VR-Forces Developer's Guide
|
Visual and physical appearance parameters for a single tracer round type.
All distance fields are in meters. Color channels are linear [0, 1]. The tip color is always blended toward near-white by the fragment shader; only the body/tail color is stored here. tracerMinPixels and tracerMaxPixels control on-screen size clamping per type; 0 disables the respective clamp.
Public Member Functions | |
| DtTracerDefinition () | |
| virtual | ~DtTracerDefinition () |
| DtTracerDefinition (const DtTracerDefinition &)=default | |
| DtTracerDefinition & | operator= (const DtTracerDefinition &)=default |
| virtual DtColorValue | tracerColor () const |
| virtual void | setTracerColor (const DtColorValue &color) |
| virtual float | tracerBaseLength () const |
| virtual void | setTracerBaseLength (float meters) |
| virtual float | tracerBaseWidth () const |
| virtual void | setTracerBaseWidth (float meters) |
| virtual float | tracerIgnitionDistance () const |
| virtual void | setTracerIgnitionDistance (float meters) |
| virtual float | tracerBurnoutDistance () const |
| virtual void | setTracerBurnoutDistance (float meters) |
| virtual float | tracerMinPixels () const |
| virtual void | setTracerMinPixels (float pixels) |
| virtual float | tracerMaxPixels () const |
| virtual void | setTracerMaxPixels (float pixels) |
| virtual const std::string & | pipFilename () const |
| virtual void | setPipFilename (const std::string &filename) |
Static Public Member Functions | |
| static DtTracerDefinition | green () |
| static DtTracerDefinition | nonIncendiary () |
| static DtTracerDefinition | covert () |
| static DtTracerDefinition | orange () |
| static DtTracerDefinition | orangeMedium () |
| static DtTracerDefinition | orangeHeavy () |
| static DtTracerDefinition | red () |
| static DtTracerDefinition | redMedium () |
| static DtTracerDefinition | redHeavy () |
Protected Attributes | |
| DtColorValue | myTracerColor |
| float | myTracerBaseLength |
| float | myTracerBaseWidth |
| float | myTracerIgnitionDistance |
| float | myTracerBurnoutDistance |
| float | myTracerMinPixels |
| float | myTracerMaxPixels |
| std::string | myPipFilename |
| makVrv::DtTracerDefinition::DtTracerDefinition | ( | ) |
Default constructor. Produces a "no tracer" state (all fields zero).
|
virtual |
Virtual destructor.
|
default |
Copy constructor.
|
static |
Green tracer preset (7.62mm class, e.g. 57-N-231P).
|
static |
Non-incendiary photoluminescent tracer preset (short-range training).
|
static |
Covert (IR) tracer preset (7.62mm class, near-zero visual alpha, e.g. M276).
|
static |
Orange tracer preset (5.56mm NATO style, e.g. M856).
|
static |
Medium-caliber orange tracer preset (7.62mm NATO style, e.g. M62).
|
static |
Heavy-caliber orange tracer preset (.50 BMG style).
|
static |
Red tracer preset (5.56mm NATO style, e.g. M196).
|
static |
Medium-caliber red tracer preset (7.62mm NATO style).
|
static |
Heavy-caliber red tracer preset (.50 BMG style).
|
default |
Copy assignment.
|
virtual |
Returns the RGBA tracer body/tail color, each channel in [0, 1]. Alpha defaults to 1.0 in all built-in presets.
|
virtual |
Sets the RGBA tracer body/tail color.
|
virtual |
Returns the target visible streak length in meters.
|
virtual |
Sets the target visible streak length in meters.
|
virtual |
Returns the target visible streak diameter in meters.
|
virtual |
Sets the target visible streak diameter in meters.
|
virtual |
Returns the distance from the muzzle in meters before the tracer ignites. 0 = visible immediately.
|
virtual |
Sets the distance from the muzzle in meters before the tracer ignites.
|
virtual |
Returns the travel distance in meters at which the tracer extinguishes.
|
virtual |
Sets the travel distance in meters at which the tracer extinguishes.
|
virtual |
Returns the minimum on-screen size in pixels (0 = physical size only).
|
virtual |
Sets the minimum on-screen size in pixels (0 = physical size only).
|
virtual |
Returns the maximum on-screen size in pixels (0 = no limit).
|
virtual |
Sets the maximum on-screen size in pixels (0 = no limit).
|
virtual |
Returns the path to the SensorFX .pip file for tracer grid registration. Empty string means no SensorFX registration is requested.
|
virtual |
Sets the path to the SensorFX .pip file for tracer grid registration.
|
protected |
RGBA body/tail color, each channel in [0, 1].
|
protected |
Target visible streak length (meters).
|
protected |
Target visible streak diameter (meters).
|
protected |
Meters from muzzle before ignition (0=immediate).
|
protected |
Travel distance (meters) at extinguishment.
|
protected |
Minimum on-screen size in pixels (0=physical only).
|
protected |
Maximum on-screen size in pixels (0=no limit).
|
protected |
Path to the SensorFX .pip file (empty = no SensorFX).