fill.rotation does not work after modifying path

As the title states. Is this intentional, or is there a limitation? After modifying an image vertices, changing fill.rotation has no effect on the fill.

Hi @basiliogerman,

Can you post a few lines of code to show exactly what you’re doing?

Thanks,

Brent

Sure thing. Here’s the code:

local image = display.newImage("images/battle/gui/btn-normal01.png") image.x, image.y = display.contentCenterX, display.contentCenterY image.path.x1 = 1 Runtime:addEventListener("enterFrame", function() image.fill.rotation = image.fill.rotation + 1 end)

If i remove 

image.path.x1 = 1

Or set it to 0 (the default), the image fill rotates fine. I want to make a rotating portal with perspective.

Hi @basiliogerman,

I wasn’t aware of this limitation but it seems to be true. Could you achieve a similar effect by using a mask on a non-path-adjusted image?

Brent

Thanks Brent, but the effect was a bit more complex, but i have finally achieved it. It involved more math than i wanted but it looks great. Could have been easier rotating the fill only, any plans on changing that limitation?

This is the final result.

Hi @basiliogerman,

I’ll ask the engineers about this and see if it’s a justified limitation.

In any case, you achieved a fabulous effect. I don’t know what math you coded up to accomplish it, but it looks amazing. :slight_smile:

Brent

Thanks, it involves rotation matrices. Any news on this yet? I tested changing the scales and they don’t work as well, i’d guess x and y don’t either. Will confirm later.

Hi @basiliogerman,

Can you post a few lines of code to show exactly what you’re doing?

Thanks,

Brent

Sure thing. Here’s the code:

local image = display.newImage("images/battle/gui/btn-normal01.png") image.x, image.y = display.contentCenterX, display.contentCenterY image.path.x1 = 1 Runtime:addEventListener("enterFrame", function() image.fill.rotation = image.fill.rotation + 1 end)

If i remove 

image.path.x1 = 1

Or set it to 0 (the default), the image fill rotates fine. I want to make a rotating portal with perspective.

Hi @basiliogerman,

I wasn’t aware of this limitation but it seems to be true. Could you achieve a similar effect by using a mask on a non-path-adjusted image?

Brent

Thanks Brent, but the effect was a bit more complex, but i have finally achieved it. It involved more math than i wanted but it looks great. Could have been easier rotating the fill only, any plans on changing that limitation?

This is the final result.

Hi @basiliogerman,

I’ll ask the engineers about this and see if it’s a justified limitation.

In any case, you achieved a fabulous effect. I don’t know what math you coded up to accomplish it, but it looks amazing. :slight_smile:

Brent

Thanks, it involves rotation matrices. Any news on this yet? I tested changing the scales and they don’t work as well, i’d guess x and y don’t either. Will confirm later.