Texture deformation inconsistent with layer deformation

Discuss Moho bugs (or suspected bugs) with other users. To report bugs to Smith Micro, please visit support.smithmicro.com

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
schpok
Posts: 1
Joined: Sun Jan 18, 2009 8:40 am

Texture deformation inconsistent with layer deformation

Post by schpok »

Image textures don't seem to follow layer deformations. See the http://www.schpok.net/bug.zip or these steps to reproduce:

1) Create a rectangle
2) Assign the shape's fill with an image texture.
3) Render to confirm shape is rendering with the texture properly
4) Deform the layer by translating, rotating, skew, etc.
5) Render again. Observe texture has deformed twice that of the layer.

Version 5.6 on Windows XP SP 3
User avatar
GCharb
Posts: 2270
Joined: Mon Oct 10, 2005 2:31 am
Location: Montreal, Quebec, Canada
Contact:

Post by GCharb »

Tried something similar with the same texture and then another texture, the textures are sliding al over the place. Seems you got a bug, just report it!

GC
User avatar
synthsin75
Posts: 10254
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Post by synthsin75 »

This is a well known issue. The original feature request for warpable image textures was related strictly to bones (and only rotation at that), so that was how the feature was written.

Interacting with vector 'warping', it works based on the images bounding box. This means that you need to control how the image fills the shape manually if you want it to work with vector manipulation.

We recently discovered that you can create a separate circle and include it when you create your image texture filled shape. You can then hide the edges and scale this separate shape to zero, so it doesn't show in the render.

This shape can be moved around to change the underlying 'bounding box' of the image you're using for texture. So basically, you manually 'stretch' the fill to fit.

This thread is where we solved the problem:
viewtopic.php?t=12442&highlight=image+texture

And here is what we did with that solution:
viewtopic.php?t=12448&postdays=0&postor ... re&start=0

:wink:
Post Reply