metaballs converted to meshes appear to render at an incorrect isosurface #65996
Labels
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#65996
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
System Information
Operating system: Linux bertha 5.1.0-gentoo-bertha #1 SMP Sat May 11 18:27:21 EDT 2019 x86_64 Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz GenuineIntel GNU/Linux
Graphics card: Radeon Pro WX 9100 (VEGA10, DRM 3.30.0, 5.1.0-gentoo-bertha, LLVM 6.0.1)
Blender Version
Broken: 2.80 (sub 74), branch: master, commit date: 2019-06-20 22:36, hash:
197661c733
, type: ReleaseWorked: 2.80 (sub 74), branch: master, commit date: 2019-06-02 21:33, hash:
19dcb22a88
, type: ReleaseWorked: 2.79b
Short description of error
When converting metaballs of any type to a mesh, the conversion seems to choose the wrong isosurface. For example, isosurfaces corresponding to a stiffness of approximatly 0.6 are rendered as if they are approximately stiffness 1.8 - 2.0 isosurfaces.
Exact steps for others to reproduce the error
metaball_2_280.blend
metaball_2_279.blend
gosgood-system-info.txt
Added subscriber: @grosgood
Added subscriber: @lichtwerk
Confirmed, checking...
first note: changing MBall threshold goes into
polygonize(&process);
once [via depsgraph]conversion to mesh goes there multiple times (suspicious?):
process->totelem
changed from 4 to 8 and alsoprocess->bvh_queue_size
changed...]needs some more investigation...
Ah...!
A total element count change from 4 to 8 is interesting, for if there is now two radiating points where there were just one before, the isosurface would reflect the resulting change in field strength, which, methinks, we are seeing.
Pity I'm in my office and need to do paywork. Be nice to drop a watchpoint on totelem field and find out where it flips.
Thank you for checking.
Added subscriber: @mont29
This is actually caused by
8aa87972ca
(this is why code reaches
polygonize(&process)
multiple times as mentioned in above comment)I first assumed there was something wrong with
BKE_scene_base_iter_next
(called [here ]] -- we are getting multiple objects back) or it would just wrong that(*base)->next
is not NULL [ https:*developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/scene.c$1100 | here , but it turns out that above commit causes the depsgraph to be updated and so new objects end up in the depsgrah --> thusBKE_scene_base_iter_next
picks them up...@mont29: not sure what the best way would be to prevent that? Or how we could could tell them apart in
BKE_scene_base_iter_next
? (otherwiseprocess->totelem
will falsely grow, see above comment)I guess, you'll get there quicker, mind checking?
This issue was referenced by
c0c1b4542f
Changed status from 'Open' to: 'Resolved'