Skip to content

[E2 - EGP] Shape fail on rectangular EGP screen #3068

Open
@PM6176

Description

@PM6176

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:

  1. 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);
  2. 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))

}
  1. Link the EGP to the E2 then refresh the E2;
  2. Now you can see the circle is quite correct;
  3. After notice that, edit the E2 code and change the value of the "Main:egpAngle()" to 45;
  4. Now you can see the problem.

Expected behavior
I expect the shape to maintain its scale during rotation using the :egpAngle() function.

Screenshots
img 1
img 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions