EEVEE Next: Volume render does not count procedurally modified meshes properly #113963

Closed
opened 2023-10-20 08:56:17 +02:00 by Sun Kim · 6 comments
Contributor

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.40

Blender Version
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-10-19 22:55, hash: a53dd6e93cfe
Worked: n/a

Volume rendering in EEVEE Next was introduced with f79b86553a

Short description of error
Volume rendering in EEVEE Next does not count procedurally modified meshes properly. Volume only renders inside the original mesh's bounding box.

Test file: eevee_next_volume_test.blend

Same result when using modifiers like Displace.

**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 2060 SUPER/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 536.40 **Blender Version** Broken: version: 4.1.0 Alpha, branch: main, commit date: 2023-10-19 22:55, hash: `a53dd6e93cfe` Worked: n/a Volume rendering in EEVEE Next was introduced with f79b86553a **Short description of error** Volume rendering in EEVEE Next does not count procedurally modified meshes properly. Volume only renders inside the original mesh's bounding box. <video src="/attachments/9c35df18-4f36-45fb-81f3-83774f7831ea" title="eevee_next_volume_with_modified_mesh.mp4" controls></video> Test file: [eevee_next_volume_test.blend](/attachments/1efd9e31-4c22-430c-8d1e-e0b054bbe3b6) Same result when using modifiers like Displace.
Sun Kim added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2023-10-20 08:56:18 +02:00
Member

Can confirm

Can confirm
Philipp Oeser added
Status
Confirmed
Module
EEVEE & Viewport
Interest
EEVEE
and removed
Status
Needs Triage
labels 2023-10-20 13:58:23 +02:00
Iliya Katushenock added the
Interest
Modeling
label 2023-10-20 14:06:31 +02:00

@HooglyBoogly Basically the bounding box is wrong. Do you have any idea how to fix that?

@HooglyBoogly Basically the bounding box is wrong. Do you have any idea how to fix that?
Iliya Katushenock self-assigned this 2023-10-23 15:32:30 +02:00
Iliya Katushenock removed their assignment 2023-10-23 15:36:36 +02:00

Hm, it seems result bounding box of mesh is correct. I thought, this is due to incorrectly accessed from render, might be read from original mesh instead of eval/runtime.

Hm, it seems result bounding box of mesh is correct. I thought, this is due to incorrectly accessed from render, might be read from original mesh instead of eval/runtime.
Member

Indeed, the bounding box is correct:
image
image

I can't reproduce the situation in the report either.

Indeed, the bounding box is correct: ![image](/attachments/26c6b5b3-1d9d-4ac8-b59a-ac267b5355d9) ![image](/attachments/755ead9b-3fa6-4b59-996c-2942a5c4c650) I can't reproduce the situation in the report either.
243 KiB
237 KiB
Author
Contributor

I guess this is an issue with texture space, and that procedurally changes not updating it.

The below is a demonstration with texture space display. If texture space is adjusted automatically (by editing original mesh) and manually (via mesh data panel), volume renders properly inside the bound.

This also causes an issue when rendering (hair) curves with volume shader, since curves, unlike other object types, always retain 1x1x1 (default?) texture space and do not adjust its texture space automatically with manual edits.

hair_curves_volume.png

hair_curves_volume.blend

Oddly, volume renders correctly when it's rendered in orthographic view.

eevee_next_volume_ortho.png

I guess this is an issue with texture space, and that procedurally changes not updating it. The below is a demonstration with texture space display. If texture space is adjusted automatically (by editing original mesh) and manually (via mesh data panel), volume renders properly inside the bound. <video src="/attachments/615c2220-7996-4439-93b8-29facefa2aac" title="eevee_next_volume_with_texture_space.mp4" controls></video> This also causes an issue when rendering (hair) curves with volume shader, since curves, unlike other object types, always retain 1x1x1 (default?) texture space and do not adjust its texture space automatically with manual edits. ![hair_curves_volume.png](/attachments/36e2642c-4977-4f64-a771-e40e3043a759) [hair_curves_volume.blend](/attachments/0646cd73-70c7-449f-a782-00e65d78755c) Oddly, volume renders correctly when it's rendered in orthographic view. ![eevee_next_volume_ortho.png](/attachments/bde2d3e7-5a9d-41c9-ac01-96ed162cd9f9)

Fixed by the refactor that used the fragment shader to fill the volume properties.

Fixed by the refactor that used the fragment shader to fill the volume properties.
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-04-23 23:55:57 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#113963
No description provided.