Unable to import .gLTF models
Ryan Willis
Anyone else been able to import .glTF models with ReadGLTF in Eyeshot 2024? With every model I try to import I get the error "Unexpected magic number: 538970747Model generated by <> seems to be malformed; Please, check the file at https://github.khronos.org/glTF-Validator/". I've tried about ten different models (from different websites) and it always gives this error. This is just using the code below. Is there some other properties that need to be set for .glTF model imports? Currently using version 2024.3.512.
ReadFileAsync reader = new ReadGLTF(fileName);
View3d.StartWork(reader); //View3d is a Design object
private void View3d_WorkCompleted(object sender, devDept.WorkCompletedEventArgs e)
{
try
{
if (e.WorkUnit is ReadFileAsync reader)
{
try
{
Entity[] entities = null;
entities = reader.Entities;
"reader.Entities" comes back null for .gltf models.
0
Comments
Hello Ryan,
Are you using the latest Eyeshot 2024 version available? Did you try Eyeshot 2025?
It is version 2024.3.512 which is the latest. I haven't tried 2025 yet.
I found the issue was that ReadGLTF populates the reader.Blocks[] collection instead of reader.Entities[]. So for ReadGLTF we use the former instead.
Please sign in to leave a comment.