opentk / LearnOpenTK

A port of learnopengl.com's tutorials to OpenTK and C#.
Creative Commons Attribution 4.0 International
458 stars 115 forks source link

Chapter 3 Part 1: Model Loading #90

Open DigitalBox98 opened 7 months ago

DigitalBox98 commented 7 months ago

This version is inspired by adamsmith1990 initial work but with the same approach than LearnOpenGL website for textures rendering.

Camera movement is via the left-click on mouse and wireframe/plain texture via the N key.

Tested OK on dotnet6.0 (and revert to dotnet8.0 before commit)

plain wire
NogginBops commented 6 months ago

I just realized that there are two model loading PRs. Will take a look at #76 and see if we can reconcile these PRs and get a best of both worlds.

NogginBops commented 6 months ago

Also, after marking .obj files as binary you also have to "re-add" the file to get git to actually consider it a binary file. The diff of this PR is still 200 thousand lines.

DigitalBox98 commented 6 months ago

Ok i have removed the backpack.obj and then added it again. I'm not sure if it has worked as I can see this file in this PR not considered as a BIN. Is there anything wrong somewhere ?

deccer commented 6 months ago

bin and obj and all their combinations are in .gitignore, because of bin and obj folders. I am not sure if we should include rather large model files in this repo