Page MenuHome

Regression: Viewport cycles render: all lines disappear
Confirmed, NormalPublicBUG

Description

System Information
Operating system: Windows-8.1-6.3.9600-SP0 64 Bits
Graphics card: GeForce GTX 660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40

Blender Version
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-02-25 05:34, hash: rB0e1c6a29cbb2
2.93.0-4a784f32fe1e-windows64 already have this bug

Short description of error
When I enable Cycles render in viewport all line-objects disappear: empties, lights, curves, wireframes etc.
Tested with factory settings too.

Also wireframes disappear only for cycles area, not for all viewport.

Also Blender renders wireframe at first, but hide after rotation and it is no matter if I render with CPU or GPU

Event Timeline

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Needs Information from User.Mar 1 2021, 2:13 PM

Cannot reproduce here

**System Information**
Operating system: Linux-5.10.12-200.fc33.x86_64-x86_64-with-glibc2.32 64 Bits
Graphics card: GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 455.45.01
version: 2.93.0 Alpha, branch: master (modified), commit date: 2021-03-01 09:59, hash: `rBca63729a5b0e`

Just to make sure: could you check with the latest build from https://builder.blender.org/download/? (since you already checked Factory Settings it seems)
Not sure if you tweaked any other settings, posting your "failing" file could also help.

Vyacheslav (hitrpr) added a comment.EditedMar 1 2021, 3:15 PM

@Philipp Oeser (lichtwerk) yes, the same with last version.
Bug does not depend on file, just factory startup and default file

Philipp Oeser (lichtwerk) changed the task status from Needs Information from User to Needs Triage.Mar 1 2021, 3:20 PM
Vyacheslav (hitrpr) added a comment.EditedMar 1 2021, 5:33 PM

Not reproduced with:

Blender version: 2.93.0 Alpha, branch: master, commit date: 2021-03-01 01:00, hash: 1638af109e46, type: Release
build date: 2021-03-01, 07:28:06
platform: Windows 10

'GeForce GTX 1050 Ti/PCIe/SSE2' 4ГБ
vendor: 'NVIDIA Corporation'
version: '4.5.0 NVIDIA 456.71'

So not OS/windows issue probably.

Germano Cavalcante (mano-wii) changed the task status from Needs Triage to Confirmed.Mar 3 2021, 9:21 PM
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".

I can confirm the problem.
This change seems to resolve:

diff --git a/source/blender/draw/engines/external/external_engine.c b/source/blender/draw/engines/external/external_engine.c
index adb21540afb..1ede12a7876 100644
--- a/source/blender/draw/engines/external/external_engine.c
+++ b/source/blender/draw/engines/external/external_engine.c
@@ -281,6 +281,8 @@ static void external_draw_scene(void *vedata)
   }
 
   if (stl->g_data->update_depth && stl->g_data->need_depth) {
+    GPU_framebuffer_bind(dfbl->depth_only_fb);
+    GPU_framebuffer_clear_depth(dfbl->depth_only_fb, 1.0f);
     DRW_draw_pass(psl->depth_pass);
     /* Copy main depth buffer to cached framebuffer. */
     GPU_framebuffer_blit(dfbl->depth_only_fb, 0, fbl->depth_buffer_fb, 0, GPU_DEPTH_BIT);