Clarify TRS properties in the Object Model#2559
Clarify TRS properties in the Object Model#2559lexaknyazev merged 1 commit intoKhronosGroup:mainfrom
Conversation
javagl
left a comment
There was a problem hiding this comment.
Fixes #2547 ?
"Since the glTF 2.0 specification allows..."
It sounds like a reasonable change for me.
I cannot be sure that I fully understand the implications for consumers of such assets, and even less for producers. It may imply that, as a general rule, individual TRS properties should be preferred over a matrix. But to my understanding, that would perfectly make sense for anything that is related to interactivity, and have no drawbacks.
(The difficulties for consumers to track and handle a mix of TRS and matrix already exist, independently of the object model)
Tag @emackey because you also had some thoughts in the issue.
dbd5202 to
d0b3e91
Compare
|
Implications for consumers (i.e., engines or loaders):
Implications for producers (i.e., exporters):
|
d0b3e91 to
25822b7
Compare
That's what the PR says. |
|
It's unfortunate that the spec needs to reference what exists "in JSON" as opposed to some parameter setting or value. But it's not clear how to get around this without creating more problems, so, I won't object to this. |
|
One question for something that's not entirely clear to me, what happens when matrix and translation are both defined? Does translation "win" and override the translation of the matrix? Can I in that case have the matrix and translation and then animate or make interactive just the translation property? |
That's disallowed by the base spec. |
|
Thanks, then I'm not sure if the section is clear enough: https://github.com/KhronosGroup/glTF/pull/2559/changes#diff-8f228d937d6ff200a2972f8164aa5f5738bf0377eab6023a9eba4f2b106e6fe5. For me it sounds like "translation" can still be utilized with both interactivity and animation data, only rotation and scale are ruled out. But I might be misreading that. |
Do you think more clarifications are needed? |
/cc @aaronfranke @hybridherbst