Open
Description
Describe the bug
When utilizing a rectangular EGP screen, any shape represented appears distorted (e.g., a circle becomes oval). I attempted to apply :egpResolution() to manually scale the screen, but when rotating the circle, distortion still occurs.
To Reproduce
Steps to reproduce the behavior:
- Place an rectangular EGP screen (Note: im currently use an addon who provide extra models for the EGP, so at 99% the scale is not correct with another one);
- Paste and save the following code:
@name EGP Shape fail
@inputs Main:wirelink
if(first()|duped()|dupefinished()){
Main:egpClear()
Main:egpResolution(vec2(0,0),vec2(512,388))
Main:egpWedge(1,vec2(158,100),vec2(124,72))
Main:egpSize(1,20)
Main:egpAngle(1,0) #CHANGE ME
Main:egpColor(1,vec4(250,255,250,255))
}
- Link the EGP to the E2 then refresh the E2;
- Now you can see the circle is quite correct;
- After notice that, edit the E2 code and change the value of the "Main:egpAngle()" to 45;
- Now you can see the problem.
Expected behavior
I expect the shape to maintain its scale during rotation using the :egpAngle() function.