Emitted Metaball not showing and rendering correctly #43666

Closed
opened 2015-02-15 03:58:15 +01:00 by Eli Spizzichino · 13 comments

System Information
kubuntu 14.04 with gtx 580 and 590

Blender Version
Broken: >= 2.72
Worked: <= 2.71

Short description of error
Created a simple scene with emiter set to fluid and to render object metaball and a collision object with particle dumping
Metaball are invisible or rendered low res and not stiching to the surface

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps
DROP.blend

**System Information** kubuntu 14.04 with gtx 580 and 590 **Blender Version** Broken: >= 2.72 Worked: <= 2.71 **Short description of error** Created a simple scene with emiter set to fluid and to render object metaball and a collision object with particle dumping Metaball are invisible or rendered low res and not stiching to the surface **Exact steps for others to reproduce the error** Based on a (as simple as possible) attached .blend file with minimum amount of steps [DROP.blend](https://archive.blender.org/developer/F143382/DROP.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @EliSpizzichino

Added subscriber: @EliSpizzichino

Added subscriber: @zeauro

Added subscriber: @zeauro

It is not a bug.
A metaball is scaled down relatively to particle size (0.050 by default).
So, they are too small to be represented by polygonisation resolution of metaball that is higher ( at 0.4 by default).

You just have to decrease metaball viewport resolution to 0.025 or increase particle size to 0.3 to see metaballs in viewport.

It is not a bug. A metaball is scaled down relatively to particle size (0.050 by default). So, they are too small to be represented by polygonisation resolution of metaball that is higher ( at 0.4 by default). You just have to decrease metaball viewport resolution to 0.025 or increase particle size to 0.3 to see metaballs in viewport.

Hi,
ok I see it's related to the resolution of the mball, but how you don't call it a bug when from 2.71 to 2.72 those settings are interpreted completely differently and you get a different/unexpected result?

mball_2.71.jpg mball_2.72.jpg

This can cause problems for example if I'm already at the maximum mball resolution (0.05/0.025) to adapt to the new interpretation of those number I'm forced to scale the particle instance up and hence the entire scene!

Hi, ok I see it's related to the resolution of the mball, but how you don't call it a bug when from 2.71 to 2.72 those settings are interpreted completely differently and you get a different/unexpected result? ![mball_2.71.jpg](https://archive.blender.org/developer/F143481/mball_2.71.jpg) ![mball_2.72.jpg](https://archive.blender.org/developer/F143483/mball_2.72.jpg) This can cause problems for example if I'm already at the maximum mball resolution (0.05/0.025) to adapt to the new interpretation of those number I'm forced to scale the particle instance up and hence the entire scene!
Member

Added subscribers: @LukasTonne, @JulianEisel

Added subscribers: @LukasTonne, @JulianEisel
Member

I'm not sure myself what should happen here and what not ;) @LukasTonne, maybe you can tell us a bit more?

I'm not sure myself what should happen here and what not ;) @LukasTonne, maybe you can tell us a bit more?
Bastien Montagne was assigned by Sergey Sharybin 2015-02-24 10:09:46 +01:00

Added subscribers: @mont29, @Sergey

Added subscribers: @mont29, @Sergey

It was bug in the matrix calculation for metaballs emitted from duplis which was fixed in blender 2.72. That bug lead to unwanted transform in certain circumstances. Fix for it caused the regression in this particular case.

I can't fully understand why @mont29 did what he did, so would ask him to revisit e0d8e62 and see if there's some unwanted side effects are happening there.

It was bug in the matrix calculation for metaballs emitted from duplis which was fixed in blender 2.72. That bug lead to unwanted transform in certain circumstances. Fix for it caused the regression in this particular case. I can't fully understand why @mont29 did what he did, so would ask him to revisit e0d8e62 and see if there's some unwanted side effects are happening there.

Hmm… e0d8e62 does not cause that bug (if this is a bug), it reveals it.

Thing is, previously, the org meta object used as dupli source would have its matrix permanently replaced by its one-before-last dupli instance's matrix (as soon as there were two or more dupli instances). Now, that org object's matrix gets correctly reset, after we have cycled through all its dupliinstances. Guess it's that object's matrix that gets used to define metaballs 'definition', current results are expected and correct ones.

More specifically:

  • BKE_mball_polygonize() calls first mball_count(), which, in old code, would set ob.obmat to the penultimate dupli instance's matrix.
  • BKE_mball_polygonize() then calls init_meta(), which, in old code, would use that wrong ob.obmat to init metaball data.

In new code, BKE_scene_base_iter_next() properly restores ob.obmat to its real org value.

Not sure what we want to do here, @Sergey? To me, current behavior is correct…

Hmm… e0d8e62 does not cause that bug (if this is a bug), it reveals it. Thing is, previously, the org meta object used as dupli source would have its matrix permanently replaced by its one-before-last dupli instance's matrix (as soon as there were two or more dupli instances). Now, that org object's matrix gets correctly reset, after we have cycled through all its dupliinstances. Guess it's that object's matrix that gets used to define metaballs 'definition', current results are expected and correct ones. More specifically: * `BKE_mball_polygonize()` calls first `mball_count()`, which, in old code, would set `ob.obmat` to the penultimate dupli instance's matrix. * `BKE_mball_polygonize()` then calls `init_meta()`, which, in old code, would use that wrong `ob.obmat` to init metaball data. In new code, `BKE_scene_base_iter_next()` properly restores `ob.obmat` to its real org value. Not sure what we want to do here, @Sergey? To me, current behavior is correct…

@mont29, we for sure don't want the dupli matrix affecting motherball or so and from your explanation it seems indeed the behavior is rather correct. I just didn't fully follow the state machine you wrote, that's a bit tricky to guess..

If all the matricies are restored correct now then let's call it bug was in old blender.

@mont29, we for sure don't want the dupli matrix affecting motherball or so and from your explanation it seems indeed the behavior is rather correct. I just didn't fully follow the state machine you wrote, that's a bit tricky to guess.. If all the matricies are restored correct now then let's call it bug was in old blender.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Yep, code here is rather convoluted…

@EliSpizzichino Thanks for the report, but current behavior is correct one, and pre-2.72 one was indeed buggy (in that specific case we could call it a 'feature bug' I guess). Also, please note that hard limit of metaball resolution is smaller than 0.025 (think it’s 0.01), you can enter it by typing the value with the keyboard, should it be really needed.

Yep, code here is rather convoluted… @EliSpizzichino Thanks for the report, but current behavior is correct one, and pre-2.72 one was indeed buggy (in that specific case we could call it a 'feature bug' I guess). Also, please note that hard limit of metaball resolution is smaller than 0.025 (think it’s 0.01), you can enter it by typing the value with the keyboard, should it be really needed.
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#43666
No description provided.