homework2, draw opencv 3d logo in motion with opengl compat, support shade flat/smooth and smoothing group#38
Open
sleeplessai wants to merge 4 commits intoparallel101:masterfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
小彭老师,这是我第二次作业的实现,请批改。😀
draw_obj()函数即可load_obj()函数加入了 grouped 参数,实现模型载入阶段对面进行分组,在原有 obj 文件中添加了自定义的分组注释#group G用于提示面分组,数据保持原有不变load_obj()函数中的 grouped 参数默认为 false,不开启分组,即仅有一个分组,调用draw_obj_smooth()函数,实现整个模型的平滑着色load_obj()函数中的 grouped 参数为 true 时,则可以按照分组注释#group G保存分组索引,此时调用draw_obj_smooth()函数,实现平滑组着色