\n
\r\n[\r\n\t{"jsonrpc": "2.0", "method": "create_scope", "params": {\r\n\t\t"scope_name" : "exScope"\r\n\t}, "id": 1001},\r\n\t{"jsonrpc": "2.0", "method": "use_scope", "params": {\r\n\t\t"scope_name" : "exScope"\r\n\t}, "id": 1002},\r\n\t{"jsonrpc": "2.0", "method": "create_scene", "params": {\r\n\t\t"scene_name" : "exScene"\r\n\t}, "id": 1003},\r\n\t{"jsonrpc": "2.0", "method": "create_element", "params": {\r\n\t\t"element_name" : "exOptions",\r\n\t\t"element_type" : "Options"\r\n\t}, "id": 1004},\r\n\t{"jsonrpc": "2.0", "method": "scene_set_options", "params": {\r\n\t\t"scene_name" : "exScene",\r\n\t\t"options" : "exOptions"\r\n\t}, "id": 1005},\r\n\t{"jsonrpc": "2.0", "method": "create_element", "params": {\r\n\t\t"element_name" : "exRootGroup",\r\n\t\t"element_type" : "Group"\r\n\t}, "id": 1006},\r\n\t{"jsonrpc": "2.0", "method": "scene_set_rootgroup", "params": {\r\n\t\t"scene_name" : "exScene",\r\n\t\t"group" : "exRootGroup"\r\n\t}, "id": 1007},\r\n\t{"jsonrpc": "2.0", "method": "create_element", "params": {\r\n\t\t"element_name" : "exCamera",\r\n\t\t"element_type" : "Camera"\r\n\t}, "id": 1008},\r\n\t{"jsonrpc": "2.0", "method": "camera_set_resolution", "params": {\r\n\t\t"camera_name" : "exCamera",\r\n\t\t"resolution" : { "x" : 640, "y" : 200 }\r\n\t}, "id": 1009},\r\n\t{"jsonrpc": "2.0", "method": "camera_set_aspect", "params": {\r\n\t\t"camera_name" : "exCamera",\r\n\t\t"aspect" : 3.2\r\n\t}, "id": 1010},\r\n\t{"jsonrpc": "2.0", "method": "create_element", "params": {\r\n\t\t"element_name" : "exCameraInstance",\r\n\t\t"element_type" : "Instance"\r\n\t}, "id": 1011},\r\n\t{"jsonrpc": "2.0", "method": "instance_set_world_to_obj", "params": {\r\n\t\t"instance_name" : "exCameraInstance",\r\n\t\t"transform" : {\r\n\t\t\t"xx": 1.0, "xy": 0.0, "xz": 0.0, "xw": 0.0,\r\n\t\t\t"yx": 0.0, "yy": 0.0, "yz": -1.0, "yw": 0.0,\r\n\t\t\t"zx": 0.0, "zy": 1.0, "zz": 0.0, "zw": 0.0,\r\n\t\t\t"wx": -5.0, "wy": -1.5, "wz": -9.55, "ww": 1.0\r\n\t\t}\r\n\t}, "id": 1012},\r\n\t{"jsonrpc": "2.0", "method": "instance_attach", "params": {\r\n\t\t"instance_name" : "exCameraInstance",\r\n\t\t"item_name" : "exCamera"\r\n\t}, "id": 1013},\r\n\t{"jsonrpc": "2.0", "method": "group_attach", "params": {\r\n\t\t"group_name" : "exRootGroup",\r\n\t\t"item_name" : "exCameraInstance"\r\n\t}, "id": 1014},\r\n\t{"jsonrpc": "2.0", "method": "scene_set_camera_instance", "params": {\r\n\t\t"scene_name" : "exScene",\r\n\t\t"camera_instance" : "exCameraInstance"\r\n\t}, "id": 1015},\r\n\t{"jsonrpc": "2.0", "method": "element_set_attributes", "params": {\r\n\t\t"create" : true,\r\n\t\t"element_name" : "exCamera",\r\n\t\t"attributes" : {\r\n\t\t\t"tm_tonemapper" : {\r\n\t\t\t\t"type" : "String",\r\n\t\t\t\t"value" : "mia_exposure_photographic"\r\n\t\t\t},\r\n\t\t\t"mip_cm2_factor" : {\r\n\t\t\t\t"type" : "Float32",\r\n\t\t\t\t"value" : 1.0\r\n\t\t\t},\r\n\t\t\t"mip_film_iso" : {\r\n\t\t\t\t"type" : "Float32",\r\n\t\t\t\t"value" : 100.0\r\n\t\t\t},\r\n\t\t\t"mip_camera_shutter" : {\r\n\t\t\t\t"type" : "Float32",\r\n\t\t\t\t"value" : 250.0\r\n\t\t\t},\r\n\t\t\t"mip_f_number" : {\r\n\t\t\t\t"type" : "Float32",\r\n\t\t\t\t"value" : 4.0\r\n\t\t\t},\r\n\t\t\t"mip_gamma" : {\r\n\t\t\t\t"type" : "Float32",\r\n\t\t\t\t"value" : 2.2\r\n\t\t\t}\r\n\t\t}\r\n\t}, "id": 1016},\r\n\t{"jsonrpc": "2.0", "method": "generate_mesh", "params": {\r\n\t\t"name" : "exObject",\r\n\t\t"mesh" : {\r\n\t\t\t"vectors" : {\r\n\t\t\t\t"points" : [\r\n\t\t\t\t\t{"x":0,"y":0,"z":0}, {"x":0,"y":0,"z":3}, {"x":0,"y":5,"z":0}, {"x":0,"y":5,"z":3},\r\n\t\t\t\t\t{"x":10,"y":0,"z":0}, {"x":10,"y":0,"z":3}, {"x":10,"y":5,"z":0}, {"x":10,"y":5,"z":3},\r\n\t\t\t\t\t{"x":0,"y":2,"z":3}, {"x":1,"y":2,"z":3}, {"x":1,"y":3,"z":3}, {"x":0,"y":3,"z":3},\r\n\t\t\t\t\t{"x":3,"y":2,"z":3}, {"x":4,"y":2,"z":3}, {"x":4,"y":3,"z":3}, {"x":3,"y":3,"z":3},\r\n\t\t\t\t\t{"x":6,"y":2,"z":3}, {"x":7,"y":2,"z":3}, {"x":7,"y":3,"z":3}, {"x":6,"y":3,"z":3},\r\n\t\t\t\t\t{"x":9,"y":2,"z":3}, {"x":10,"y":2,"z":3}, {"x":10,"y":3,"z":3}, {"x":9,"y":3,"z":3}\r\n\t\t\t\t],\r\n\t\t\t\t"normals" : [\r\n\t\t\t\t\t{"x":-1,"y":0,"z":0}, {"x":0,"y":1,"z":0},\r\n\t\t\t\t\t{"x":1,"y":0,"z":0}, {"x":0,"y":0,"z":-1},\r\n\t\t\t\t\t{"x":0,"y":0,"z":1}, {"x":0,"y":-1,"z":0}\r\n\t\t\t\t],\r\n\t\t\t\t"uvs" : [\r\n\t\t\t\t\t{"x":0,"y":0}, {"x":0,"y":3}, {"x":5,"y":0}, {"x":5,"y":3},\r\n\t\t\t\t\t{"x":0,"y":0}, {"x":0,"y":3}, {"x":10,"y":0}, {"x":10,"y":3},\r\n\t\t\t\t\t{"x":10,"y":0}, {"x":0,"y":0}, {"x":0,"y":5}, {"x":10,"y":5},\r\n\t\t\t\t\t{"x":0,"y":2}, {"x":0,"y":3}, {"x":1,"y":2}, {"x":1,"y":3},\r\n\t\t\t\t\t{"x":3,"y":2}, {"x":3,"y":3}, {"x":4,"y":2}, {"x":4,"y":3},\r\n\t\t\t\t\t{"x":6,"y":2}, {"x":6,"y":3}, {"x":7,"y":2}, {"x":7,"y":3},\r\n\t\t\t\t\t{"x":9,"y":2}, {"x":9,"y":3}, {"x":10,"y":2}, {"x":10,"y":3}\r\n\t\t\t\t]\r\n\t\t\t},\r\n\t\t\t"vertices" : [\r\n\t\t\t\t{"v":0,"n":0,"t":2}, {"v":2,"n":0,"t":0}, {"v":3,"n":0,"t":1}, {"v":1,"n":0,"t":3},\r\n\t\t\t\t{"v":2,"n":1,"t":6}, {"v":6,"n":1,"t":4}, {"v":7,"n":1,"t":5}, {"v":3,"n":1,"t":7},\r\n\t\t\t\t{"v":6,"n":2,"t":2}, {"v":4,"n":2,"t":0}, {"v":5,"n":2,"t":1}, {"v":7,"n":2,"t":3},\r\n\t\t\t\t{"v":4,"n":3,"t":8}, {"v":0,"n":3,"t":9}, {"v":2,"n":3,"t":10}, {"v":6,"n":3,"t":11},\r\n\t\t\t\t{"v":0,"n":5,"t":4}, {"v":4,"n":5,"t":6}, {"v":5,"n":5,"t":7}, {"v":1,"n":5,"t":5},\r\n\t\t\t\t{"v":8,"n":4,"t":12}, {"v":9,"n":4,"t":14}, {"v":10,"n":4,"t":15}, {"v":11,"n":4,"t":13},\r\n\t\t\t\t{"v":12,"n":4,"t":16}, {"v":13,"n":4,"t":18}, {"v":14,"n":4,"t":19}, {"v":15,"n":4,"t":17},\r\n\t\t\t\t{"v":16,"n":4,"t":20}, {"v":17,"n":4,"t":22}, {"v":18,"n":4,"t":23}, {"v":19,"n":4,"t":21},\r\n\t\t\t\t{"v":20,"n":4,"t":24}, {"v":21,"n":4,"t":26}, {"v":22,"n":4,"t":27}, {"v":23,"n":4,"t":25},\r\n\t\t\t\t{"v":1,"n":4,"t":9}, {"v":5,"n":4,"t":8}, {"v":21,"n":4,"t":26}, {"v":8,"n":4,"t":12},\r\n\t\t\t\t{"v":11,"n":4,"t":13}, {"v":22,"n":4,"t":27}, {"v":7,"n":4,"t":11}, {"v":3,"n":4,"t":10}\r\n\t\t\t],\r\n\t\t\t"polygons" : [\r\n\t\t\t\t[0,1,2,3],[4,5,6,7],[8,9,10,11],[12,13,14,15],\r\n\t\t\t\t[16,17,18,19],[20,21,22,23],[24,25,26,27],[28,29,30,31],\r\n\t\t\t\t[32,33,34,35],[36,37,38,39],[40,41,42,43]\r\n\t\t\t]\r\n\t\t}\r\n\t}, "id": 1017},\r\n\t{"jsonrpc": "2.0", "method": "element_set_attribute", "params": {\r\n\t\t"element_name" : "exObject",\r\n\t\t"attribute_type" : "Boolean",\r\n\t\t"attribute_name" : "visible",\r\n\t\t"attribute_value" : true,\r\n\t\t"create" : true\r\n\t}, "id": 1018},\r\n\t{"jsonrpc": "2.0", "method": "create_element", "params": {\r\n\t\t"element_name" : "exObjectInstance",\r\n\t\t"element_type" : "Instance"\r\n\t}, "id": 1019},\r\n\t{"jsonrpc": "2.0", "method": "instance_attach", "params": {\r\n\t\t"instance_name" : "exObjectInstance",\r\n\t\t"item_name" : "exObject"\r\n\t}, "id": 1020},\r\n\t{"jsonrpc": "2.0", "method": "group_attach", "params": {\r\n\t\t"group_name" : "exRootGroup",\r\n\t\t"item_name" : "exObjectInstance"\r\n\t}, "id": 1021},\r\n\t{"jsonrpc": "2.0", "method": "import_scene_elements", "params": {\r\n\t\t"filename": "${shader}\/material_examples\/architectural.mdl"\r\n\t}, "id": 1022},\r\n\t{"jsonrpc": "2.0", "method": "create_material_instance_from_definition", "params": {\r\n\t\t"arguments": {\r\n\t\t\t"diffuse" : { "r" : 0.7, "g" : 0.7, "b" : 0.7 },\r\n\t\t\t"reflectivity" : 0.0\r\n\t\t},\r\n\t\t"material_definition_name": "mdl::material_examples::architectural::architectural",\r\n\t\t"material_name": "exMaterial"\r\n\t}, "id": 1023},\r\n\t{"jsonrpc": "2.0", "method": "instance_set_material", "params": {\r\n\t\t"instance_name" : "exObjectInstance",\r\n\t\t"material_name" : "exMaterial"\r\n\t}, "id": 1024},\r\n\t{"jsonrpc": "2.0", "method": "element_set_attribute", "params": {\r\n\t\t"element_name" : "exOptions",\r\n\t\t"attribute_name" : "section_planes",\r\n\t\t"attribute_type" : "Section_plane[]",\r\n\t\t"attribute_value": [\r\n\t\t\t{\r\n\t\t\t\t"origin": { "x": 0.0, "y": 0.0001, "z": 0.0 },\r\n\t\t\t\t"normal": { "x": 0.0, "y": -1.000, "z": 0.0 },\r\n\t\t\t\t"clip_light": true,\r\n\t\t\t\t"disabled": false\r\n\t\t\t}\r\n\t\t],\r\n\t\t"create": true\r\n\t}, "id": 1025},\r\n\t{"jsonrpc": "2.0", "method": "import_scene_elements", "params": {\r\n\t\t"filename": "${shader}\/material_examples\/lights_photometric.mdl"\r\n\t}, "id": 2001},\r\n\t{"jsonrpc": "2.0", "method": "create_element", "params": {\r\n\t\t"element_name" : "exIesLight",\r\n\t\t"element_type" : "Light"\r\n\t}, "id": 2002},\r\n\t{"jsonrpc": "2.0", "method": "create_element", "params": {\r\n\t\t"element_name" : "exIesLightProfile",\r\n\t\t"element_type" : "Lightprofile"\r\n\t}, "id": 2003},\r\n\t{"jsonrpc": "2.0", "method": "lightprofile_set_filename", "params": {\r\n\t\t"file_name" : "ies\/downlight.ies",\r\n\t\t"lightprofile_name" : "exIesLightProfile"\r\n\t}, "id": 2004},\r\n\t{"jsonrpc": "2.0", "method": "create_material_instance_from_definition", "params": {\r\n\t\t"material_definition_name" : "mdl::material_examples::lights_photometric::ies_light",\r\n\t\t"material_name" : "exIesLightShader",\r\n\t\t"arguments" : {\r\n\t\t\t"flux" : 1200,\r\n\t\t\t"profile" : "exIesLightProfile"\r\n\t\t}\r\n\t}, "id": 2005},\r\n\t{"jsonrpc": "2.0", "method": "element_set_attribute", "params": {\r\n\t\t"element_name" : "exIesLight",\r\n\t\t"attribute_type" : "Ref",\r\n\t\t"attribute_name" : "material",\r\n\t\t"attribute_value" : "exIesLightShader",\r\n\t\t"create" : true\r\n\t}, "id": 2006},\r\n\t{"jsonrpc": "2.0", "method": "create_element", "params": {\r\n\t\t"element_name" : "exIesLightInstance",\r\n\t\t"element_type" : "Instance"\r\n\t}, "id": 2007},\r\n\t{"jsonrpc": "2.0", "method": "instance_attach", "params": {\r\n\t\t"instance_name" : "exIesLightInstance",\r\n\t\t"item_name" : "exIesLight"\r\n\t}, "id": 2008},\r\n\t{"jsonrpc": "2.0", "method": "instance_set_world_to_obj", "params": {\r\n\t\t"instance_name" : "exIesLightInstance",\r\n\t\t"transform" : {\r\n\t\t\t"xx": 1.0, "xy": 0.0, "xz": 0.0, "xw": 0.0,\r\n\t\t\t"yx": 0.0, "yy": 1.0, "yz": 0.0, "yw": 0.0,\r\n\t\t\t"zx": 0.0, "zy": 0.0, "zz": 1.0, "zw": 0.0,\r\n\t\t\t"wx": -2.0, "wy": -4.75, "wz": -2.95, "ww": 1.0\r\n\t\t}\r\n\t}, "id": 2009},\r\n\t{"jsonrpc": "2.0", "method": "group_attach", "params": {\r\n\t\t"group_name" : "exRootGroup",\r\n\t\t"item_name" : "exIesLightInstance"\r\n\t}, "id": 2010},\r\n\r\n\t{"jsonrpc": "2.0", "method": "create_element", "params": {\r\n\t\t"element_name" : "exRectLight",\r\n\t\t"element_type" : "Light"\r\n\t}, "id": 3001},\r\n\t{"jsonrpc": "2.0", "method": "light_set_area_shape", "params": {\r\n\t\t"light_name" : "exRectLight",\r\n\t\t"area_shape" : "rectangle"\r\n\t}, "id": 402},\r\n\t{"jsonrpc": "2.0", "method": "light_set_area_size", "params": {\r\n\t\t"light_name" : "exRectLight",\r\n\t\t"area_size" : {"x": 1.2, "y" : 0.01}\r\n\t}, "id": 403},\r\n\t{"jsonrpc": "2.0", "method": "create_material_instance_from_definition", "params": {\r\n\t\t"material_definition_name" : "mdl::material_examples::lights_photometric::diffuse_area_light",\r\n\t\t"material_name" : "exRectLightShader",\r\n\t\t"arguments" : {\r\n\t\t\t"flux" : 900\r\n\t\t}\r\n\t}, "id": 404},\r\n\t{"jsonrpc": "2.0", "method": "element_set_attribute", "params": {\r\n\t\t"element_name" : "exRectLight",\r\n\t\t"attribute_type" : "Ref",\r\n\t\t"attribute_name" : "material",\r\n\t\t"attribute_value" : "exRectLightShader",\r\n\t\t"create" : true\r\n\t}, "id": 405},\r\n\t{"jsonrpc": "2.0", "method": "element_set_attribute", "params": {\r\n\t\t"element_name" : "exRectLight",\r\n\t\t"attribute_type" : "Boolean",\r\n\t\t"attribute_name" : "visible",\r\n\t\t"attribute_value" : true,\r\n\t\t"create" : true\r\n\t}, "id": 410},\r\n\t{"jsonrpc": "2.0", "method": "create_element", "params": {\r\n\t\t"element_name" : "exRectLightInstance",\r\n\t\t"element_type" : "Instance"\r\n\t}, "id": 406},\r\n\t{"jsonrpc": "2.0", "method": "instance_attach", "params": {\r\n\t\t"instance_name" : "exRectLightInstance",\r\n\t\t"item_name" : "exRectLight"\r\n\t}, "id": 407},\r\n\t{"jsonrpc": "2.0", "method": "instance_set_world_to_obj", "params": {\r\n\t\t"instance_name" : "exRectLightInstance",\r\n\t\t"transform" : {\r\n\t\t\t"xx": 1.0, "xy": 0.0, "xz": 0.0, "xw": 0.0,\r\n\t\t\t"yx": 0.0, "yy": 1.0, "yz": 0.0, "yw": 0.0,\r\n\t\t\t"zx": 0.0, "zy": 0.0, "zz": 1.0, "zw": 0.0,\r\n\t\t\t"wx": -5.0, "wy": -4.75, "wz": -2.95, "ww": 1.0\r\n\t\t}\r\n\t}, "id": 408},\r\n\t{"jsonrpc": "2.0", "method": "group_attach", "params": {\r\n\t\t"group_name" : "exRootGroup",\r\n\t\t"item_name" : "exRectLightInstance"\r\n\t}, "id": 409},\r\n\t{"jsonrpc": "2.0", "method": "create_element", "params": {\r\n\t\t"element_name" : "exSpotLight",\r\n\t\t"element_type" : "Light"\r\n\t}, "id": 501},\r\n\t{"jsonrpc": "2.0", "method": "light_set_area_shape", "params": {\r\n\t\t"light_name" : "exSpotLight",\r\n\t\t"area_shape" : "disc"\r\n\t}, "id": 502},\r\n\t{"jsonrpc": "2.0", "method": "light_set_area_radius", "params": {\r\n\t\t"light_name" : "exSpotLight",\r\n\t\t"area_radius" : 0.05\r\n\t}, "id": 503},\r\n\t{"jsonrpc": "2.0", "method": "create_material_instance_from_definition", "params": {\r\n\t\t"material_definition_name" : "mdl::material_examples::lights_photometric::spot_light",\r\n\t\t"material_name" : "exSpotLightShader",\r\n\t\t"arguments" : {\r\n\t\t\t"flux" : 1500,\r\n\t\t\t"spot_exponent" : 2.5,\r\n\t\t\t"spot_spread_angle" : 1.483530\r\n\t\t}\r\n\t}, "id": 504},\r\n\t{"jsonrpc": "2.0", "method": "element_set_attribute", "params": {\r\n\t\t"element_name" : "exSpotLight",\r\n\t\t"attribute_type" : "Ref",\r\n\t\t"attribute_name" : "material",\r\n\t\t"attribute_value" : "exSpotLightShader",\r\n\t\t"create" : true\r\n\t}, "id": 505},\r\n\t{"jsonrpc": "2.0", "method": "element_set_attribute", "params": {\r\n\t\t"element_name" : "exSpotLight",\r\n\t\t"attribute_type" : "Boolean",\r\n\t\t"attribute_name" : "visible",\r\n\t\t"attribute_value" : true,\r\n\t\t"create" : true\r\n\t}, "id": 506},\r\n\t{"jsonrpc": "2.0", "method": "create_element", "params": {\r\n\t\t"element_name" : "exSpotLightInstance",\r\n\t\t"element_type" : "Instance"\r\n\t}, "id": 507},\r\n\t{"jsonrpc": "2.0", "method": "instance_attach", "params": {\r\n\t\t"instance_name" : "exSpotLightInstance",\r\n\t\t"item_name" : "exSpotLight"\r\n\t}, "id": 508},\r\n\t{"jsonrpc": "2.0", "method": "instance_set_world_to_obj", "params": {\r\n\t\t"instance_name" : "exSpotLightInstance",\r\n\t\t"transform" : {\r\n\t\t\t"xx": 1.0, "xy": 0.0, "xz": 0.0, "xw": 0.0,\r\n\t\t\t"yx": 0.0, "yy": 1.0, "yz": 0.0, "yw": 0.0,\r\n\t\t\t"zx": 0.0, "zy": 0.0, "zz": 1.0, "zw": 0.0,\r\n\t\t\t"wx": -8.0, "wy": -4.75, "wz": -2.95, "ww": 1.0\r\n\t\t}\r\n\t}, "id": 509},\t\r\n\t{"jsonrpc": "2.0", "method": "group_attach", "params": {\r\n\t\t"group_name" : "exRootGroup",\r\n\t\t"item_name" : "exSpotLightInstance"\r\n\t}, "id": 510},\r\n\t{"jsonrpc": "2.0", "method": "import_scene_elements", "params": {\r\n\t\t"filename": "${shader}\/base.mdl"\r\n\t}, "id": 601},\r\n\t{"jsonrpc": "2.0", "method": "create_function_call_from_definition", "params": {\r\n\t\t"arguments" : {\r\n\t\t\t"multiplier" : 0.10132,\r\n\t\t\t"rgb_unit_conversion" : { \r\n\t\t\t\t"r" : 1.0,\r\n\t\t\t\t"g" : 1.0,\r\n\t\t\t\t"b" : 1.0\r\n\t\t\t},\r\n\t\t\t"sun_disk_intensity" : 1.0,\r\n\t\t\t"physically_scaled_sun" : true,\r\n\t\t\t"y_is_up" : false,\r\n\t\t\t"sun_direction" : { "x" : 0.0, "y" : 0.5, "z" : 1.0 },\r\n\t\t\t"on" : true\r\n\t\t},\r\n\t\t"function_definition_name" : "mdl::base::sun_and_sky(bool,float,color,float,float,float,float,float,color,color,float3,float,float,float,bool,int,bool)",\r\n\t\t"function_name" : "exSunSky"\r\n\t}, "id": 602},\r\n\t{"jsonrpc": "2.0", "method": "element_set_attribute", "params": {\r\n\t\t"element_name" : "exOptions",\r\n\t\t"attribute_type" : "Ref",\r\n\t\t"attribute_name" : "environment_function",\r\n\t\t"attribute_value" : "exSunSky",\r\n\t\t"create" : true\r\n\t}, "id": 603},\r\n\t{"jsonrpc": "2.0", "method": "element_set_attributes", "params": {\r\n\t\t"element_name" : "exOptions",\r\n\t\t"create" : true,\r\n\t\t"attributes" : {\r\n\t\t\t"progressive_rendering_max_samples" : {\r\n\t\t\t\t"type" : "Sint32",\r\n\t\t\t\t"value" : 5000\r\n\t\t\t},\r\n\t\t\t"progressive_rendering_max_time" : {\r\n\t\t\t\t"type" : "Sint32",\r\n\t\t\t\t"value" : 1200\r\n\t\t\t}\r\n\t\t}\r\n\t}, "id": 701},\r\n\t{"jsonrpc": "2.0", "method": "render", "params": {\r\n\t\t"scene_name" : "exScene",\r\n\t\t"renderer" : "iray",\r\n\t\t"render_context_options" : {\r\n\t\t\t"scheduler_mode" : {\r\n\t\t\t\t"type" : "String",\r\n\t\t\t\t"value" : "batch"\r\n\t\t\t}\r\n\t\t}\r\n\t}, "id": 702},\r\n\t{"jsonrpc": "2.0", "method": "delete_scope", "params": {\r\n\t\t"scope_name" : "exScope"\r\n\t}, "id": 999}\r\n]\r\n<\/pre>\n<\/p><\/div><\/div>\nJust note that you will need an IES file to make this work. \u00a0You can download our example file\u00a0from here<\/a>. It will need to be placed somewhere under your content_root<\/em> folder, in our example we put it into an ies<\/em> sub-folder.<\/p>\nSummary<\/h3>\n
In this article we have covered all of the steps needed to programmatically add lighting to a scene, including different types of lights and many of the different ways to set them up. With the flexibility of using MDL for defining lights you can take things a lot further than shown here so you are definitely encouraged to explore both the MDL documentation and the general RealityServer documentation for more detail. As always, contact us<\/a> if you would like more information or would like to request an evaluation of RealityServer.<\/p>\n","protected":false},"excerpt":{"rendered":"In this article I am going to show you how add light sources to your RealityServer scene using the Web-services API. You will learn how to add several different types of lights, including a photometric light using an IES data file, an area light, a spot light and daylight. This will be a very simple […]<\/p>\n","protected":false},"author":2,"featured_media":1520,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[15,30],"tags":[26,14,27],"jetpack_featured_media_url":"https:\/\/www.migenius.com\/migenius\/wp-content\/uploads\/2016\/08\/lightcreation-feature.png","_links":{"self":[{"href":"https:\/\/www.migenius.com\/wp-json\/wp\/v2\/posts\/1518"}],"collection":[{"href":"https:\/\/www.migenius.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.migenius.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.migenius.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.migenius.com\/wp-json\/wp\/v2\/comments?post=1518"}],"version-history":[{"count":21,"href":"https:\/\/www.migenius.com\/wp-json\/wp\/v2\/posts\/1518\/revisions"}],"predecessor-version":[{"id":1548,"href":"https:\/\/www.migenius.com\/wp-json\/wp\/v2\/posts\/1518\/revisions\/1548"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.migenius.com\/wp-json\/wp\/v2\/media\/1520"}],"wp:attachment":[{"href":"https:\/\/www.migenius.com\/wp-json\/wp\/v2\/media?parent=1518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.migenius.com\/wp-json\/wp\/v2\/categories?post=1518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.migenius.com\/wp-json\/wp\/v2\/tags?post=1518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}