Volume cube won't render in Cycles #106776
Operating system: Windows 10
Graphics card: Nvidia RTX3090
Broken: 3.3, 3.6
Worked: (don't know)
Short description of error
I've made a simple volume cube and attached a material to it, and as you can see on the screenshot it's there in the regular viewport, but as soon as I switch to rendered viewport it doesn't show. In Cycles that is, it's working as intended in Eevee. If I also add a 'volume to mesh' and then a 'mesh to volume' it shows up. I've tried with both a regular geometry object as a base for the geo node modifier and also a volume object but both refuses to render as they should.
Exact steps for others to reproduce the error
Open the attached .blend file and try it.
I also added those extra two nodes in there for you to see how it works with those enabled.
If you scroll the X-resolution while in render mode the cube shows up but seems to disappear on some even values (on multiples of 8?).
I experimented a bit more with this and noticed that when the input density is not a constant float value, for example noise is added, it works fine.
It seems like the problem here is that no leaf nodes are created in the volume grid when the Density is constant, which tricks Cycles into thinking the grid is empty.. Will submit a PR with a propsed fix.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?