Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max GLTFExporter: Material exportation very slow with large bitmaps. #35

Closed
Selmar opened this issue Nov 20, 2017 · 1 comment
Closed
Assignees

Comments

@Selmar
Copy link
Contributor

Selmar commented Nov 20, 2017

Exporting materials is abnormally slow. it is stuck exporting gltf materials for a long time. The total export time is 144 seconds. I don't recall it being this slow last month (same file).

Initially I thought the problem was because I had very large textures attached (multilayer .tiff, > 100 MB), however after replacing the maps with previously exported .jpg files, it still takes around 140+ seconds.

If copy textures to output is selected, the time increases to around 240 seconds (I did not test this with the smaller textures).

There is nothing abnormal about the exported materials.

image

	"materials": [{
			"pbrMetallicRoughness": {
				"baseColorFactor": [0.612745166, 0.612745166, 0.612745166, 1.0],
				"metallicFactor": 0.0,
				"roughnessFactor": 0.9
			},
			"emissiveFactor": [0.0, 0.0, 0.0],
			"name": "04 - Default"
		}, {
			"pbrMetallicRoughness": {
				"baseColorFactor": [1.0, 1.0, 1.0, 1.0],
				"baseColorTexture": {
					"index": 0
				},
				"metallicFactor": 0.0,
				"roughnessFactor": 0.9
			},
			"emissiveFactor": [0.0, 0.0, 0.0],
			"name": "09 - Default"
		}, {
			"pbrMetallicRoughness": {
				"baseColorFactor": [1.0, 1.0, 1.0, 1.0],
				"baseColorTexture": {
					"index": 1
				},
				"metallicFactor": 0.0,
				"roughnessFactor": 0.9
			},
			"emissiveFactor": [0.0, 0.0, 0.0],
			"name": "05 - Default"
		}
	],
@noalak
Copy link
Contributor

noalak commented Nov 28, 2017

Export duration has been drastically reduced when 'Copy textures to output' feature is disabled.

When exporting materials, images are read, each pixel is processed and resulting image is written. We are aware it's a long process, even more for larger images. But there is nothing we could do.

An example is the combinaison of metallic and roughness maps into a single map when exporting a Physical material. More details here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants