-
Notifications
You must be signed in to change notification settings - Fork 64
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
Images data validation #21
Comments
Regarding the first sentence: There is an implementation note at https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#samplers saying
So the power-of-two test should probably not be done at all...? I'll look at this and the other issues ASAP in more detail (but am not sure whether I can make helpful contributions) |
OpenGL ES 2.0 hardware may refuse to render npot textures. I'd argue that this is a reasonable validation warning for runtime format. |
The full implementation note also says something about the conditions under which a texture has to be resized to be POT (maybe I should have quoted this as well, but you're likely more aware of and familiar with this than me anyhow). I think that an asset that is perfectly valid in terms of the spec should not cause any warnings. The renderers have to be aware of the fact that the textures may be non-POT (and have to resize them anyhow, under certain conditions). But I don't have such a strong opinion here, maybe the warning is justified in order to increase this awareness... |
Some packages have levels below To me, NPOT textures sound like
Or something to that effect. It shouldn't be a "warning" if the spec allows it, IMHO. |
For what it's worth, VSCode's This is used for example in their language server sample to report validation errors back to the text editor. The last one, |
Right now, Validator checks only that image dimensions are powers-of-two.
Next checks:
Thoughts?
The text was updated successfully, but these errors were encountered: