Apache OpenOffice (AOO) Bugzilla – Issue 75154
3D shapes lose color at certain angle or rotation
Last modified: 2013-08-07 15:21:02 UTC
When 3D shapes are rotated, at certain angle, a face loses all color, and becomes white. The attached file shows screenshots with a yellow background. Desired: The face should not lose all color.
Created attachment 43544 [details] Screenshots of a rotated shape
Reproducible. Reassigned.
Hi, The window 3D effects from the contextmenu, has a tab with a light bulb. Playing with that gives posibility to adjust colors. Does that give a solution?
You mean the "Extrusion light" window? That is a separate control, which changes only the angle of the incident light. I am referring to rotating the object itself. So changing the light is not the correct solution. BTW I have shown only the edge (thickness) of the 3D shape having this loss of color. But the same thing happens for even the main face of a shape. When that happens, the shape loses color for a very wide rotation angle.
the window I mean is showed in next attachment
Created attachment 43571 [details] jpg showing 3Deffects window in Draw
AW: You are both right, but talking about different things. We have two 3d UI-modes now, thanks to the MS-compatible AutoShapes 3D stuff which also mimic the UI for that. It is different to convert a draw object to 3D compared with a AutoShape (for which this bug is). Explanation is pretty simple: The object does not 'lose' color, but the plane in question has only one plane normal (is not interpolated to mimic the non-really 3d stuff from ms). The lighting equation is calculated for that normal. If that normal points to the light source, it gets a hilight effect which ends in returning pure hilight color of thatlight source. Per default the first light source has a hilight activated. AW->SJ: Please check if AutoShape ion question looks different with ms. If Yes, it is necessary to switch off the hilight for light source 1 or (alternative) use light source 2 by default where it is off by default already.
The shape does not reflect that much of a "shine" in MS Office: The brightest part of the 3D shape is only a little lighter than the color of its non-3D (plain) equivalent. In OOo, the highlight is too bright(it makes the object pure white at that spot), which not natural.
The same correction should be applied to the other GUI pointed out by cornouws. (See the blue globe in his screenshot: The top part of the globe is white; which is exactly the same issue)
Created attachment 43619 [details] In-depth analysis of rotation of 3D-shape
AW and SJ, I have attached a sample about what happens with OpenOffice. As demonstrated, there are in fact several issues: 1. Compared to MS Office, OpenOffice uses a much wider range of colors to distinguish shadows from highlights. As a result, the RGB values of the color quickly reach 00 or FF. On the other hand, MS Office uses a much smaller range, so it can handle more "plain shape" colors, even when they are much closer to saturation (FF). 2. Even when any of the RGB reaches the end of range (00 or FF), OpenOffice continues to change the remaining color. As a result, the shade of the color changes. MS Office uses the same shade for all surfaces. 3. The color does not change linearly with the plane's angle vis-a-vis light source.