I mean, it should look like a background gradient. Like background in freecad.
And its display should not depend on the rotation of the camera.
I expect this behavior.
And earlier, in Ubuntu 16.04, it worked with the occt7.2 kernel.
After switching to Ubuntu 18.04, something has changed, but I'm not sure that the problem is in the operation system.
Have you tried localizing the issue?
Try disabling the code displaying any other object in 3D Viewer to see if something is triggering the issue.
Gradient background is used by many OCCT applications, so that there should be something different in your test case...
If you have built OCCT with Draw Harness, then the following simple test script should display a correct background:
If i set background early ```vfit``` command, it looks correct. But after ```vfit``` it breaks.
In my app, i have the correct gradient if list of shapes is empty. But box(1,1,1) broke it.
Sun, 10/21/2018 - 10:32
So what exactly wrong on your screenshot?
Sun, 10/21/2018 - 15:00
I mean, it should look like a background gradient. Like background in freecad.
And its display should not depend on the rotation of the camera.
I expect this behavior.
occ-> m_view-> SetBgGradientColors (
Quantity_Color (0.5, 0.5, 0.5, Quantity_TOC_RGB),
Quantity_Color (0.3, 0.3, 0.3, Quantity_TOC_RGB),
Aspect_GFM_VER,
Standard_True
);
And earlier, in Ubuntu 16.04, it worked with the occt7.2 kernel.
After switching to Ubuntu 18.04, something has changed, but I'm not sure that the problem is in the operation system.
Correct background on attached screenshot.
Sun, 10/21/2018 - 15:17
Which version of OCCT you are using?
Did you build it yourself, or configured some Launchpad repository?
Sun, 10/21/2018 - 15:22
I tried 7.2.0, 7.3.0, which are compiled by myself, and version occt from ubuntu apt-get repo (libocct-*-7.3).
Sun, 10/21/2018 - 15:27
Sorry... experiment with ubuntu rep was failed. In realy it was libraries compiled by myself in all variants....
Sun, 10/21/2018 - 15:37
But it really doesn't work with libocct-*-7.3 from apt. The bug remains unchanged
Sun, 10/21/2018 - 15:38
Have you tried localizing the issue?
Try disabling the code displaying any other object in 3D Viewer to see if something is triggering the issue.
Gradient background is used by many OCCT applications, so that there should be something different in your test case...
If you have built OCCT with Draw Harness, then the following simple test script should display a correct background:
Sun, 10/21/2018 - 15:46
have done
I think this is not what I should have seen.
Sun, 10/21/2018 - 16:16
If i set background early ```vfit``` command, it looks correct. But after ```vfit``` it breaks.
In my app, i have the correct gradient if list of shapes is empty. But box(1,1,1) broke it.
Sun, 10/21/2018 - 15:05
Now it seems like...