|
From: Colin G. <col...@gm...> - 2025-02-11 16:05:02
|
On Tue, 11 Feb, 2025 at 16:14:05, Fernando García Liñán via Flightgear-devel wrote:
> 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.
I'm trying to think of an Option 3: find a quick way to produce a glTF
file with all origins and transformations set to 0, so that existing
animations can be used without change.
In blender, resetting origin and transformation without affecting the
final position of the mesh is quite easy (from my other mail in this
thread: use 'right click -> set origin' and 'ctrl-A').
(1) Is there maybe a way to do it for all objects at once ?
(2) Even if (1) isn't directly available in blender UI, it should be
very easy to script.
(3) The very dumb alternative: take the AC3D file, import to blender
(all origins will be 0), export to glTF.
Method (3) is obviously not optimal for all useful stuff you might have
in your blender file!
Best,
Colin
|