It is currently December 10th, 2018, 6:33 pm

[Fixed with new option] Likely Transformation Matrix Bug

Testing and discussion of the conversion of Rainmeter to D2D.
User avatar
Mor3bane
Posts: 557
Joined: May 7th, 2016, 7:32 am

[Fixed with new option] Likely Transformation Matrix Bug

Mor3bane » August 24th, 2018, 6:22 am

Rainmeter-4.3-r3236-D2D

So this is what my line meter looks like. It uses a Transformation Matrix to "spread out" the lines so that the behaviour is more visible:
Untitled.jpg
It 'was' a single defined line, now it is showing the added width the Transformation Matrix adds. The code is the same before and after the Alpha was installed.

Code: Select all

[MeasureNetIn]
Measure=NetIn
UpdateDivider=5

[MeasureNetOut]
Measure=NetOut
UpdateDivider=5

[MainMesh]
Meter=Image
ImageName=#@#Mesh.png
AntiAlias=1
Y=40
X=40
W=259
H=259

[MeterNetIn]
Meter=String
MeasureName=MeasureNetIn
x=169
Y=102
StringAlign=Center
FontColor=#Goth#
FontSize=18
FontFace=Astronaut
NumOfDecimals=2
AutoScale=1
Text="%1bs"
AntiAlias=1
DynamicVariables=1

[in.txt]
Meter=STRING
x=169
Y=75
FontColor=#Goth#
FontSize=15
StringAlign=Center
FontFace=Astronaut
AntiAlias=1
Text="Download:"
DynamicVariables=1

[MeterNetOut]
Meter=String
MeasureName=MeasureNetOut
x=169
Y=219
FontColor=#Color#
StringAlign=Center
FontSize=18
FontFace=Astronaut
NumOfDecimals=1
AutoScale=1
Text="%1bs"
AntiAlias=1
DynamicVariables=1

[out.txt]
Meter=STRING
x=169
Y=196
FontColor=#Color#
FontSize=15
StringAlign=Center
FontFace=Astronaut
AntiAlias=1
Text="Upload:"
DynamicVariables=1

[MeterGraph2]
Meter=Line
MeasureName=MeasureNetOut
MeasureName2=MeasureNetIn
X=1
Y=74
W=21
H=80
LineCount=2
LineColor=#Color#
LineColor2=#Goth#
SolidColor=0,0,0,1
AntiAlias=1
AutoScale=1
UpdateDivider=5
TransformationMatrix=10; 0; 0; 0.9; 58; 53

[MainCover]
Meter=Image
ImageName=#@#Ring.png
AntiAlias=1
Y=40
X=40
W=258
H=258
DynamicVariables=1
You do not have the required permissions to view the files attached to this post.
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself
User avatar
Brian
Developer
Posts: 1793
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Likely Transformation Matrix Bug

Brian » September 12th, 2018, 3:43 am

This has been fixed as of r3247. Thanks for reporting!

(Sorry it took so long to fix.)

-Brian
User avatar
Mor3bane
Posts: 557
Joined: May 7th, 2016, 7:32 am

Re: [Fixed] Likely Transformation Matrix Bug

Mor3bane » September 23rd, 2018, 9:32 am

Ah, thanks for the update.

juat happened to update recently, and did not even notice it was fixed - but it IS Fixted :rofl:
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself
User avatar
Brian
Developer
Posts: 1793
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: [Fixed with new option] Likely Transformation Matrix Bug

Brian » October 16th, 2018, 5:21 am

Good and bad news with the "fix" for this...

The Bad:
Unfortunately, we had to revert the "fix" we did to make the line(s) draw at the defined LineWidth for Line meters. Another issue came up here: https://forum.rainmeter.net/viewtopic.php?f=123&t=29634#p153567

For some reason (probably something internal to GDI+), your example of TransformationMatrix and others I tried when debugging this issue caused GDI+ to render the line's width at the defined LineWidth, instead of the "transformed" width (applied by TransformationMatrix). Using a more basic example, like the one provided in the link above, TransformationMatrix was clearly being applied correctly. Since, in most cases, TransformationMatrix can modify what a meter does draw, we decided to revert the changes that forces the line to be drawn at the defined LineWidth.

The Good:
As described here, since GDI+ is giving us inconsistent behavior, we have decided to make a new option called "TransformStroke" that will control this behavior.

This means you may have to add this option to the Line meter(s) of older skins if they are affected from this issue. Simply add the following option to the meter: TransformStroke=Fixed

-Brian
User avatar
jsmorley
Developer
Posts: 18444
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [Fixed with new option] Likely Transformation Matrix Bug

jsmorley » October 16th, 2018, 1:25 pm

New beta r3260 is available.