leozide / leocad

A CAD application for creating virtual LEGO models
https://www.leocad.org
2.49k stars 211 forks source link

Using a solid color as a background color doesn't work #917

Open MinekPo1 opened 6 months ago

MinekPo1 commented 6 months ago

Describe the bug Using a solid color as a background doesn't work, to me it looks like the background is not cleared between framed.

To Reproduce Steps to reproduce the behavior:

  1. Open app with default settings (or non default settings which uses a solid background color)
  2. See error

Expected behavior The background uses the color set in the settings. Note the flickering ghost images visible when pannig/rotating the camera.

Screenshots https://github.com/leozide/leocad/assets/68391527/791b690d-36db-4cef-be07-30a6f7ce79fe Note that the window being transparent is caused by my compositor and is not caused by this bug (though it does exacerbate it)

Version (please complete the following information):

Crash information: N/A

Additional context Screenshot_20240513_142045

in text form:

Qt Version 5.15.10 (compiled with 5.15.10)

OpenGL Version 4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1 (GLSL 4.60)
AMD Radeon Vega 8 Graphics (raven, LLVM 15.0.7, DRM 3.54, 6.5.0-28-generic) - AMD

Color Buffer: 32 bits
Depth Buffer: 0 bits
Stencil Buffer: 0 bits

Buffers: Supported
Shaders: Supported
Framebuffers: Supported
BlendFuncSeparate: Supported
Anisotropic: Supported (max 16)

this issue does not apply if a gradient background is selected

MinekPo1 commented 6 months ago

interesting, cant reproduce on the provided continuous appimage (I experienced this issue when building from source), I'll see if building an app image makes the issue not apply

edit: cant, my system is "too new" :P

MinekPo1 commented 6 months ago

I can reproduce this issue when building v23.03, this may be an issue with my system maybe?

nathaneltitane commented 6 months ago

use the gradient option and put the same color on both, see what gives - possibly related to another bug

MinekPo1 commented 6 months ago

use the gradient option and put the same color on both, see what gives - possibly related to another bug

the bug does not apply in that case

nathaneltitane commented 6 months ago

@leozide RELATED TO #753

MinekPo1 commented 6 months ago

ah, sorry, I guess I couldn't find the right keywords to find that issue, my bad! do you need any information about my system?