Maniphest T24765

Wrong UVmap with Bevel Modifier (Kino Bug Report Sprint)
Closed, ArchivedTO DO

Assigned To
None
Authored By
kino (kino)
Nov 17 2010, 12:28 PM
Tags
  • Modifiers
  • BF Blender
Subscribers
Campbell Barton (campbellbarton)
kino (kino)
mindrones
Roland Hess (harkyman)
Ton Roosendaal (ton)

Description

Relates to: T25731

Hi
this is a bug already in the 2.4x series

when you assign a bevel modifier to a UV mapped cube
the UVmap coordinates are modified

see the attached image and the blend file

the only solution is to apply the bevel modifier
and remap the UV

expected behaviour is to have the UV correctly centered

let me know if you need more info

thks
kino

Event Timeline

kino (kino) edited a custom field.Nov 17 2010, 12:28 PM
kino (kino) attached 1 file(s): F12693: bevel.blend.
kino (kino) attached 1 file(s): F12694: shoot-01.png.
kino (kino) attached 1 file(s): F12695: system-info.txt.
mindrones added a comment.Nov 17 2010, 12:34 PM

Adding "(Kino Bug Report Sprint)" to the Summary.
Also, for later memory, see http://www.kino3d.com/forum/viewtopic.php?p=92465#p92465

Ton Roosendaal (ton) added a comment.Nov 17 2010, 6:06 PM

Roland: I know you offered help with animation system. However, the bevel modifier code (2007 GSOC) has been orphaned... you might find this an interesting area to investigate time in?

Roland Hess (harkyman) added a comment.Nov 17 2010, 6:19 PM

I'll check it out. I've worked with modifiers and UVs in source before, so it shouldn't be too foreign.

Roland Hess (harkyman) added a comment.Nov 20 2010, 5:21 AM

It's actually worse than demonstrated in the images. Not only does it fall "out of center," but, the whole concept of UVs was ignored (I think) as I do some tests and examine the code. Bevel created entirely new faces. How do they receive UVs? A simple experiment with adding seams to a cube, unwrapping, then attaching and applying a bevel modifier shows some serious chaos in the results.

Another issue is that this uses what looks like a snippet of BMesh to do it's thing, so it's a little unfamiliar.

This seems like a bug/feature request actually, because simply making the newly created bevel faces contain the full UV space doesn't feel all that useful :) Thinking through the problem, I'm going to try to have the new UVs created by projecting along the normals of their constituent vertices, and interpolating UVs from the unmodified mesh where the projection strikes.

Campbell Barton (campbellbarton) added a comment.Jan 18 2011, 1:50 AM

Roland, UVs should probably be handled with custom data interpolation functions.

and agree this is a missing feature rather then a bug, decimator also doesnt support UVs and vertex colors.

Ton Roosendaal (ton) added a comment.Jan 20 2011, 12:15 PM

Here's another bug similar to this report:
http://projects.blender.org/tracker/index.php?func=detail&aid=25731&group_id=9&atid=498

Attempt to bake on modified meshes is a problem in general, I'll check on a proper warning for this.

Ton Roosendaal (ton) added a comment.Feb 18 2011, 8:05 PM

I'll mark this as a todo in wiki, it's also a bit 'orphaned code' actually.

http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Tools#Bevel_Modifier

Ton Roosendaal (ton) changed the task status from Unknown Status to Unknown Status.Feb 18 2011, 8:05 PM