Skip to content

Commit

Permalink
Add sample config files
Browse files Browse the repository at this point in the history
  • Loading branch information
simlrh committed Jun 24, 2016
1 parent 3ee7577 commit 432310f
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ This is an OSVR plugin providing Oculus Rift DK1 & DK2 orientation tracking via
Then follow [the standard OSVR plugin build instructions](http://resource.osvr.com/docs/OSVR-Core/TopicWritingDevicePlugin.html).

Tested on Windows, Linux and Mac. 64 bit binaries available on the releases page.

The tracker device doesn't need configuration, but there are sample OSVR server config files for the DK1 display in the sample-configs folder.
52 changes: 52 additions & 0 deletions sample-configs/Oculus_Rift_DK1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"meta": {
"schemaVersion": 1
},
"hmd": {
"device": {
"vendor": "Oculus",
"model": "Rift",
"num_displays": 1,
"Version": "DK1",
"Note": ""
},
"field_of_view": {
"monocular_horizontal": 99,
"monocular_vertical": 100,
"overlap_percent": 93,
"pitch_tilt": 0
},
"resolutions": [
{
"width": 1280,
"height": 800,
"video_inputs": 1,
"display_mode": "horz_side_by_side",
"swap_eyes": 0
}
],
"distortion": {
"distance_scale_x": 1,
"distance_scale_y": 1,
"polynomial_coeffs_red": [ 0, 1, 0.69 ],
"polynomial_coeffs_green": [ 0, 1, 0.69 ],
"polynomial_coeffs_blue": [ 0, 1, 0.69 ]
},
"rendering": {
"right_roll": 0,
"left_roll": 0
},
"eyes": [
{
"center_proj_x": 0.3,
"center_proj_y": 0.5,
"rotate_180": 0
},
{
"center_proj_x": 0.2,
"center_proj_y": 0.5,
"rotate_180": 0
}
]
}
}
4 changes: 4 additions & 0 deletions sample-configs/osvr_server_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"display": "displays/Oculus_Rift_DK1.json",
"renderManagerConfig": "sample-configs/renderManager.extended.landscape.json"
}
41 changes: 41 additions & 0 deletions sample-configs/renderManager.extended.landscape.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"meta": {
"schemaVersion": 1
},
"renderManagerConfig": {
"directModeEnabled": false,
"directDisplayIndex": 0,
"directHighPriorityEnabled": true,
"numBuffers": 2,
"verticalSyncEnabled": true,
"verticalSyncBlockRenderingEnabled": true,
"renderOverfillFactor": 1.5,
"renderOversampleFactor": 1.0,

"window": {
"title": "OSVR",
"fullScreenEnabled": true,
"xPosition": 2560,
"yPosition": 0
},

"display": {
"rotation": 0,
"bitsPerColor": 8
},

"prediction": {
"enabled": true,
"staticDelayMS": 48,
"leftEyeDelayMS": 7.5,
"rightEyeDelayMS": 0,
"localTimeOverride": true
},

"timeWarp": {
"enabled": true,
"asynchronous": false,
"maxMsBeforeVSync": 5
}
}
}

0 comments on commit 432310f

Please sign in to comment.