Jump to content

GLTF model crashing editor and program


SpiderPig
 Share

Go to solution Solved by Josh,

Recommended Posts

  • Solution

It looks like the image indexes aren't correct and this is not a valid glTF file. I added some checks to prevent crashing, but the image indexes are wrong. It would appear this indicates an error in the Ultra glTF saver.

If you can provide the original file, before it was saved from Ultra, I will test with that.

The images section only contains four images:

	"images": [
		{
			"uri": "PineLeaves_DIFF.png"
		},
		{
			"uri": "PineLeaves_NORM.png"
		},
		{
			"uri": "PineTrunk_DIFF.png"
		},
		{
			"uri": "PineTrunk_NORM.png"
		}
	],

But the textures section is referencing images greater than 3:

	"textures": [
		{
			"extensions": {
				"MSFT_texture_dds": {
					"source": 1
				}
			},
			"source": 0
		},
		{
			"extensions": {
				"MSFT_texture_dds": {
					"source": 3
				}
			},
			"source": 2
		},
		{
			"extensions": {
				"MSFT_texture_dds": {
					"source": 5
				}
			},
			"source": 4
		},
		{
			"extensions": {
				"MSFT_texture_dds": {
					"source": 7
				}
			},
			"source": 6
		}
	]

 

  • Thanks 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...