Skip to content
Snippets Groups Projects
vairdraw_common.json 10.82 KiB
{
	"core" : {
		"application-name"   : "VAirDraw",
		"use-hardware-set"   : "desktop",
		"collaboration-role" : "none",
		"test-scene"         : false,
		"show-hud"           : false,
		"scenery" : {
			"user-floor" : true,
			"screenshot-height" : 10.0
		},
		"log-level"          : 1,

		"collaboration" : {
			"none"        : { },

			"master-only" : {
				"send-to" : [ "osc.udp://127.0.0.1:9002/" ]
			},

			"slave-only"  : {
				"local-user" : false,
				"slave-osc-port" : 9002,
				"remote-user" : {
					"head" : { "type" : "capture" , "file" : "models/user_head.txt", "black-only" : true }
				}
			},

			"external-interface" : {
				"slave-osc-port" : 9001
			},

			"master-with-external-interface" : {
				"send-to"        : [ "osc.udp://127.0.0.1:9000/" ],
				"slave-osc-port" : 9001
			},

			"master-slave": {
				"send-to"        : [ "osc.udp://127.0.0.1:9000/" ],
				"slave-osc-port" : 9000,
				"remote-user"    : {
					"head" : { "type" : "capture" , "file" : "models/user_head.txt", "black-only" : true }
				}
			},

			"collab-master": {
				"send-to"        : [ "osc.udp://127.0.0.1:9001/" ],
				"slave-osc-port" : 9000,
				"remote-user"    : {
					"head" : { "type" : "capture" , "file" : "models/user_head.txt", "black-only" : true }
				}
			 
			},

			"collab-slave": {
				"replace-paths"  : [ { "from" : "captures/", "to" : "captures-slave-cache/" } ],
				"send-to"        : [ "osc.udp://127.0.0.1:9000/" ],
				"slave-osc-port" : 9001,
				"remote-user"    : {
					"head" : { "type" : "capture" , "file" : "models/user_head.txt", "black-only" : true }
				}
			},

			"generate-movie" : {
				"local-user" : false
			}
		},

		"drawline-properties" : {
			"line-min-width"  : 0.002,
			"line-max-width"  : 0.075,
			"black-only"      : false,
			"follow-zoom"     : true,
			"skip-vertex"     : 0,
			"measure-color"   : [ 150, 150, 0, 255 ],
			"measure-height"  : 0.03,
			"measure-on-sl"   : true,
			"measure-keep-last" : true,
			"palette"         : {
				"name" : "default",
				"colors" : [
					[  37,  37,  37, 245 ],
					[ 239, 215, 203, 245 ],
					[  29,  51,  92, 245 ],
					[  79, 103, 140, 245 ],
					[  79, 144, 152, 245 ],
					[ 142, 238, 237, 245 ],
					[  90,  86,  81, 245 ],
					[ 137, 129, 118, 245 ],
					[ 146, 160, 163, 245 ],
					[ 247, 247, 247, 245 ],
					[  28,  86,  54, 245 ],
					[   0, 123,  95, 245 ],
					[ 159, 196, 170, 245 ],
					[ 137, 172, 118, 245 ],
					[  75,  60,  41, 245 ],
					[ 129,  57,  44, 245 ],
					[ 121, 109,  72, 245 ],
					[ 163, 131,  30, 245 ],
					[ 126, 116, 177, 245 ],
					[ 128,  83, 136, 245 ],
					[  88,  83, 150, 245 ],
					[  83,  86, 109, 245 ],
					[ 100,  80, 201, 245 ],
					[ 110, 134, 241, 245 ],
					[ 196,  86,  63, 245 ],
					[ 200,  52,  26, 245 ],
					[ 168, 100,  51, 245 ],
					[ 101,  42,  62, 245 ],
					[  62,  23,  24, 245 ],
					[  74,  44,  54, 245 ],
					[  46,  22,  73, 245 ],
					[  14,  14,  80, 245 ]
				],
				"draft-color" : [ 93, 203, 240, 100],
				"draft-alpha" : 100
			}
		},

		"drawshape-properties" : {
			"plane" : {
				"resolution" : {
					"preview" : 30,
					"refined" : 60,
					"min" : 30
				},
				"shader-program" : "DiffuseMesh",
				"collider" : {
					"enable" : true,
					"debug-display" : false,
					"use-cache" : true,
					"closed" : false,
					"type" : "octree",
					"depth" : 5,
					"build-type" : "full",
					"proximity-search" : false
				}
			},
			"octahedron" : {
				"resolution" : {
					"preview" : 10,
					"refined" : 30,
					"min" : 5
				},
				"shader-program" : "ReflectMesh",
				"collider" : {
					"enable" : true,
					"debug-display" : false,
					"use-cache" : true,
					"closed" : true,
					"type" : "octree",
					"depth" : 5,
					"build-type" : "full",
					"proximity-search" : false
				}
			}
		},

		"content-loader" : {
			"async-loading" : true
		}

	},

	"application" : {
		"background" : {
			"radius" : -1,
			"sky" : { 
				"type" : "sky-dome",
				"color" : [ 150, 200, 250 ],
				"sky-dome" : { "texture" : "textures/sky.bmp", "repeat" : 1 },
				"sky-box" : { "texture" : "textures/skyboxes/desert.png", "on-floor" : false },
				"mono-texture" : { "texture" : "textures/paper.png", "repeat" : 1, "on-floor" : false, "fixed" : false }
			},
			"floor" : {
				"type" : "plane",
				"plane" : { "texture" : "textures/floor.bmp", "repeat" : 1 }
			}
		},
		"lighting" : {
			"ambient" : [ 100, 100, 100 ],
			"light-sources" : [
				{ "position" : [  3.0, 2.0,  3.0 ], "color" : [ 255, 255, 255 ] , "power" : 1.0, "follow" : true },
				{ "position" : [ -3.0, 2.0,  3.0 ], "color" : [ 255, 255, 255 ] , "power" : 1.0, "follow" : true },
				{ "position" : [  3.0, 2.0, -3.0 ], "color" : [ 255, 255, 255 ] , "power" : 1.0, "follow" : true },
				{ "position" : [ -3.0, 2.0, -3.0 ], "color" : [ 255, 255, 255 ] , "power" : 1.0, "follow" : true }
			]
		},
		"shapes" : {
			"resolution" : {
				"plane" : [20, 40],
				"octahedron" : [10, 30]
			},
			"shading-programs" : {
				"plane": "DiffuseMesh",
				"octahedron" : "DiffuseMesh"
			}
		},
		"pointer" : {
			"use" : "pencil",
			"nav-pointer" : {
				"model" : "models/vr_controller/vive_controller.obj"
			},
			"action-pointer" : {
				"model" : "models/vr_controller/vive_controller.obj",
				"states": [
					{
						"state": "outside", 
						"cursor": "default-outside", 
						"config" : { "ray-color" : [240, 240, 240, 255], "radius" : 0.003 }
					},
					{
						"state": "flyover", 
						"cursor": "default-flyover", 
						"config" : { "ray-color" : [32,  127,  32, 255], "radius" : 0.003, "cursor-color": [220,  220,  220, 255]}
					},
					{
						"state": "clicked", 
						"cursor": "default-flyover", 
						"config" : { "ray-color" : [32,  200,  32, 255], "radius" : 0.0035, "cursor-color": [32,  200,  32, 255]}
					}
				]
			}
		},
		"toolbox" : {
			"enabled" : true,
			"tools-panel" : {
				"background" : {
					"image" : "textures/toolbox/Tools_noedit.png"
				},
				"highlight" : {
					"image" : "textures/toolbox/Tools_highlight_2x2.png",
					"scale" : 0.375
				},
				"selected" : {
					"image" : "textures/toolbox/Tools_selected.png",
					"scale" : 0.375
				},
				"no-draft" : {
					"image" : "textures/toolbox/Tools_nodraft.png",
					"scale" : 0.375
				},
				"layout" : {
					"x-cells" : 2, "x-first" : 0.285, "x-dist"  : 0.43,
					"y-cells" : 2, "y-first" : 0.285, "y-dist"  : 0.43,
					"cell-radius" : 0.25
				},
				"actions" : [
					[ 1, "change-render-draft" ],
					[ 2, "undo-last-line" ]
				]
			},
			"colors-panel" : {
				"background" : {
					"image" : [ "textures/toolbox/ToolsPenColor1_4p_layer.png",
					            "textures/toolbox/ToolsPenColor2_4p_layer.png",
					            "textures/toolbox/ToolsPenColor3_4p_layer.png",
					            "textures/toolbox/ToolsPenColor4_4p_layer.png" ]
				},
				"highlight" : {
					"image" : "textures/toolbox/ToolsPen_highlight_4p.png",
					"scale" : 0.21875
				},
				"selected" : {
					"image" : "textures/toolbox/ToolsPen_selected_4p.png",
					"scale" : 0.21875
				},
				"layout" : {
					"x-cells" : 4, "x-first" : 0.1836, "x-dist"  : 0.215,
					"y-cells" : 4, "y-first" : 0.1836, "y-dist"  : 0.215,
					"cell-radius" : 0.15625
				},
				"actions" : [
					[  0, "switch-palette",    0 ],
					[  1, "select-draft-color"   ],
					[  3, "switch-palette",    1 ],
					[  4, "select-color",      0 ],
					[  5, "select-color",      1 ],
					[  6, "select-color",      2 ],
					[  7, "select-color",      3 ],
					[  8, "select-color",      4 ],
					[  9, "select-color",      5 ],
					[ 10, "select-color",      6 ],
					[ 11, "select-color",      7 ],
					[ 12, "switch-palette",    2 ],
					[ 15, "switch-palette",    3 ]
				]
			},
			"special-action" : [ "undo-last-line" ]
		}
	},
	
	"renderer" : {
		"gl-debug" : false
	},

	"hardware-set" : {
		"openvr" : {
			"screen" : { "width" : 1280, "height" : 720 },
			"projection" : {
				"znear" : 0.1, "zfar" : 100.0,
				"hud" : { "position" : [ 0.3, 0.3 ], "text-scale" : 0.5 }
			},
			"speeder" : { "base-speed" : 1.0, "max-speed" : 10.0, "accelerate-after" : 2.0, "accelerate-during" : 3.0 },
			"navigator" : {
				"zoom" : {
					"min-scale" : 0.125,
					"max-scale" : 64,
					"scale-step" : 2.0,
					"keep-line-of-sight" : false
				},
				"block-on-floor" : true
			}
		},
		"desktop" : {
			"fullscreen" : false,
			"screen" : { "width" : 1280, "height" : 720 },
			"projection" : {
				"use-projection" : "frustum",
				"frustum" : { "width" : 0.2, "znear" : 0.1, "zfar" : 1000.0 },
				"zenithal" : { "width" : 500.0, "distance" : 1000.0, "znear" : 0.1, "zfar" : 2050.0 },
				"gradual" : {
					"from" :   { "width" : 500.0, "distance" : 1000.0, "angle" : -90.0 },
					"middle" : { "width" : 100.0, "distance" : 50.0,   "angle" : -90.0 },
					"to" :     { "width" : 0.2,   "distance" : 0.1,    "angle" : 0 },
					"middle-point" : 0.25, "middle-smoothness" : 0.25,
					"znear" : 0.1, "zfar" : 2050
				}
			},
			"navigator" : {
				"block-on-floor" : true,
				"auto-nav-speed" : 0.02,
				"auto-nav-rot-speed" : 0.02,
				"osc-camera" : {
					"enabled" : false,
					"port" : 3333,
					"left-handed" : false,
					"offset" : { "translation" : [ 0.0, 0.0, 0.0 ] },
					"transform" : { "translation" : [ 0.0, 0.0, 0.0 ], "rotation" : [ 0.0, 0.0, 1.0, 0.0 ], "scale" : [ 1.0, 1.0, 1.0 ] }
				}
			},
			"antialiasing" : 4,
			"tuio-port" : 0
		},
		"multiproj" : {
			"projectors" : {
				"1" : {
					"fullscreen" : false,
					"monitor" : 1,
					"screen" : { "width" : 1280, "height" : 720 },
					"warp-mesh" : "flat_12x12_mesh",
					"view" : {
						"mode" : "sbs-stereo",
						"iod" : 0.065
					},
					"projection" : {
						"use-projection" : "generalized-frustum",
						"symmetric-frustum" : { "width" : 0.2, "znear" : 0.1, "zfar" : 1000.0 },
						"assymmetric-frustum" : { "left" : -0.2, "right" : 0.0, "znear" : 0.1, "zfar" : 1000.0 },
						"generalized-frustum" : {
							"bottom-left"  : [ -0.2, -0.05625, -0.1 ],
							"bottom-right" : [  0.0, -0.05625, -0.1 ],
							"top-left"     : [ -0.2,  0.05625, -0.1 ],
							"znear" : 0.1, "zfar" : 1000.0
						}
					},
					"antialiasing" : 4
				},
				"2": {
					"fullscreen" : false,
					"monitor" : 2,
					"screen" : { "width" : 1280, "height" : 720 },
					"warp-mesh" : "flat_12x12_mesh",
					"view" : {
						"mode" : "sbs-stereo",
						"iod" : 0.065
					},
					"projection" : {
						"use-projection" : "generalized-frustum",
						"symmetric-frustum" : { "width" : 0.2, "znear" : 0.1, "zfar" : 1000.0 },
						"assymmetric-frustum" : { "left" : 0.0, "right" : 0.2, "znear" : 0.1, "zfar" : 1000.0 },
						"generalized-frustum" : {
							"bottom-left"  : [ 0.0, -0.05625, -0.1 ],
							"bottom-right" : [ 0.2, -0.05625, -0.1 ],
							"top-left"     : [ 0.0,  0.05625, -0.1 ],
							"znear" : 0.1, "zfar" : 1000.0
						}
					},
					"antialiasing" : 4
				}
			},
			"navigator" : {
				"block-on-floor" : true,
				"auto-nav-speed" : 0.02,
				"auto-nav-rot-speed" : 0.02
			}
		}
	}
}