Add visualization for SDF/Levelset Volume Grids #88599

Open
opened 2021-05-26 17:31:58 +02:00 by Angelo Tartanian · 6 comments

Problem:
OpenVDB Levelset/SDF grids don't render properly when imported into Blender. This is because Blender considers all volume grids to directly represent some quantity in space such as density, but SDF Level sets instead are a representation of the boundary of a volume.

Solution:
Add a way for Volume Grids to store an alternate grid used for display purposes and use that to store a fog volume version of the original SDF/Levelset.

Alternatives:

Store a mesh of the boundary surface

- Pros
  - SDFs really are a representation of a surface (though, not usually a discrete surface like a mesh, rather a functional implicit surface)
- Cons
  - User loaded a Volume but now sees a Mesh. The data block still shows up as a Volume.
  - More costly to compute the mesh representation of a Volume than the Fog version
  - Adding a volume to mesh modifier results in the same display, since we were already showing a Mesh before we formally converted the data.

Add a new way for the renderers to display SDFs

- Pros
  - Valuable to see the SDF data directly either as a distance field or as an implicit surface
- Cons
  - A much bigger project that would involve research and potentially large changes to Workbench and Eevee
**Problem:** OpenVDB Levelset/SDF grids don't render properly when imported into Blender. This is because Blender considers all volume grids to directly represent some quantity in space such as density, but SDF Level sets instead are a representation of the boundary of a volume. **Solution:** Add a way for Volume Grids to store an alternate grid used for display purposes and use that to store a fog volume version of the original SDF/Levelset. **Alternatives:** # Store a mesh of the boundary surface - Pros - SDFs really are a representation of a surface (though, not usually a discrete surface like a mesh, rather a functional implicit surface) - Cons - User loaded a Volume but now sees a Mesh. The data block still shows up as a Volume. - More costly to compute the mesh representation of a Volume than the Fog version - Adding a volume to mesh modifier results in the same display, since we were already showing a Mesh before we formally converted the data. # Add a new way for the renderers to display SDFs - Pros - Valuable to see the SDF data directly either as a distance field or as an implicit surface - Cons - A much bigger project that would involve research and potentially large changes to Workbench and Eevee
Angelo Tartanian self-assigned this 2021-05-26 17:31:58 +02:00

Added subscriber: @AngeloTartanian

Added subscriber: @AngeloTartanian
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Interesting.
This would need to be confirmed as a TODO of some sort, but this is something the module devs need to do.
It certainly is out of scope of the bug tracker.

Interesting. This would need to be confirmed as a TODO of some sort, but this is something the module devs need to do. It certainly is out of scope of the bug tracker.
Member

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Added subscriber: @AmosManneschmidt

Added subscriber: @AmosManneschmidt
Brecht Van Lommel added this to the Render & Cycles project 2023-02-07 19:08:06 +01:00
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:02:27 +01: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 Assignees
4 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#88599
No description provided.