Cycles: support for camera rendering an environment map with equirectangular
environment map, by enabling the Panorama option in the camera. http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Camera#Panorama The focal length or sensor settings are not used, the UI can be tweaked still to communicate this, also panorama should probably become a proper camera type like perspective or ortho.
This commit is contained in:
@@ -288,9 +288,11 @@ static void xml_read_camera(const XMLReadState& state, pugi::xml_node node)
|
||||
xml_read_float(&cam->shutterclose, node, "shutterclose");
|
||||
|
||||
if(xml_equal_string(node, "type", "orthographic"))
|
||||
cam->ortho = true;
|
||||
cam->type = CAMERA_ORTHOGRAPHIC;
|
||||
else if(xml_equal_string(node, "type", "perspective"))
|
||||
cam->ortho = false;
|
||||
cam->type = CAMERA_PERSPECTIVE;
|
||||
else if(xml_equal_string(node, "type", "environment"))
|
||||
cam->type = CAMERA_ENVIRONMENT;
|
||||
|
||||
cam->matrix = state.tfm;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user