VR-Engage  2.3
Loading...
Searching...
No Matches
humanRenderUpdater.h
Go to the documentation of this file.
1/******************************************************************************
2** Copyright (c) 2026 MAK Technologies
3** All rights reserved.
4*****************************************************************************/
5//! \file humanRenderUpdater.h
6//! \brief Defines DtHumanRenderUpdater for managing human-specific rendering and visual effects
7//! \ingroup vreHumanFrontend
8
9#pragma once
10
12
15
17
19
20#include <vrvCore/DtUniqueID.h>
21
22class diguyCharacter;
23
24namespace makVrv
25{
26//! \brief Forward declaration of the display element class
27class DtDe;
28
29//! \brief Forward declaration of the character model agent class
30class DtCharacterModelAgent;
31
32//! \brief Forward declaration of the scene object agent class
33class DtSceneObjectAgent;
34
35//! \brief Forward declaration of the scene object class
36class DtSceneObject;
37
38//! \brief Forward declaration of the dead reckon updater agent class
39class DtDeadReckonUpdaterAgent;
40
41//! \brief Forward declaration of the dead reckon updater class
42class DtDeadReckonUpdater;
43
44//! \brief Forward declaration of the terrain scaling updater class
45class DtTerrainScalingUpdater;
46
47//! \brief Forward declaration of the OSG channel class
48class DtOsgChannel;
49}; // namespace makVrv
50
52{
53//! \ingroup RoleConfigParams
54//! \defgroup HumanRenderUpdaterRoleParams Human Render Updater Role Parameters
55//! \roleInherits{PlayerComponentRoleParams}
56//! Configuration Options for human render updater role.
57//! @{
58
59//! \vreRoleParamRequired{firstPersonModelMap,DtInitTable,humanRenderUpdater,"Table",Mapping between weapons and model definitions for first-person view.}
60constexpr const char* firstPersonModelMap = "firstPersonModelMap";
61
62//! \vreRoleParam{healthEffectHealthMaximum,double,0.85,humanRenderUpdater,Maximum health value for health effect visibility.}
63constexpr const char* healthEffectHealthMaximum = "healthEffectHealthMaximum";
64
65//! \vreRoleParam{healthEffectHealthMinimum,double,0.15,humanRenderUpdater,Minimum health value for health effect visibility to prevent screen from going completely opaque.}
66constexpr const char* healthEffectHealthMinimum = "healthEffectHealthMinimum";
67
68//! \vreRoleParam{healthEffectOpacityMaximum,double,0.4,humanRenderUpdater,Maximum opacity value for health effects overlay.}
69constexpr const char* healthEffectOpacityMaximum = "healthEffectOpacityMaximum";
70
71//! \vreRoleParam{hideFirstPersonModelWhileAiming,bool,false,humanRenderUpdater,Whether to hide the first-person player model when aiming. Not applicable in VR mode.}
72constexpr const char* hideFirstPersonModelWhileAiming = "hideFirstPersonModelWhileAiming";
73
74//! \vreRoleParam{hitEffectDuration,double,4.0,humanRenderUpdater,Duration of hit effects in seconds.}
75constexpr const char* hitEffectDuration = "hitEffectDuration";
76
77//! @}
78} // namespace HumanRenderUpdaterConfig
79
80namespace makVre
81{
82//! \brief Forward declaration of the first-person updater agent class
83class DtFpsFirstPersonUpdaterAgent;
84
85//! \brief Forward declaration of the orientation updater agent class
86class DtFpsOrientationUpdaterAgent;
87
88//! \brief Type identifier constant for DtHumanRenderUpdater components
89//!
90//! This constant defines the string identifier used to identify DtHumanRenderUpdater
91//! component types within the VR-Engage framework. It is used for component
92//! registration, type checking, and serialization operations.
93constexpr const char* DtHumanRenderUpdaterType = "DtHumanRenderUpdater";
94
95//! \brief DtHumanRenderUpdater manages model and visual effects for Human role player.
96//!
97//! The primary function of this class is management of first person arms and gun model.
98//! This class owns the first person model agent and first person mimic model updater,
99//! and is responsible for selecting the appropriate first person model depending on
100//! active gun and/or equipment, hiding or showing the model based on 1st/3rd person
101//! view mode or other condition such as death, (re)positioning model relative to camera
102//! based on posture, and setting aiming and firing state of first person model when
103//! necessary. This class also manages overlay effects such as sniper rifle sights and
104//! blood overlay effects that indicate when and from where the player is taking hits.
106{
107public:
108 //! \brief Default constructor
110
111 //! \brief Virtual destructor
112 virtual ~DtHumanRenderUpdater() override;
113
114 //! \brief Initializes the render updater component
115 //! \param player Pointer to the player station
116 //! \param config Configuration settings for initialization
117 //! \return True if initialization was successful, false otherwise
119
120 //! \brief Called after postInitialize() to wait for VRV agent readiness
121 //! \param dt Delta time since the last frame in seconds
122 //! \return Ready once render objects are fully initialized
123 //!
124 //! Polls VR-Vantage agents for scene object, model, updater, and orientation
125 //! updater readiness. Runs during the LOADING_PLAYER_STATE phase before the
126 //! engaged tick loop.
127 virtual DtInitTickStatus finalizeInitTick(double dt) override;
128
129 //! \brief Updates rendering elements for the current frame
130 //! \param dt Delta time since the last frame in seconds
131 virtual void tick(double dt) override;
132
133 //! \brief Cleans up resources when the component is being shut down
134 virtual void shutdown() override;
135
136 //! \brief Returns the component type identifier
137 //! \return String identifier for this component type
138 //!
139 //! Returns the type identifier string for this component, which is used
140 //! by the VR-Engage framework for component identification and management.
141 //! The returned value matches DtHumanRenderUpdaterType.
142 virtual const char* type() const override;
143
144 //! \brief Shows the first-person model
146
147 //! \brief Hides the first-person model
149
150 //! \brief Shows the third-person model
152
153 //! \brief Sets the visibility of the third-person model
154 //! \param visible True to show the model, false to hide it
155 void setThirdPersonVisible(bool visible);
156
157 //! \brief Sets the offset of the first-person model
158 //! \param translation Translation offset vector
159 //! \param rotation Rotation offset in Tait-Bryan angles
160 void setFirstPersonModelOffset(DtVector translation, DtTaitBryan rotation = DtTaitBryan());
161
162 //! \brief Finds the appropriate first-person model offset for the given state
163 //! \param posture Current human posture
164 //! \param aiming True if the player is currently aiming
165 //! \param usingVr True if VR mode is active
166 //! \param translation [out] Pointer to receive the translation offset, can be nullptr
167 //! \param rotation [out] Pointer to receive the rotation offset, can be nullptr
168 //! \return True if offsets were found, false otherwise
169 bool findFirstPersonModelOffset(HumanPosture posture, bool aiming, bool usingVr, DtVector* translation = nullptr,
170 DtTaitBryan* rotation = nullptr);
171
172protected:
173 //! \brief Enumeration of hit effect positions
174 //!
175 //! Used to track the timers for each hit effect location
176 using HitEffectEnum = enum {
177 HIT_EFFECT_LEFT_SIDE, //!< Hit effect on the left side of the screen
178 HIT_EFFECT_RIGHT_SIDE, //!< Hit effect on the right side of the screen
179 HIT_EFFECT_ALL_SIDES, //!< Hit effect on all sides of the screen
180 HIT_EFFECT_NUMBER_EFFECTS //!< Total number of hit effect types (must be last)
181 };
182
183
184 //! \brief Initializes render objects like models and effects
185 //! \return True if initialization was successful, false otherwise
187
188 //! \brief Clears any active scene selections
190
191 //! \brief Configures dead reckoning and movement smoothing
193
194 //! \brief Updates blood sight (damage) overlay effects
196
197 //! \brief Updates the first-person model state and position
198 //! \param dt Delta time since the last frame in seconds
199 void updateFirstPersonModel(double dt);
200
201 //! \brief Updates the third-person model state and position
202 //! \param dt Delta time since the last frame in seconds
203 void updateThirdPersonModel(double dt);
204
205 //! \brief Updates aiming-related visual effects
207
208 //! \brief Updates equipment-related visual effects
210 //! \brief Updates health-related visual effects
211 //!
212 //! Updates the effect that shows when the human's damage state is slight or moderate
214
215 //! \brief Updates hit-related visual effects
216 //! \param dt Delta time since the last frame in seconds
217 //!
218 //! Updates the hit effect when the human is hit by a munition. It shows effects on
219 //! the right, left, or all corners of the GUI.
220 void updateHitEffects(double dt);
221
222 //! \brief Starts a hit effect timer
223 //! \param hitEffect The hit effect type to start
224 virtual void startHitEffect(HitEffectEnum hitEffect);
225
226 //! \brief Stops a hit effect timer
227 //! \param hitEffect The hit effect type to stop
228 virtual void stopHitEffect(HitEffectEnum hitEffect);
229
230 //! \brief Handles fire messages
231 //! \param msg Pointer to the message being processed
232 //! \return Message processing result
234
235 //! \brief Handles detonation location messages
236 //! \param msg Pointer to the message being processed
237 //! \return Message processing result
239
240 //! \brief Handles changes in player health
241 //! \param val New health value
242 void onHealthChanged(double val);
243
244 //! \brief Handles changes to the player's currently selected weapon.
245 //! Calls updateFirstPersonModel to update myFirstPersonModelTable for the current weapon.
246 //! \param weaponIndex Index of the newly selected weapon
247 void onWeaponIndexChanged( int weaponIndex );
248
249 //! \brief Looks up the dead reckoning updater for a scene object
250 //! \param myDisSceneObject Pointer to the scene object
251 //! \return Pointer to the dead reckoning updater, or nullptr if not found
252 const makVrv::DtDeadReckonUpdater* lookupDeadReckonUpdater(makVrv::DtSceneObject* myDisSceneObject);
253
254 //! \brief Handles scene object deletion notifications
255 //! \param id Unique ID of the scene object being deleted
256 virtual void slot_disSceneObjectToBeDeleted(const makVrv::DtUniqueID& id);
257
258 //! \brief Duration of hit effects in seconds
260
261 //! \brief Minimum health value for health effect visibility
262 //!
263 //! The minimum health that the health effect will change. Don't want the screen to go completely opaque
265
266 //! \brief Maximum health value for health effect visibility
267 //!
268 //! The maximum health that the health effect will change
270
271 //! \brief Maximum opacity value for health effects
273
274 //! \brief Mapping between weapons and model definitions
276
277 //! \brief Configuration table for first-person models
279
280 //! \brief Agent managing the first-person character model
281 makVrv::DtCharacterModelAgent* myFirstPersonModelAgent;
282
283 //! \brief Agent managing the first-person scene object
284 makVrv::DtSceneObjectAgent* myFirstPersonSceneObjectAgent;
285
286 //! \brief Agent managing first-person model updates
288
289 //! \brief Agent managing orientation updates
291
292 //! \brief Main scene object for the player entity
293 makVrv::DtSceneObject* myDisSceneObject;
294
295 //! \brief Current weapon identifier
296 std::string myDisGun;
297
298 //! \brief Current appearance identifier
299 std::string myDisAppearance;
300
301 //! \brief Finds the appropriate first-person model definition
302 //! \param gun Current weapon identifier
303 //! \param appearance Current appearance identifier
304 //! \return Model definition identifier string
305 std::string findFirstPersonModelDef(const std::string& gun, const std::string& appearance);
306
307 //! \brief Finds the DI-Guy character for the player
308 //! \return Pointer to the DI-Guy character, or nullptr if not found
309 diguyCharacter* findDisDiguyCharacter();
310
311 //! \brief Finds the DI-Guy character for the first-person rig
312 //! \return Pointer to the DI-Guy character, or nullptr if not found
314
315 //! \brief Sets/clears the "engaged" diguyVariable on a character.
316 //! \param character DI-Guy character to update (nullptr is a no-op)
317 //! \param engaged true to mark the character as the engaged entity,
318 //! false to clear the flag
319 void setEngagedVariable( diguyCharacter* character, bool engaged );
320
321 //! \brief Flag indicating if first-person view is currently shown
323
324 //! \brief Current posture of the arms model
326
327 //! \brief Flag indicating if weapon is in the down position
329
330 //! \brief Last known aiming state
332
333 //! \brief Flag indicating if render objects have been initialized
335
336 //! \brief Flag indicating if first-person objects have been initialized
338
339 //! \brief Pointer to the main rendering channel
340 makVrv::DtOsgChannel* myChannel;
341
342 //! \brief Time when the sight effect should end
344
345 //! \brief Last known equipment state
347
348 //! \brief Delay before switching models in seconds
350
351 //! \brief Delay before showing models in seconds
353
354 //! \brief Current pitch angle of the arms model
356
357 //! \brief Additional pitch angle for arc aiming
359
360 //! \brief Pitch offset for the first-person model
362
363 //! \brief Heading (yaw) offset for the first-person model
365
366 //! \brief Flag indicating if VR mode is active
368
369 //! \brief Flag indicating whether to hide the first-person player model while aiming (not applicable in VR)
370 //! \vreAttrKey{hideFirstPersonModelWhenAiming}
372
373 //! \brief Tracks whether first-person model was visible before entering aiming mode
375
376 //! \brief Enumeration of hit effect states
377 //!
378 //! These states are necessary to have interruptible hit effects
379 using HitEffectState = enum {
380 HIT_EFFECT_STATE_OFF, //!< Hit effect is disabled
381 HIT_EFFECT_STATE_ON, //!< Hit effect is enabled
382 HIT_EFFECT_STATE_INTERRUPT //!< Hit effect is being interrupted
383 //!< This state is used to give the Post Processor state to run once when
384 //!< the post processor effect is disabled. This allows its state machine
385 //!< to reset and the effect to play correctly when interrupted.
386 };
387
388 //! \brief Structure containing hit effect information
390 {
391 //! \brief Default constructor
393 : hitEffectState(HIT_EFFECT_STATE_OFF)
394 , timer(0.0)
395 {
396 }
397
398 std::string effectName; //!< The Post Processor name. Used to enable/disable the effect.
399 double timer; //!< The timer to determine when the effect should be removed.
400 //!< This timer needs to be coordinated with any front-end timers.
401 HitEffectState hitEffectState; //!< Current state of this hit effect
402 };
403
404 //! \brief Collection of hit effects and their information
405 //!
406 //! Timer used to control the hit effect which appears in the corners of the GUI
407 std::vector<std::pair<HitEffectEnum, HitEffectInfo>> myHitEffect;
408
409 //! \brief Handle for health value.
410 //! \vreAttrKey{health}
412
413 //! \brief Handle for current equipment.
414 //! \vreAttrKey{currentEquipment}
416
417 //! \brief Handle for aiming state.
418 //! \vreAttrKey{aiming}
420
421 //! \brief Handle for posture state.
422 //! \vreAttrKey{posture}
424
425 //! \brief Handle for simulated pitch value.
426 //! \vreAttrKey{simulatedPitch}
428
429 //! \brief Handle for simulated heading value.
430 //! \vreAttrKey{simulatedHeading}
432
433 //! \brief Handle for focus-on-entity state.
434 //! \vreAttrKey{focusOnEntity}
436
437 //! \brief Handle indicating whether gaze yaw is active.
438 //! \vreAttrKey{useGazeYaw}
440
441 //! \brief Handle for mouse-control state.
442 //! \vreAttrKey{usingMouse}
444
445 //! \brief Handle for weapon state.
446 //! \vreAttrKey{weaponState}
448
449 //! \brief Handle for VR-enabled state.
450 //! \vreAttrKey{vr-enabled}
452
453 //! \brief Handle for DI-Guy item override.
454 //! \vreAttrKey{diguyItem}
456
457 //! \brief Handle for DI-Guy appearance override.
458 //! \vreAttrKey{diguyAppearance}
460
461 //! \brief Handle for current weapon index.
462 //! \vreAttrKey{weaponIndex}
464
465 //! \brief Handle for current weapon name.
466 //! \vreAttrKey{currentWeapon}
468};
469}; // namespace makVre
Type-specific handle class for attributes.
Definition attributeHandle.h:229
Agent class for remote control of DtFpsFirstPersonUpdater objects.
Definition DtFpsFirstPersonUpdaterAgent.hpp:31
Agent class for remote control of DtFpsOrientationUpdater objects.
Definition DtFpsOrientationUpdaterAgent.hpp:31
DtAttributeHandleType< int > myWeaponIndexAttr
Handle for current weapon index.
Definition humanRenderUpdater.h:463
double myHealthEffectOpacityMaximum
Maximum opacity value for health effects.
Definition humanRenderUpdater.h:272
double myArcPitchAddition
Additional pitch angle for arc aiming.
Definition humanRenderUpdater.h:358
double myFirstPersonModelPitchOffset
Pitch offset for the first-person model.
Definition humanRenderUpdater.h:361
diguyCharacter * findFirstPersonDiguyCharacter()
Finds the DI-Guy character for the first-person rig.
DtAttributeHandleType< double > mySimulatedPitchAttr
Handle for simulated pitch value.
Definition humanRenderUpdater.h:427
double myEndSightEffect
Time when the sight effect should end.
Definition humanRenderUpdater.h:343
void updateEquipmentEffects()
Updates equipment-related visual effects.
std::string findFirstPersonModelDef(const std::string &gun, const std::string &appearance)
Finds the appropriate first-person model definition.
virtual const char * type() const override
Returns the component type identifier.
bool myUsingVr
Flag indicating if VR mode is active.
Definition humanRenderUpdater.h:367
enum { HIT_EFFECT_LEFT_SIDE, HIT_EFFECT_RIGHT_SIDE, HIT_EFFECT_ALL_SIDES, HIT_EFFECT_NUMBER_EFFECTS } HitEffectEnum
Enumeration of hit effect positions.
Definition humanRenderUpdater.h:176
double myFirstPersonModelHeadingOffset
Heading (yaw) offset for the first-person model.
Definition humanRenderUpdater.h:364
std::string myDisGun
Current weapon identifier.
Definition humanRenderUpdater.h:296
virtual ~DtHumanRenderUpdater() override
Virtual destructor.
bool myLastKnownAiming
Last known aiming state.
Definition humanRenderUpdater.h:331
std::vector< std::pair< HitEffectEnum, HitEffectInfo > > myHitEffect
Collection of hit effects and their information.
Definition humanRenderUpdater.h:407
void setFirstPersonModelOffset(DtVector translation, DtTaitBryan rotation=DtTaitBryan())
Sets the offset of the first-person model.
virtual DtInitTickStatus finalizeInitTick(double dt) override
Called after postInitialize() to wait for VRV agent readiness.
bool findFirstPersonModelOffset(HumanPosture posture, bool aiming, bool usingVr, DtVector *translation=nullptr, DtTaitBryan *rotation=nullptr)
Finds the appropriate first-person model offset for the given state.
int myArmsPosture
Current posture of the arms model.
Definition humanRenderUpdater.h:325
DtAttributeHandleType< bool > myUsingMouseAttr
Handle for mouse-control state.
Definition humanRenderUpdater.h:443
DtAttributeHandleType< std::string > myDiguyAppearanceAttr
Handle for DI-Guy appearance override.
Definition humanRenderUpdater.h:459
void updateFirstPersonModel(double dt)
Updates the first-person model state and position.
virtual bool initialize(makVre::DtPlayerStation *player, makVre::DtInitTable &config) override
Initializes the render updater component.
void updateHitEffects(double dt)
Updates hit-related visual effects.
void showThirdPerson()
Shows the third-person model.
makVrv::DtOsgChannel * myChannel
Pointer to the main rendering channel.
Definition humanRenderUpdater.h:340
DtAttributeHandleType< bool > myUseGazeYawAttr
Handle indicating whether gaze yaw is active.
Definition humanRenderUpdater.h:439
bool myWeaponDown
Flag indicating if weapon is in the down position.
Definition humanRenderUpdater.h:328
double myHealthEffectHealthMinimum
Minimum health value for health effect visibility.
Definition humanRenderUpdater.h:264
DtInitTable myFirstPersonModelTable
Configuration table for first-person models.
Definition humanRenderUpdater.h:278
DtFpsOrientationUpdaterAgent * myOrientationUpdaterAgent
Agent managing orientation updates.
Definition humanRenderUpdater.h:290
DtAttributeHandleType< std::string > myDiguyItemAttr
Handle for DI-Guy item override.
Definition humanRenderUpdater.h:455
DtAttributeHandleType< bool > myFocusOnEntityAttr
Handle for focus-on-entity state.
Definition humanRenderUpdater.h:435
bool myFirstPersonVisibleBeforeAiming
Tracks whether first-person model was visible before entering aiming mode.
Definition humanRenderUpdater.h:374
virtual void tick(double dt) override
Updates rendering elements for the current frame.
bool myShowingFirstPerson
Flag indicating if first-person view is currently shown.
Definition humanRenderUpdater.h:322
void clearSceneSelection()
Clears any active scene selections.
double myModelSwitchDelay
Delay before switching models in seconds.
Definition humanRenderUpdater.h:349
DtAttributeHandleType< bool > myVrEnabledAttr
Handle for VR-enabled state.
Definition humanRenderUpdater.h:451
DtAttributeHandleType< Equipment > myCurrentEquipmentAttr
Handle for current equipment.
Definition humanRenderUpdater.h:415
DtAttributeHandleType< double > mySimulatedHeadingAttr
Handle for simulated heading value.
Definition humanRenderUpdater.h:431
DtHumanRenderUpdater()
Default constructor.
Equipment myLastKnownEquipment
Last known equipment state.
Definition humanRenderUpdater.h:346
void setThirdPersonVisible(bool visible)
Sets the visibility of the third-person model.
std::string myDisAppearance
Current appearance identifier.
Definition humanRenderUpdater.h:299
virtual makVre::DtVreMessageResult handleReportDetonationLocationMessage(makVre::DtVreMessage *msg)
Handles detonation location messages.
double myModelShowDelay
Delay before showing models in seconds.
Definition humanRenderUpdater.h:352
void onWeaponIndexChanged(int weaponIndex)
Handles changes to the player's currently selected weapon. Calls updateFirstPersonModel to update myF...
const makVrv::DtDeadReckonUpdater * lookupDeadReckonUpdater(makVrv::DtSceneObject *myDisSceneObject)
Looks up the dead reckoning updater for a scene object.
virtual void slot_disSceneObjectToBeDeleted(const makVrv::DtUniqueID &id)
Handles scene object deletion notifications.
DtAttributeHandleType< int > myWeaponStateAttr
Handle for weapon state.
Definition humanRenderUpdater.h:447
DtAttributeHandleType< bool > myHideFirstPersonModelWhileAiming
Flag indicating whether to hide the first-person player model while aiming (not applicable in VR)
Definition humanRenderUpdater.h:371
void setEngagedVariable(diguyCharacter *character, bool engaged)
Sets/clears the "engaged" diguyVariable on a character.
DtInitTable myFirstPersonModelMap
Mapping between weapons and model definitions.
Definition humanRenderUpdater.h:275
virtual void shutdown() override
Cleans up resources when the component is being shut down.
bool myRenderObjectsInitialized
Flag indicating if render objects have been initialized.
Definition humanRenderUpdater.h:334
bool myFirstPersonObjectsInitialized
Flag indicating if first-person objects have been initialized.
Definition humanRenderUpdater.h:337
DtAttributeHandleType< std::string > myCurrentWeaponAttr
Handle for current weapon name.
Definition humanRenderUpdater.h:467
DtFpsFirstPersonUpdaterAgent * myFirstPersonUpdaterAgent
Agent managing first-person model updates.
Definition humanRenderUpdater.h:287
void showFirstPerson()
Shows the first-person model.
virtual void startHitEffect(HitEffectEnum hitEffect)
Starts a hit effect timer.
double myHealthEffectHealthMaximum
Maximum health value for health effect visibility.
Definition humanRenderUpdater.h:269
virtual void stopHitEffect(HitEffectEnum hitEffect)
Stops a hit effect timer.
makVrv::DtSceneObject * myDisSceneObject
Main scene object for the player entity.
Definition humanRenderUpdater.h:293
void configureDeadReckoningAndSmoothing()
Configures dead reckoning and movement smoothing.
DtAttributeHandleType< double > myHealthAttr
Handle for health value.
Definition humanRenderUpdater.h:411
void onHealthChanged(double val)
Handles changes in player health.
DtAttributeHandleType< bool > myAimingAttr
Handle for aiming state.
Definition humanRenderUpdater.h:419
makVrv::DtCharacterModelAgent * myFirstPersonModelAgent
Agent managing the first-person character model.
Definition humanRenderUpdater.h:281
void hideFirstPerson()
Hides the first-person model.
diguyCharacter * findDisDiguyCharacter()
Finds the DI-Guy character for the player.
void updateBloodSightEffects()
Updates blood sight (damage) overlay effects.
double myArmsPitch
Current pitch angle of the arms model.
Definition humanRenderUpdater.h:355
virtual makVre::DtVreMessageResult handleFireMessage(makVre::DtVreMessage *msg)
Handles fire messages.
bool initializeRenderObjects()
Initializes render objects like models and effects.
void updateThirdPersonModel(double dt)
Updates the third-person model state and position.
enum { HIT_EFFECT_STATE_OFF, HIT_EFFECT_STATE_ON, HIT_EFFECT_STATE_INTERRUPT } HitEffectState
Enumeration of hit effect states.
Definition humanRenderUpdater.h:379
void updateAimingEffects()
Updates aiming-related visual effects.
double myHitEffectDuration
Duration of hit effects in seconds.
Definition humanRenderUpdater.h:259
void updateHealthEffects()
Updates health-related visual effects.
makVrv::DtSceneObjectAgent * myFirstPersonSceneObjectAgent
Agent managing the first-person scene object.
Definition humanRenderUpdater.h:284
DtAttributeHandleType< HumanPosture > myPostureAttr
Handle for posture state.
Definition humanRenderUpdater.h:423
Table-based access to Lua state for configuration data.
Definition initializer.h:38
Base class for all role components in VR-Engage.
Definition playerComponent.h:102
virtual DtPlayerStation & player()
Gets the player station.
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Provides coordinate conversion functionality between different coordinate systems.
constexpr const char * firstPersonModelMap
Definition humanRenderUpdater.h:60
constexpr const char * healthEffectOpacityMaximum
Definition humanRenderUpdater.h:69
constexpr const char * healthEffectHealthMinimum
Definition humanRenderUpdater.h:66
constexpr const char * healthEffectHealthMaximum
Definition humanRenderUpdater.h:63
constexpr const char * hitEffectDuration
Definition humanRenderUpdater.h:75
constexpr const char * hideFirstPersonModelWhileAiming
Definition humanRenderUpdater.h:72
Defines export macros for the Human Frontend library.
#define HUMAN_DLL
Definition export.h:19
Definition humanRenderUpdater.h:52
!
Definition glsVreMessageUtil.h:50
DtInitTickStatus
Status returned by DtPlayerComponent::finalizeInitTick() to indicate deferred initialization progress...
Definition playerComponent.h:80
HumanPosture
Enumeration of human posture states.
Definition stateDefines.h:30
constexpr const char * DtHumanRenderUpdaterType
Type identifier constant for DtHumanRenderUpdater components.
Definition humanRenderUpdater.h:93
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Equipment
Enumeration of equipment types that can be held or used.
Definition stateDefines.h:55
Definition appLauncherComponent.h:28
Defines the DtPlayerComponent base class for VR-Engage role components.
Common enumeration definitions used throughout the VREngage system.
HitEffectInfo()
Default constructor.
Definition humanRenderUpdater.h:392
std::string effectName
The Post Processor name. Used to enable/disable the effect.
Definition humanRenderUpdater.h:398
HitEffectState hitEffectState
Current state of this hit effect.
Definition humanRenderUpdater.h:401
double timer
The timer to determine when the effect should be removed. This timer needs to be coordinated with any...
Definition humanRenderUpdater.h:399
Defines the base class for all VREngage messages.