Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/app/cycles_xml.cpp
| Show First 20 Lines • Show All 353 Lines • ▼ Show 20 Lines | static void xml_read_camera(const XMLReadState& state, pugi::xml_node node) | ||||
| else if(xml_equal_string(node, "panorama_type", "fisheye_equidistant")) | else if(xml_equal_string(node, "panorama_type", "fisheye_equidistant")) | ||||
| cam->panorama_type = PANORAMA_FISHEYE_EQUIDISTANT; | cam->panorama_type = PANORAMA_FISHEYE_EQUIDISTANT; | ||||
| else if(xml_equal_string(node, "panorama_type", "fisheye_equisolid")) | else if(xml_equal_string(node, "panorama_type", "fisheye_equisolid")) | ||||
| cam->panorama_type = PANORAMA_FISHEYE_EQUISOLID; | cam->panorama_type = PANORAMA_FISHEYE_EQUISOLID; | ||||
| xml_read_float(&cam->fisheye_fov, node, "fisheye_fov"); | xml_read_float(&cam->fisheye_fov, node, "fisheye_fov"); | ||||
| xml_read_float(&cam->fisheye_lens, node, "fisheye_lens"); | xml_read_float(&cam->fisheye_lens, node, "fisheye_lens"); | ||||
| xml_read_float(&cam->use_spherical_stereo, node, "use_spherical_stereo"); | |||||
| xml_read_float(&cam->interocular_distance, node, "interocular_distance"); | |||||
| xml_read_float(&cam->convergence_distance, node, "convergence_distance"); | |||||
| xml_read_float(&cam->sensorwidth, node, "sensorwidth"); | xml_read_float(&cam->sensorwidth, node, "sensorwidth"); | ||||
| xml_read_float(&cam->sensorheight, node, "sensorheight"); | xml_read_float(&cam->sensorheight, node, "sensorheight"); | ||||
| cam->matrix = state.tfm; | cam->matrix = state.tfm; | ||||
| cam->need_update = true; | cam->need_update = true; | ||||
| cam->update(); | cam->update(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 893 Lines • Show Last 20 Lines | |||||