[Limitation] Rotating clipped frames behaves strangely...

Talk about ManiaLink development in this forum

Moderator: NADEO

Post Reply
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

[Limitation] Rotating clipped frames behaves strangely...

Post 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 5014 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>
Last edited by reaby on 15 Dec 2017, 12:06, edited 1 time in total.
User avatar
noyranea
Nadeo
Nadeo
Posts: 187
Joined: 29 Apr 2014, 14:50
Location: Paris, France

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

Post 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
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

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

Post 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 :)
Post Reply

Return to “ManiaLink”

Who is online

Users browsing this forum: No registered users and 1 guest