Page 1 of 1

[Limitation] Rotating clipped frames behaves strangely...

Posted: 15 Dec 2017, 08:32
by reaby
Hi,

I'm having troubles with rotated frames.
Is the clipping mask rotated with the contents or what is happening here ?
also check the frame inside frame rotating, i tried that with 2 elements and it wend totally crazy, though here only one element for test.

See attached image and manialink code below.

Thanks,
Reaby
untitled.png
untitled.png (24.6 KiB) Viewed 6617 times
Manialink Code to reproduce:

Code: Select all

<frame size="10 30" halign="center" valign="right" rot="25">
	<label pos="-8 -12" z-index="0" size="20 5" text="myLabel" textcolor="000"/>
	<quad pos="-4 0" z-index="0" size="8 29" bgcolor="FFFA"/>
</frame>

<frame rot="25" pos="0 20">
	<frame size="10 30" pos="0 0" halign="center" valign="right" rot="180">
		<label pos="-8 -12" z-index="0" size="20 5" text="myLabel" textcolor="000"/>
		<quad pos="-4 0" z-index="0" size="8 29" bgcolor="FFFA"/>
	</frame>
</frame>

<label pos="51 7" z-index="0" size="45 4" text="expected behaviour" textcolor="000"/>
<frame size="10 30" pos="70 0" halign="center" valign="right">
	<label pos="-8 -12" z-index="0" size="20 5" text="myLabel" textcolor="000"/>
	<quad pos="-4 0" z-index="0" size="8 29" bgcolor="FFFA"/>
</frame>

Re: [Bug] Rotating clipped frames behaves strangely...

Posted: 15 Dec 2017, 11:44
by noyranea
Hi reaby !

Because our clipping rectangles can't be rotated, the cliprect of a rotated frame will be it's bounding box.

It's a limitation of the Manialink's clipping implementation rather than a bug, but I'm afraid that limitation won't be lifted before some time.

Some information on how you intended to use this feature would be welcome though, as it could help us finding good alternates to your issue if need be (feel free to pm me if it's some super classified confidential data ;)).

Have a nice day,

-- noyranea

Re: [Bug] Rotating clipped frames behaves strangely...

Posted: 15 Dec 2017, 12:05
by reaby
Thanks for clarification!

I would liked to rotate custom speedmeter RPM-disc to start not bottom but slightly in angle to left, easiest way i though was to make frame as wrapper. But is ok this way too :)