Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
StudyFramework Plugin
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
Plugins
StudyFramework Plugin
Commits
dfffd599
Commit
dfffd599
authored
1 year ago
by
Malte Christian Kögel
Browse files
Options
Downloads
Patches
Plain Diff
Fix fallback to head orientation tracking if eyetracking is unavailable, see #102
parent
b2ee804e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/StudyFrameworkPlugin/Private/Logging/SFLogObject.cpp
+1
-1
1 addition, 1 deletion
Source/StudyFrameworkPlugin/Private/Logging/SFLogObject.cpp
Source/StudyFrameworkPlugin/Public/GazeTracking/SFGazeTracker.h
+3
-1
3 additions, 1 deletion
.../StudyFrameworkPlugin/Public/GazeTracking/SFGazeTracker.h
with
4 additions
and
2 deletions
Source/StudyFrameworkPlugin/Private/Logging/SFLogObject.cpp
+
1
−
1
View file @
dfffd599
...
@@ -166,7 +166,7 @@ void USFLogObject::WriteGazeTrackingLogToFile() {
...
@@ -166,7 +166,7 @@ void USFLogObject::WriteGazeTrackingLogToFile() {
}
}
USFGazeTracker
*
GazeTracker
=
USFGameInstance
::
Get
()
->
GetGazeTracker
();
USFGazeTracker
*
GazeTracker
=
USFGameInstance
::
Get
()
->
GetGazeTracker
();
if
(
!
GazeTracker
||
GazeTracker
->
DataAlreadyLogged
())
if
(
!
GazeTracker
||
(
GazeTracker
->
IsTrackingEyes
()
&&
GazeTracker
->
DataAlreadyLogged
())
)
{
{
return
;
return
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Source/StudyFrameworkPlugin/Public/GazeTracking/SFGazeTracker.h
+
3
−
1
View file @
dfffd599
...
@@ -86,7 +86,9 @@ private:
...
@@ -86,7 +86,9 @@ private:
UPROPERTY
()
UPROPERTY
()
TArray
<
AActor
*>
ActorsToIgnore
;
TArray
<
AActor
*>
ActorsToIgnore
;
bool
bDataLogged
=
false
;
//This is only relevant for when eyetracking is used: Set false once SranipalEyeData is updated, Set true after writing out current eyedata
//For Head Rotation, we always get up-to-date info while logging, then bDataLogged is ignored
bool
bDataLogged
=
true
;
float
EyeDataGatheringDelay
;
float
EyeDataGatheringDelay
;
float
TimeSinceLastEyeDataGather
=
0.0f
;
float
TimeSinceLastEyeDataGather
=
0.0f
;
#ifdef WITH_SRANIPAL
#ifdef WITH_SRANIPAL
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment