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

Refactor model loading #12

Merged
merged 17 commits into from
Sep 9, 2024
Merged

Conversation

ZzzhHe
Copy link
Contributor

@ZzzhHe ZzzhHe commented Aug 8, 2024

Description:

  • Reorganized the model structure by refactoring the Vertex, Face, and Model classes for improved modularity and maintainability.
  • Replaced the tinyobjloader with the assimp to support a wide range of model format in the future. ( currently the project still focus on loading the .obj file.)

Test Platform

macOS 14.5
Linux (Ubuntu 20.04)

TODO:

  • Optimize the code for drawing lines and triangles to improve performance.
  • refactor the simple_renderer class to split it into several smaller, more focused classes.
  • Refactor the data buffer to support additional information.

Screenshot 2024-08-08 at 17 40 46

@ZzzhHe ZzzhHe requested a review from MRNIU August 9, 2024 13:28
@MRNIU
Copy link
Member

MRNIU commented Aug 9, 2024

这笔 pr 与 #11 似乎有部分重复了,我们一笔一笔合吧

@ZzzhHe
Copy link
Contributor Author

ZzzhHe commented Aug 9, 2024

根据 #11 的review重新更改了这笔,已通过build部分的CI

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是生成的文件,需要 ignore 掉

@@ -0,0 +1,39 @@
#pragma once
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

头文件的 gurd 风格需要统一

@ZzzhHe ZzzhHe force-pushed the refactor-model-loading branch from 7e943f9 to 787740c Compare August 26, 2024 14:44
@MRNIU MRNIU merged commit 7e999cf into Simple-XX:main Sep 9, 2024
1 of 3 checks passed
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.

2 participants