Replies: 2 comments
-
Related: #4762. |
Beta Was this translation helpful? Give feedback.
0 replies
-
FYI, you need three backticks around a code block, single ones only work on a single line. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
im am currently working on loading models in openGL by reading and parsing the .gltf files. But whenever I run the program, I get redirected to the this line with an error:
JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j))
At first I thought it was the
accessor["type"]
, since I thought it was converted into an integer, but when I stepped through the program I noticed that the error ocurred right before this line:unsigned int componentType = accessor["componentType"];
Now I am not sure where the issue is located.
Here is my code for getting the floats and indices:
`std::vector Model::getFloats(json accessor)
{
std::vector floatVec;
}`
`std::vector Model::getIndices(json accessor)
{
std::vector indices;
}`
Beta Was this translation helpful? Give feedback.
All reactions