Path: Common/Graphics
% Converts the Wavefront OBJ color format to MATLAB. Edge color is set equal to face color -------------------------------------------------------------------------- Form: d = ConvertOBJFileColorToMatlab( m ) -------------------------------------------------------------------------- ------ Inputs ------ m (.) Material file data structure .Kd (1,3) Diffuse reflectivity .Ks (1,3) Specular reflectivity .Ka (1,3) Ambient reflectivity .Ns (1,3) Specular exponent .illum (1,3) Illumination model (not used) .d (1,1) Transparency ------- Outputs ------- d (.) Matlab color .faceColor (1,3) Color of faces .edgeColor (1,3) Color of edges .diffuseStrength (1,1) .specularStrength (1,1) .ambientStrength (1,1) .specularExponent (1,1) .specularColorReflectance (1,1) .faceAlpha (1,1) Alpha channel --------------------------------------------------------------------------
Back to the Common Module page