Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

adhusch
Copy link

@adhusch adhusch commented Aug 4, 2017

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
Copy link
Author

adhusch commented Aug 4, 2017

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