Re: Value range of c3DSpecularAmt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Miklos, hi Michael,

There are problems in xmloff to get draw:extrusion-specularity ODF conform:
If I write it out in XML_NAMESPACE_LO_EXT in LO 7.4, then the previous versions of LO 7 will not be able to read it. If I would write a clamped value in XML_NAMESPACE_DRAW and the original value in XML_NAMESPACE_LO_EXT, how could I get the original value on reading?

For ODF 1.2 I tend to always write out a clamped value.
ODF 1.1 allows the original value.

The request for changing the data range for ODF 1.4 is in https://issues.oasis-open.org/browse/OFFICE-4122

Kind regards,
Regina


Miklos Vajna schrieb am 04.02.2022 um 08:57:
Hi Regina,

On Sun, Jan 30, 2022 at 11:28:09PM +0100, Regina Henschel <rb.henschel@xxxxxxxxxxx> wrote:
When the shape is rendered, the product of light intensity and specularity
is converted to a gray color for the 3D-Scene attribute
D3DMaterialSpecularIntensity. Because the light intensity is often smaller
than 100% a value for c3DSpecularAmt larger than 100% can be used
meaningful.

The range to [0%,100] has been introduced with [Office-2509] for ODF 1.2. In
ODF 1.1 the data type was "percent".

What to do?

My suggestion is: Allow larger values than 100% in LibreOffice. Clamp the
value to 100% in case of writing ODF 1.2 and 1.3 strict and use loext in
case of ODF 1.2 and 1.3 extended. And write to ODF TC to re-enable values
larger than 100% for ODF 1.4.

What do you think?

I think this is entirely reasonable.

Thanks,

Miklos





[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux