Hi all,
most (all?) attributes for 3D objects (scene, cube, sphere, extrude,
rotate) and for the camera description (vrp, vpn, vup, distance,
focal-length, projection) are optional in ODF1.2 but have no defaults.
Before I suggest defaults, I want to look, what defaults AOO is using.
But I'm a little bit lost in the code.
From the appearance and from some code snippets I guess this:
(1) There exists an general interpretation 1cm = 1000 units and 1 unit =
1/100mm for values without explicit unit.
(2) The values in svg:viewBox of extrude and rotate are interpreted as
1/100mm, so a value of 8000 will be interpreted as 8cm. The viewBox is
interpretated as x-min, y-min, width, height (as in SVG). Negative
values in x-min and y-min are allowed, don't know about real numbers.
(3) Cube and sphere have a default size of (5000|5000|5000). That
results in a sphere with diameter 5cm and a cube with edge length 5cm.
(4) Cube, sphere, and inner scene are axis aligned and centered around
origin.
(5) distance = 1cm and focal-length = 1cm
(6) vup = (0 | 1 | 0)
(7) vpn = (0 | 0 | r/3.5) Where r is the value from svg:width of the
outermost scene in unit 1/100mm.
(8) vrp = (0 | 0 | r/3.5 + 'distance')
(9) projection = perspective
(10) Camera settings, svg:width, svg:height, svg:x, and svg:y are
ignored for inner scenes.
(11) The "photo" of the scene is scaled to svg:width and svg:height of
the outermost scene.
Are these observations correct?
Kind regards
Regina
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]