It is currently April 24th, 2024, 1:18 am

Problems with Transformation Matrix Guide

Discussions about the documentation, main Rainmeter site and forums.
User avatar
balala
Rainmeter Sage
Posts: 16164
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Problems with Transformation Matrix Guide

Post by balala »

These days I worked a lot with the TransformationMatrix option on some image meters and i consulted many times the guide. I think there is a small mistake, which should be fixed.
On the "What the heck is Rainmeter doing?!" section, the formulas of x' and tx are wrong. They should be:
x' = x*a + y*c + 1*tx
tx = x' - x*a - y*c
instead of
x' = x*a + y*b + 1*tx
tx = x' - x*a - y*b
Please check and fix it, if I'm right. Thanks.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problems with Transformation Matrix Guide

Post by jsmorley »

balala wrote:These days I worked a lot with the TransformationMatrix option on some image meters and i consulted many times the guide. I think there is a small mistake, which should be fixed.
On the "What the heck is Rainmeter doing?!" section, the formulas of x' and tx are wrong. They should be:
x' = x*a + y*c + 1*tx
tx = x' - x*a - y*c
instead of
x' = x*a + y*b + 1*tx
tx = x' - x*a - y*b
Please check and fix it, if I'm right. Thanks.
I'm glad to fix it, but I refuse to dig into TransformationMatirx to check it. If you are quite sure it should be changed, I can take your word for it.

No need to explain, I won't get it anyway... Just "yeah, fix it as I said" if you are sure. ;-)
User avatar
balala
Rainmeter Sage
Posts: 16164
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Problems with Transformation Matrix Guide

Post by balala »

Yeah, fix it as I said, I'm quite sure. Thanks.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problems with Transformation Matrix Guide

Post by jsmorley »

balala wrote:Yeah, fix it as I said, I'm quite sure. Thanks.
LOL... Will do. Thanks.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problems with Transformation Matrix Guide

Post by jsmorley »

Ok, done. Be sure it is correct now. You might have to Shift-refresh.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problems with Transformation Matrix Guide

Post by jsmorley »

User avatar
balala
Rainmeter Sage
Posts: 16164
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Problems with Transformation Matrix Guide

Post by balala »

jsmorley wrote:Be sure it is correct now.
It is. Obviously the same fix also should be applied on the link you've posted (https://github.com/rainmeter/rainmeter-docs/commit/abb65ef28173c75989b01ffd290938ddfb447e88)
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problems with Transformation Matrix Guide

Post by jsmorley »

balala wrote:It is. Obviously the same fix also should be applied on the link you've posted (https://github.com/rainmeter/rainmeter-docs/commit/abb65ef28173c75989b01ffd290938ddfb447e88)
The link I posted IS the fix.
User avatar
balala
Rainmeter Sage
Posts: 16164
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Problems with Transformation Matrix Guide

Post by balala »

jsmorley wrote:The link I posted IS the fix.
When I open it I see both lines: the initial (with red background) and the fixed one (with green). Sorry if i misunderstood something.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Problems with Transformation Matrix Guide

Post by jsmorley »

balala wrote:When I open it I see both lines: the initial (with red background) and the fixed one (with green). Sorry if i misunderstood something.
That is the commit of the change to our repository on GitHub where the documentation is stored. What you are seeing is a "diff", showing the old (red) and new (green) changes.