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
62 stars 24 forks source link

Fix hg2 (support for Matlab >= 2014b) #10

Open adhusch opened 7 years ago

adhusch commented 7 years ago

Matlab handle graphics 2 support (tested with 2016b)

adhusch commented 7 years ago

Known Issues: Textured Objects still don't work for me (tested with Matlab "topo" demo dataset)

e2ccbbc (setting VertexNormals to Vertices) should be considered a workaround not a fix. For a proper fix the normals should be calculated in some other way (e.g. using "own" code instead of trying to get them from a matlab object). The results look okay with the workaround but lighting might be suboptimal without correct normal. Consider: https://de.mathworks.com/matlabcentral/fileexchange/24330-patch-normals