Page MenuHome

Weird deformations on linked meshes modified by a curve
Closed, ArchivedPublic

Description

System Information
Windows 7 64, GTX 980

Blender Version
Broken: f337fea + ee2b583

Short description of error
I have a problem with linked groups that contain any mesh modified by a curve modifier.
If the linked group isnt placed in the scene origin, the topology goes crazy if I change the viewport shading (Solid to Textured Mode).


Exact steps for others to reproduce the error

Steps:

  • Create any Curve object (circle recommended)
  • Create any Mesh object
    • Give this Mesh a Curve Modifier
      • Use Curve as target
  • (Make sure to edit curve and mesh to fit eachother and have some noticable deformation)
  • Assign both objects to a Group
  • Save file
  • Open a new file
  • Switch to Solid Shading Mode
  • Link the Group to this file
  • Move the Group object away from the scene origin
  • Bug: Switch to Textured Shading Mode = weird deformation

Note: The weird deformations are more extreme if you move the group object further away before switching to Textured Shading.
Note: No weird deformation if the group object stays in the scene origin. I guess there is a problem with curve-mesh-origin relation in linked data.

Not sure if this is related in any manner (he had problems with the shading as well):
T44154

Event Timeline

Karja Krähwald (karja) raised the priority of this task from to 90.
Karja Krähwald (karja) updated the task description. (Show Details)
Karja Krähwald (karja) edited a custom field.
Sergey Sharybin (sergey) lowered the priority of this task from 90 to 50.Dec 30 2015, 10:53 AM

Seems toggling viewport shading caused group re-evaluation due to missing data needed for the textured view. And perhaps this will evlauate modifier with a new relative locations or so.

@Campbell Barton (campbellbarton), @Bastien Montagne (mont29), some extra brain here wouldn't hurt :)

Yeah, there is something wrong with re-evaluation here… if, in Relations Extra panel of instancing empty, we enable 'Extra Data Update', and change frame, deformation goes back to normal expected result. Same thing with both depsgraph (old and new ones).

Issue comes from Duplis (what a surprise…), duplilist_apply() generates the DM of the mesh only once - and in original object's space, not in dupli space. Placing copy_m4_m4(dob->ob->obmat, dob->mat); before DM generation fixes the issue in this case, but this will fail in case mesh is used several times by obspace-dependent modifiers, so think the only correct solution is to add a modifier flag saying 'I depend on obspaces', and when set, not caching a same DM for all duplis…

Note this is one of those limits in Blender's dupli system - its been a problem for a long time (just merged in a duplicate, but there would be others too).

Any time modifiers are calculated by the dupli system its not reliable.

Sergey Sharybin (sergey) changed the task status from Unknown Status to Unknown Status.Feb 2 2016, 12:59 PM
Sergey Sharybin (sergey) claimed this task.

Since duplicaiton system is one of the subjects for bigger re-consideration it makes sense not to spend time trying to solve existing system but combine forces focus on a new system now.

Thanks for the report, it'll definitely be a good test scenario for the new dupli system, but consider it all a TODO for now since it's just all limitation of existing system.