|
From: TheFGFSEagle <the...@gm...> - 2025-02-11 15:29:52
|
Okay, then we can simply add a flag <use-gltf-origins> if set to true, will use current gltf behaviour, if set to false will add <center> at 0,0,0 thus replicating the old behaviour Am Di., 11. Feb. 2025 um 16:15 Uhr schrieb Fernando García Liñán via Flightgear-devel <fli...@li...>: > On 11/2/25 14:47, Richard Harrison wrote: > > I'm not exactly sure what isn't backwards compatible and what the > > options are? > > Many animations require a <center> tag. A good example is the rotation > animation, which uses the <center> tag to specify the rotation center. > > The glTF loader does not require filling out this <center> tag, because > by default it uses the object origin from Blender. This is not backwards > compatible because the previous behavior when a <center> tag is not > specified is to use the model origin (0,0,0). > > Option 1: Replicate the previous behavior using (0,0,0) when no <center> > has been specified. > > Option 2: Keep the current glTF behavior, i.e. use the object center > from Blender as the default center. > > -- > Fernando > > > _______________________________________________ > Flightgear-devel mailing list > Fli...@li... > https://lists.sourceforge.net/lists/listinfo/flightgear-devel > |