Commit Graph

20 Commits

Author SHA1 Message Date
JosiahWI dcff130333 Do not fail to load glTF because of warnings 2024-04-18 11:43:49 -05:00
JosiahWI e58e9d5c51 Mark CGLTFMeshFileLoader constructor as noexcept 2024-04-18 11:43:49 -05:00
jordan4ibanez a73e6895d8 spaces->tabs 2024-04-18 11:42:07 -05:00
jordan4ibanez 5bad6e8a76 Update code with requested changes
Fix mistake on github

Comply with changes 1

Comply with requested changes 2

Comply with requested changed 3

Comply with requested changed 4

Requested changed 5

Requested changed 6

Requested changed 7

Requested changed 8

Requested changed 9

Requested changed 10

Requested changes 11

Requested changes 12

This one wasn't even requested

I just turned on my vertical ruler and I'm going to go nuts

Line 81 doesn't exist anymore

Requested changes 13

Requested changes 14

Begin snow man test

Write a lot of tests for snow man

Add to git ignore

Now unignore it

Alphabetical order

Pass by reference

Pass by reference

vertexBuffer is now handled on stack

Preallocate indicesBuffer then reverse it when complete

Undo vertexBuffer stack change causing mac builds to fail

Use direct initialization on the vertexBuffer
2024-04-18 11:42:07 -05:00
jordan4ibanez ee5f89ce56 Fix embedded textures causing a model not to load 2024-04-18 11:42:07 -05:00
jordan4ibanez 3c468352c7 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
2024-04-18 11:42:07 -05:00
Josiah VanderZee 9efbd9e262 Fix segfault from reading bad number of indices 2024-04-18 11:42:06 -05:00
Josiah VanderZee 5391f726dd Fix coordinate system change
Old code was inverting the X axis, new code inverts the Z axis.
2024-04-18 11:42:06 -05:00
Josiah VanderZee d9cc838a0c Fix aliasing violation when reading primitives 2024-04-18 11:42:06 -05:00
Josiah VanderZee e25896a526 Test vertex normals on cube 2024-04-18 11:42:06 -05:00
Josiah VanderZee dcaa9e8d15 Test for texture coordinates on cube 2024-04-18 11:42:06 -05:00
Josiah VanderZee 58753bc0c9 Scale cube vertices correctly 2024-04-18 11:42:06 -05:00
Josiah VanderZee dd70684e1b Add test for blender cube 2024-04-18 11:42:06 -05:00
Josiah VanderZee 6024141121 Test for correct vertex indices 2024-04-18 11:42:06 -05:00
JosiahWI 08532144f5 Remove constexpr from readFloat 2024-04-18 11:42:06 -05:00
JosiahWI ac7bac9a3a Load vertex coordinates from glTF buffer 2024-04-18 11:42:06 -05:00
JosiahWI 40a1edef7f Test invalid JSON
Also converted all .cpp and .h line endings to CRLF in this commit.
2024-04-18 11:42:04 -05:00
JosiahWI 70274896b6 Update vertex test for coordinate system
This is also the first working version of the mesh. I successfully
loaded it in Minetest.
2024-04-18 11:40:35 -05:00
JosiahWI 67470a340c Test that minimal triangle has correct vertices 2024-04-18 11:40:34 -05:00
JosiahWI f184784f14 Test that minimal triangle returns some mesh 2024-04-18 11:40:34 -05:00