Skip to content

3d model loading #60

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

Closed
wants to merge 20 commits into from
Closed

3d model loading #60

wants to merge 20 commits into from

Conversation

atar13
Copy link
Contributor

@atar13 atar13 commented Apr 28, 2024

This PR adds the Model class which can load a model from a file. These formats are supported.

Instructions for downloading models is on the README of this branch.

Texture loading is not working yet and needs further debugging.

The one blocker right now is making sure it compiles on Windows (lab and GitHub actions). I'm working on figuring this out but before then I'd like to get some thoughts on the code.

Originally I was going to write my own parser (take one from a tutorial or CSE167). However, it was getting a bit cumbersome and there were many model format variations that I had to handle. Instead, I opted to use the Assimp library to perform the model loading. It's been recommended by previous 125 groups to reduce the complexity of loading models.

5/4 Update:

This PR grew out of just loading models and has turned into loading materials and textures. I think once we are able to load the player model it should be merged.

  • loading models
  • moved models to assets folder
  • loading and rendering textures
  • loading and rendering model lighting materials
  • load Coco's player model
    - [ ] initial light sources (punting this to another PR)

@atar13 atar13 changed the base branch from main to dev April 28, 2024 00:41
@atar13 atar13 marked this pull request as draft April 28, 2024 00:42
@atar13 atar13 marked this pull request as ready for review April 29, 2024 07:52
might be causing Windows client not to build. for some reason I was
converting it to c_str before
@atar13
Copy link
Contributor Author

atar13 commented Apr 30, 2024

Confirmed to work on lab machines

Copy link
Contributor

@dmin12 dmin12 left a comment

Choose a reason for hiding this comment

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

Everything works on my end (Apple silicon) and I see a very teal bearl. I'm glad you found a library for model loading, and from a brief look over the documentation it seems like it's going to save us a lot of time on all of the model and animation work.

Copy link
Contributor

@Tyler-Lentz Tyler-Lentz left a comment

Choose a reason for hiding this comment

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

Thanks for grinding this stuff out. Graphics programming gets me like 💀

@atar13
Copy link
Contributor Author

atar13 commented May 7, 2024

These commits got merged into #56

@atar13 atar13 closed this May 7, 2024
@Tyler-Lentz Tyler-Lentz deleted the feat/obj-loading branch May 10, 2024 03:23
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.

3 participants