User Tools

Site Tools


keckcaves:one_wall_mono

Patch configuration file to make one cave wall mono and the others in stereo, which is useful for filming:

# Vrui configuration file fragment to record video using a video camera
# with an attached secondary head tracker. Compatible with Vrui.cfg used
# in Vrui version 1.0-068.
# Copyright (c) 2009-2010 Oliver Kreylos

section Vrui

	section "caveman.geology.ucdavis.edu"
		# Add another viewer for the tracked video camera:
		viewerNames (Viewer, ConsoleViewer, CameraViewer)
		
		# Add a screen protector for the tracked video camera:
		screenProtectors ( ("Head", (0.0, 0.0, 0.0), 24.0), \
		                   ("Wand", (0.0, 0.0, 0.0), 12.0), \
		                   ("Head2", (0.0, 0.0, 0.0), 24.0) )
		
		# Set background color to dark gray to reduce blooming:
		backgroundColor (0.2, 0.2, 0.2)
		
		#
		# Add an input device for the second head tracker:
		#
		section DeviceDaemonAdapter
			inputDeviceNames (Head, Wand, Head2)
			
			section Head2
				name Head2
				trackType 6D
				trackerIndex 2
			endsection
		endsection
		
		#
		# Define the tracked video camera's viewing parameters:
		#
		section CameraViewer
			name CameraViewer

			# Set this to false for a fixed camera
			headTracked true

			headDevice Head2

			# Set this to the camera's position in case of fixed camera
			headDeviceTransformation translate (-48.0, -72.0, 48.0)

			viewDirection (0.0, 1.0, 0.0)
			monoEyePosition (0.0, 0.0, -1.5)
#			monoEyePosition (0.0, -0.5, -3.0)
#			monoEyePosition (-2.0, -0.5, -5.0)
			headLightEnabled false
		endsection
		
		#
		# Enable mono rendering from the tracked video camera's point of view on all walls:
		#
		section Wall1Window
#			windowType Mono
#			viewerName CameraViewer
		endsection
		
		section Wall2Window
#			windowType Mono
#			viewerName CameraViewer
		endsection
		
		section Wall3Window
			windowType Mono
			viewerName CameraViewer
		endsection
		
		section Wall4Window
#			windowType Mono
#			viewerName CameraViewer
		endsection
	endsection

endsection
keckcaves/one_wall_mono.txt · Last modified: 2011/10/03 21:57 by sumner