User Tools

Site Tools


keckcaves:tracked_mono_rendering_in_the_cave

Here is an example of a fragment for VruiConfig that adjusts rendering in the cave to be mono and to head track the wired glasses/video camera (Head2). (The backgroundColor choice is a light gray that improves video camera exposures.)

section Vrui
    section "*"
        backgroundColor (0.3, 0.3, 0.3, 1.0)
      
        # Choose a viewing mode by commenting out the ones you don't want
        viewerNames (CAVEViewer, ConsoleViewer)
            
        section CAVEViewer
            name CAVEViewer
            headTracked true  # true or false, use false for fixed view rendering
            headDevice Head2
          
            # for video need offset of tracker to center of lens in inches
            monoEyePosition (0.0, 1.0, -0.0)
          
            # Left and right eye positions set to the same for mono projections
            leftEyePosition (0.0, 1.0, -0.0)
            rightEyePosition (0.0, 1.0, -0.0)
        endsection
      
    endsection
endsection
keckcaves/tracked_mono_rendering_in_the_cave.txt · Last modified: 2009/07/01 06:33 by sumner