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

Texture Size [0/0] is causing unwrapping & baking problems #354

Closed
AVGP opened this issue Feb 28, 2017 · 0 comments
Closed

Texture Size [0/0] is causing unwrapping & baking problems #354

AVGP opened this issue Feb 28, 2017 · 0 comments
Assignees
Labels

Comments

@AVGP
Copy link
Owner

AVGP commented Feb 28, 2017

Original issue: https://task.archilogic.com/issues/9279

How to reproduce: 1) open http://goo.gl/kLfWEz 2) Observe the Texture Size of the "front material", the size is [1, 1] 3) Look at the front material in the model structure. It says size [0, 0] 4) You can reproduce this by setting the texture size of a material to 0, 0. Then remove all texture, save the model and reload. now it will show (1,1) but the size reference in the model structure will be 0, 0 Result: If you bake the model, baking fails because of invalid UV coordinates.

e3d.require.js:279 Baking error in preview bake:  Error baking file: Unrecognized token nan': was expecting 'null', 'true', 'false' or NaN
 at [Source: /tmp/baking-server/tmp/bake/exported/lighting.al2.json; line: 124, column: 43]

!invalid.png! Expected result: Fallback to minimum texture size > proper uv unwrapping Todo: - Set a reasonable texture size minimum (>0) (there is a minimum in the slider but not the numeric field) - editor should read the texture size property from the structure, even if there is no tetxure. - OR: size property should be removed if all textures are removed

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

No branches or pull requests

2 participants