Skip to content

Commit

Permalink
Add names to scene objects to make it easier to find and remove them …
Browse files Browse the repository at this point in the history
…again
  • Loading branch information
smlpt committed Oct 9, 2024
1 parent 8f05cc4 commit 9bcafe8
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ class EyeTrackingDemo: Command, CellTrackingBase() {
@Parameter
override var mastodonUpdateGraph: (() -> Unit)? = null



val pupilTracker = PupilEyeTracker(calibrationType = PupilEyeTracker.CalibrationType.WorldSpace, port = System.getProperty("PupilPort", "50020").toInt())

val calibrationTarget = Icosphere(0.02f, 2)
Expand All @@ -80,13 +78,15 @@ class EyeTrackingDemo: Command, CellTrackingBase() {
metallic = 0.0f
diffuse = Vector3f(0.8f, 0.8f, 0.8f)
}
referenceTarget.name = "Reference Target"
sciview.camera?.addChild(referenceTarget)

calibrationTarget.visible = false
calibrationTarget.material {
roughness = 1.0f
metallic = 0.0f
diffuse = Vector3f(1.0f, 1.0f, 1.0f)}
calibrationTarget.name = "Calibration Target"
sciview.camera?.addChild(calibrationTarget)

laser.visible = false
Expand All @@ -100,6 +100,7 @@ class EyeTrackingDemo: Command, CellTrackingBase() {
diffuse = Vector3f(0.4f, 0.4f, 0.4f) }

shell.spatial().position = Vector3f(0.0f, 0.0f, 0.0f)
shell.name = "Shell"
sciview.addNode(shell)

val volnodes = sciview.findNodes { node -> Volume::class.java.isAssignableFrom(node.javaClass) }
Expand Down Expand Up @@ -239,7 +240,7 @@ class EyeTrackingDemo: Command, CellTrackingBase() {
hmd.addKeyBinding("toggle_tracking", keybindingTracking)

volume.visible = true
volume.runRecursive { it.visible = true }
// volume.runRecursive { it.visible = true }
playing = true
}

Expand Down

0 comments on commit 9bcafe8

Please sign in to comment.