Bug 134141 - We lost the 3D model when we save in OOxml (in pptx or ppsx)
Summary: We lost the 3D model when we save in OOxml (in pptx or ppsx)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: x86-64 (AMD64) All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 3D-Model
  Show dependency treegraph
 
Reported: 2020-06-19 07:34 UTC by NSO LibreOffice Team
Modified: 2024-01-23 18:49 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Insert 3D model, saving the document as pptx format ,3D model will not display. (88.40 KB, image/png)
2020-06-23 02:09 UTC, NSO LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NSO LibreOffice Team 2020-06-19 07:34:33 UTC
Insert 3D model, saving the document as pptx format ,3D model will not display.
Comment 1 NSO LibreOffice Team 2020-06-19 07:44:25 UTC
Steps:
1) New presentation
2) Insert 3D model
3) After saving to pptx document format, close the document
4) Open the document again and the 3D model disappears

Result: 3D model lost

Expected: have the 3D model (when we save in pptx, the 3D model is keeping)

Additional Info:
edition 6.4.4.2 (x64)
Regional language: zh CN (zh CN)_ Cn); UI Language: zh cn
Comment 2 Xisco Faulí 2020-06-22 13:37:13 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it. 
See https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F for help on how to do so.)
Comment 3 NSO LibreOffice Team 2020-06-23 02:09:13 UTC
Created attachment 162330 [details]
Insert 3D model, saving the document as pptx format ,3D model will not display.

Steps:
1) New presentation
2) Insert 3D model
3) After saving to pptx document format, close the document
4) Open the document again and the 3D model disappears
Comment 4 Regina Henschel 2020-06-23 08:59:55 UTC
OOXML has no directly corresponding element for <dr3d:scene> element and its child elements. Which ersatz do you expect?
Comment 5 Regina Henschel 2020-06-23 10:07:57 UTC
I think, implementing import and export of the Microsoft extension "model3d" might work. See section 2.31 in
https://interoperability.blob.core.windows.net/files/MS-ODRAWXML/%5BMS-ODRAWXML%5D.pdf
Comment 6 NSO LibreOffice Team 2020-06-24 02:08:08 UTC
(In reply to Regina Henschel from comment #5)
> I think, implementing import and export of the Microsoft extension "model3d"
> might work. See section 2.31 in
> https://interoperability.blob.core.windows.net/files/MS-ODRAWXML/%5BMS-
> ODRAWXML%5D.pdf



Thanks Regina Henschel!
I think you're right,implementing import and export function of the Microsoft extension "model3d" Will solve this bug,What should we do specifically?
Comment 7 Regina Henschel 2020-06-24 12:02:20 UTC
It is a large task. Therefore I have set it to "enhancement". 3D models in MS Office consists of two parts:
One part is the view settings in <am3d:model3d> in slide#.xml. That is easy.
The other part is the model itself in folder media. MS Office uses glTF.
https://en.wikipedia.org/wiki/GlTF
That is the hard part. I don't know, whether a library with a license exists, which LibreOffice can use directly.

A start would be, to make glTF-models corresponding to our preset 3D-objects using a third party tool and use these for export. MS Office has no means to change the 3D model itself, but only for changing the view. So the model would likely be the same on import. 

Another thing, which should be done anyway, is to provide a fallback picture as MS Office has it in its <mc:Fallback> element. AFAIK you need at least MS Office 2019 to show 3D Models.

I don't know, whether PowerPoint keeps something in the media folder, which is not actually used. If it keeps it, you could put an xml-fragment of our 3d-scene there and recover it on import.
Comment 8 Adolfo Jayme Barrientos 2020-06-25 11:14:53 UTC
Regressed by commit 08a43cc97ccf88faa9d3a04afc3aacd2c885a2d1
related: tdf#103884 remove gltf/collada feature