User Tools

Site Tools


keckcaves:vr_filming_tools

Filming Tools: Lighting and Switching Between Stereo and Mono

There are two VR Tools for filming in the CAVE, CAVEFollowspotTool and CAVECameraCalibrator. CAVEFollowspotTool creates two spotlights that follow the wand and the user, respectively. CAVECameraCalibrator allows you to set up different viewers for stationary or tracked cameras. See the {link:video|http://youtube.com/watch?v=rzhnZ85j6-o} for a demonstration.

To change between views (CAVE, Mounted Camera, Tracked Camera) when using the CAVECameraCalibrator simply press the joystick button. To calibrate the perspective for a mounted camera, press and hold the joystick button down for a few seconds - this will bring up a grid which you can use to calibrate the view. In this mode, moving the joystick will change the perspective. By pressing the joystick button you can change the behavior of the up-down direction on the joystick from shifting the y-direction to shifting the z-direction (into the CAVE). Once you have the proper perspective for the mounted camera (the grid lines should appear orthogonal when viewed through the camera/camcorder) simply press the red button to exit back to the program.

To use the tools, you must create the following Vrui configuration file (Vrui.cfg) in the directory from which you run your program, and run your program as normal.

section Vrui

	section "caveman.geology.ucdavis.edu"

		# To use either tracked mobile or stationary camera with CAVECameraCalibrator uncomment below
		viewerNames (Viewer, CAVEPhotoViewer, CAVETrackedPhotoViewer, ConsoleViewer)

		# Viewer for a stationary camera
		section CAVEPhotoViewer
			name CAVEPhotoViewer
			headTracked false
			headDevice Head
			headDeviceTransformation translate (-5.21, -223.87, 46.01)
			viewDirection (0.0, 1.0, 0.0)
			monoEyePosition (0.0, 0.0, 0.0)
			leftEyePosition (0.0, 0.0, 0.0)
			rightEyePosition (0.0, 0.0, 0.0)
			headLightEnabled false
			headLightPosition (0.0, 0.0, 0.0)
			headLightDirection (0.0, 1.0, 0.0)
			headLightColor (0.6, 0.6, 0.6)
			headLightSpotCutoff 180.0
			headLightSpotExponent 0.0
		endsection

		# Viewer for a tracked camera
		section CAVETrackedPhotoViewer
			name CAVETrackedPhotoViewer
			headTracked true
			headDevice Head2
			viewDirection (0.0, 1.0, 0.0)
			monoEyePosition (0.0, 0.5, -1.25)
			leftEyePosition (0.0, 0.5, -1.25)
			rightEyePosition (0.0, 0.5, -1.25)
			headLightEnabled false
			headLightPosition (0.0, 0.5, -1.25)
			headLightDirection (0.0, 1.0, 0.0)
			headLightColor (1.0, 1.0, 1.0)
			headLightSpotCutoff 180.0
			headLightSpotExponent 0.0
		endsection

		section CAVETools

			# Location of the VR Filming Tools (before Vrui 1.0-048)
			toolDsoNameTemplate /scratch_data/FilmingVRTools/043/lib%s.so

			section CAVEFollowspotTool
				lensPosition ( 0.3, 43.5, 150.0 )
				#alwaysOn true
				spotColor ( 1.0, 1.0, 1.0, 0.8 )
				#spotPoints 20.0
				viewersToSpot ( "CAVEViewer" )
				CAVEViewerSpotAim 0.75
				CAVEViewerRadius 15.0
				devicesToSpot ( "Wand" )
				WandCenter ( 0.0, -3.6, 0.0 )
				WandRadius 4.0
				#WandSpotColor ( 1.0, 1.0, 1.0, 1.0 )
			endsection

			section CAVECameraCalibrator
				cameraViewers (CAVEPhotoViewer, CAVETrackedPhotoViewer)
				valuatorThreshold 0.2
				adjustFactors (-10.0, -10.0, -10.0)
				calibratorDevice Wand
				WandButton1 exit
				WandButton4 adjustToggle
				WandValuator0 horizontalAdjust
				WandValuator1 verticalAdjust|depthAdjust
			endsection

			toolNames ( WandNavTool1, WandNavTool2, WandMenuTool, \
			            CAVEFollowspotToolAssignment, \
				        CAVECameraCalibratorAssignments )

			section CAVEFollowspotToolAssignment
				toolClass CAVEFollowspotTool
				#deviceName0 Wand
				#device0ButtonIndex0 5
			endsection

			section CAVECameraCalibratorAssignments
				toolClass CAVECameraCalibrator
				deviceName0 Wand
				device0ButtonIndex0 4
			endsection

		endsection
	endsection

endsection
keckcaves/vr_filming_tools.txt · Last modified: 2011/10/03 21:48 by sumner