johnyf / fig2u3d

Export MATLAB figure as U3D file or directly to 3D interactive PDF
http://www.mathworks.com/matlabcentral/fileexchange/37640-export-figure-to-3d-interactive-pdf
BSD 2-Clause "Simplified" License
63 stars 25 forks source link

Support for lighting in the generated pdf #2

Closed CsatiZoltan closed 9 years ago

CsatiZoltan commented 9 years ago

Is there any way to export the lighting set in MATLAB to the pdf? I have Acrobat Pro and it has an option to import light from file. A javascript file which does it would be great since Adobe lights do not work for surface plots.

johnyf commented 9 years ago

I am not sure what the lightning set includes, but a good place to look at is the document that defines the IDTF format (should be somewhere in there and linked from the fig2u3d manual). Regarding the code, camera settings are exported by calling the function vew2vws and shading/materials/colors are defined around here (including neighboring files).