Page MenuHome

gpu.types.GPUOffscreen renders nothing when samples > 0
Confirmed, NormalPublicBUG

Description

System Information
Operating system: Linux-5.3.0-55-lowlatency-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 435.21

Blender Version
Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash: rB211b6c29f771
Worked: None known 2.90 alpha has same issue

Short description of error
Offscreen rendering from Python fails if GPUOffscreen buffer is created with any number of of samples > 0. If samples > 0, nothing is drawn (nor is there any error)

Exact steps for others to reproduce the error
Run the small script in the attached .blend (it is the sample script for offscreen rendering from the documentation but with samples>0)
The generated image is empty.

(full system info also in .blend in text buffer system-info.txt)

Event Timeline

I'm not sure if it's a bug or an error in use.
With samples 1 it works.

@Clément Foucault (fclem), is it necessary to enable any gl state for the ofscreen multisample to work?

Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Confirmed.Jun 11 2020, 2:35 PM
Germano Cavalcante (mano-wii) changed the subtype of this task from "Report" to "Bug".Jun 11 2020, 2:39 PM