Commit Graph

18 Commits

Author SHA1 Message Date
jordan4ibanez
94a2dc0ca6
Merge branch 'feat/gltf-loader' into feat/gltf-loader 2023-01-29 18:35:16 -05:00
jordan4ibanez
2d4f1ce35e Fix indices, inverted models, & multiple models failing to load
Fix embedded textures causing a model not to load

Add todo

Add another todo

Push current (broken) prototyping

Fix missing bracket

Make a single array object work

Convert hard array into dynamic vector

Simplify semantics

Remove "new"

Add blocker for vscode environment changes

Disable non-dynamic prototyping

Add comment

Add more informative debug & disable it

Add additional items to gitignore

Add debug info for scalar value

Output even more debug info

Make textures render correctly

Insert the indices properly

Update .gitignore

Disable y flip

Make a reusable vertex buffer :)

Disallow embedded textures

More disable

Set up implementation for contiguous model

Add a note

More automation & framework

Final framework before stepping into function overhaul

Hold track of current_index

Integrate iterators

More integration

Rename, it's going to need 2 counters

Correctly offset the count to the right

Sync normals with positions

Time to use a tuple

Set up other counters

Do return value

Do input passing

Make (somewhat) working contiguous model

Add getter for translation data

Add debug info for future utilization

Update .gitignore

More debug

Update .gitignore

Update .gitignore

Remove all debug info & clean up

Delete this thing

Automate everything & put it into spec

Spaces into tabs

Remove array include as build test

Fix the gitignore
2023-01-29 18:12:08 -05:00
jordan4ibanez
a47890d7cb Fix embedded textures causing a model not to load 2023-01-27 20:45:02 -05:00
Josiah VanderZee
b47858cf80
Fix segfault from reading bad number of indices 2023-01-27 16:17:20 -06:00
Josiah VanderZee
373a33a246
Fix coordinate system change
Old code was inverting the X axis, new code inverts the Z axis.
2023-01-27 16:17:19 -06:00
Josiah VanderZee
d4eea38a65
Fix aliasing violation when reading primitives 2023-01-27 16:17:18 -06:00
Josiah VanderZee
93b538cb58
Test vertex normals on cube 2023-01-27 16:17:17 -06:00
Josiah VanderZee
d90b906d26
Test for texture coordinates on cube 2023-01-27 16:17:16 -06:00
Josiah VanderZee
b1260a8927
Scale cube vertices correctly 2023-01-27 16:17:16 -06:00
Josiah VanderZee
e784335115
Add test for blender cube 2023-01-27 16:17:16 -06:00
Josiah VanderZee
1b9d3ca502
Test for correct vertex indices 2023-01-27 16:17:15 -06:00
JosiahWI
ffd5364533
Remove constexpr from readFloat 2023-01-27 16:17:14 -06:00
JosiahWI
46148bbf61
Load vertex coordinates from glTF buffer 2023-01-27 16:17:14 -06:00
JosiahWI
df5a413083
Test invalid JSON
Also converted all .cpp and .h line endings to CRLF in this commit.
2023-01-27 16:17:13 -06:00
JosiahWI
60e70c3cc5
Update vertex test for coordinate system
This is also the first working version of the mesh. I successfully
loaded it in Minetest.
2023-01-27 16:16:18 -06:00
JosiahWI
336aa204fb
Test that minimal triangle has correct vertices 2023-01-27 16:16:17 -06:00
JosiahWI
4f5588e7e8
Test that minimal triangle returns some mesh 2023-01-27 16:16:17 -06:00
JosiahWI
4860523223
Add GLTF mesh file loader 2023-01-27 16:16:03 -06:00