Laplacian Deform incorrect with > 10K faces #39004

Closed
opened 2014-03-06 23:21:12 +01:00 by George Anderson · 16 comments

System Information
OSX 10.8.5

Blender Version
2.70RC1

Exact steps for others to reproduce the error

  1. Add cube
  2. Subdivide all faces 6 times (using subdivide tool, not the modifier) [there should be 24576 faces]
  3. Select several verts, and add them to a vert group
  4. Add a Laplacian Deform modifer, with that vert group
  5. Bind

On my computer, the mesh distorts like crazy. If I subdivide 4 or fewer times, the results are perfectly correct. If I subdivide 5 times, then it "jumps" after binding, though not as severely as with 6 times.

It appears to want to pull the mesh in to the origin, while still respecting the added constraints.

**System Information** OSX 10.8.5 **Blender Version** 2.70RC1 **Exact steps for others to reproduce the error** 1) Add cube 2) Subdivide all faces **6 times** (using subdivide tool, not the modifier) [there should be 24576 faces] 3) Select several verts, and add them to a vert group 4) Add a Laplacian Deform modifer, with that vert group 5) Bind On my computer, the mesh distorts like crazy. If I subdivide **4 or fewer times**, the results are perfectly correct. If I subdivide **5 times**, then it "jumps" after binding, though not as severely as with 6 times. It appears to want to pull the mesh in to the origin, while still respecting the added constraints.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @supergra

Added subscriber: @supergra

Added subscriber: @PatriceBertrand

Added subscriber: @PatriceBertrand

Added subscriber: @mont29

Added subscriber: @mont29
Alexander Pinzon was assigned by Sergey Sharybin 2014-03-21 10:47:02 +01:00

Added subscribers: @AlexanderPinzon, @Sergey

Added subscribers: @AlexanderPinzon, @Sergey

@AlexanderPinzon, ind checking on this one?

@AlexanderPinzon, ind checking on this one?

I'll check.

I'll check.

Added subscriber: @brecht

Added subscriber: @brecht

This is a precision issue in OpenNL / SuperLU. I've seen similar issues with UV unwrapping of high poly meshes.

Doing s/float/double for all files in intern/opennl solves the problem here, and seems to help nicely with UV unwrapping too. Run time is almost the same, doubles are pretty fast on modern CPUs and might help the solver to converge faster too. The main issue is doubling of memory usage, but I guess that's acceptable if the solver is otherwise quite useless for high poly meshes anyway.

This is a precision issue in OpenNL / SuperLU. I've seen similar issues with UV unwrapping of high poly meshes. Doing `s/float/double` for all files in `intern/opennl` solves the problem here, and seems to help nicely with UV unwrapping too. Run time is almost the same, doubles are pretty fast on modern CPUs and might help the solver to converge faster too. The main issue is doubling of memory usage, but I guess that's acceptable if the solver is otherwise quite useless for high poly meshes anyway.

Single precision bites again...That's been a perpetual headache for using (otherwise stellar) Blender my work.

Nice find.

I don't suppose there's a special build option to universally convert Blender to using doubles is there? That level of precision would be worth the memory overhead for me (not for 99% users, I know).

Single precision bites again...That's been a perpetual headache for using (otherwise stellar) Blender my work. Nice find. I don't suppose there's a special build option to universally convert Blender to using doubles is there? That level of precision would be worth the memory overhead for me (not for 99% users, I know).

There exists no build option for it, and I don't think it would be easy to add. Globally replacing all floats by doubles can't be done automatically, there's various places where things would break (file read/write especially).

There exists no build option for it, and I don't think it would be easy to add. Globally replacing all floats by doubles can't be done automatically, there's various places where things would break (file read/write especially).

This issue was referenced by 0b12e61040

This issue was referenced by 0b12e6104007bb74c1f1450c5a4ee75e81cdfbdc

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

Closed by commit 0b12e61040.

Closed by commit 0b12e61040.

Fix committed now, thanks for the report.

Here's an example of how this helps for UV unwrap, before and after.
uv_unwrap_opennl_precision.png

Fix committed now, thanks for the report. Here's an example of how this helps for UV unwrap, before and after. ![uv_unwrap_opennl_precision.png](https://archive.blender.org/developer/F112542/uv_unwrap_opennl_precision.png)

This issue was referenced by ac234067e1

This issue was referenced by ac234067e1025dbcf0e3e25ae6ab780536ce11f7
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
7 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#39004
No description provided.