Bug 81181

Summary: Poor gltf default camera position & centering ...
Product: LibreOffice Reporter: Michael Meeks <michael.meeks>
Component: graphics stackAssignee: Zolnai Tamás <zolnaitamas2000>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: danielyunus06, jbfaure
Version: 4.3.0.2 rc   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 81107    
Attachments: picture of wine in orbit mode

Description Michael Meeks 2014-07-10 16:27:47 UTC
I know that it is hard to calculate the default camera position (when it is not defined in gltf), but it would be good to find a better way to do that.

For example wine model is very far from the camera in orbit mode (see wine_in_orbit_mode.png) and additionally that camera movement constrain which was added recently does not allow us to move camera closer to the model. It moves a bit closer but after that it stops.

Also - Model center position is not calculated right.
In orbit mode rotation is done around the model center position but it seems it's not calculated in the right way. There are more models where rotation is done around the corner of the model and not around it's center. (see these models: jeep, monster, phoenix, wine)
Comment 1 Michael Meeks 2014-07-10 16:29:09 UTC
Created attachment 102560 [details]
picture of wine in orbit mode
Comment 2 Zolnai Tamás 2014-08-11 13:43:41 UTC
*** Bug 82120 has been marked as a duplicate of this bug. ***
Comment 3 Michael Meeks 2014-09-15 19:56:50 UTC
Seems this is fixed in libgltf and Tamas says:

[snip]
The plan is that these fixes will be part of the next libgltf release (0.0.2) and will be integrated to LibreOffice 4.3.3. I created a page for libglTF where you can see the exact dates:
https://wiki.documentfoundation.org/Development/libgltf
[/snip]

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.