Skip to content

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

Open
adhusch wants to merge 2 commits into
johnyf:mainfrom
adhusch:feature-hg2
Open

Fix hg2 (support for Matlab >= 2014b)#10
adhusch wants to merge 2 commits into
johnyf:mainfrom
adhusch:feature-hg2

Conversation

@adhusch

@adhusch adhusch commented Aug 4, 2017

Copy link
Copy Markdown

Matlab handle graphics 2 support (tested with 2016b)

Andreas Husch added 2 commits August 4, 2017 11:25
Fix Incompatible Assignments (Matlab 2016b)
Workaround for missing VertexNormals as proposed at file exchange
discussion. (Note: It seems that ‘VertexNormals’ are only calculated in
the new graphics system when a *light* is present *and* that this
process is asynchronous which makes it quite hart to predict when
‘VertexNormals’ could be assumed set or not)
@adhusch

adhusch commented Aug 4, 2017

Copy link
Copy Markdown
Author

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

@adhusch adhusch changed the title Feature hg2 Fix hg2 (support for Matlab >= 2014b) Aug 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant