Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quad adds a diagonal line in WEBGL. #6383

Closed
StevesMakerspace opened this issue Aug 19, 2023 · 11 comments · Fixed by #6488
Closed

Quad adds a diagonal line in WEBGL. #6383

StevesMakerspace opened this issue Aug 19, 2023 · 11 comments · Fixed by #6488

Comments

@StevesMakerspace
Copy link

p5.js version

1.7.0

What is your operating system?

Windows

Web browser and version

Edge 115.0.1901.203

Actual Behavior

When using WEBGL, quad function with stroke add a diagonal line through the center of the quad.

Expected Behavior

Quad with an outline but no diagonal line.

Steps to reproduce

function setup() {
createCanvas(500, 500, WEBGL);
translate(-width / 2, -height / 2);
background(150);
strokeWeight(3);
quad(30, 320, 185, 220, 205, 375, 50,405);
}

@welcome
Copy link

welcome bot commented Aug 19, 2023

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

@nsundriyal62
Copy link

this bug seems easy to solve
should i solve it directly and genrate PR
or you can assign it to me?

@lindapaiste
Copy link
Contributor

This seems like an issue for the main p5.js repo rather than the web editor repo. I'm not able to transfer it but perhaps someone else can? @raclim @davepagurek @Qianqianye

@davepagurek
Copy link
Contributor

I don't think I have permission on this repo, @Qianqianye would you be able to transfer this to the main repo?

@nsundriyal62 if you're interested in looking into this, feel free to go ahead! I can assign it to you once it's been transferred. The relevant code is in here:

._makeTriangleEdges()

Rather than calling this function to add edges to every triangle, we should instead push pairs of vertex indices to quadGeom.edges to specify only the edges we want to see.

@raclim raclim transferred this issue from processing/p5.js-web-editor Aug 28, 2023
@welcome
Copy link

welcome bot commented Aug 28, 2023

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!

@davepagurek
Copy link
Contributor

Thanks @raclim!

@nsundriyal62
Copy link

thanks for assigning
i am working on it

@davepagurek davepagurek added this to Bugs with Solutions (No PR or test) in p5.js WebGL Projects Sep 19, 2023
@davepagurek davepagurek moved this from Bugs with Solutions (No PR or test) to In Progress in p5.js WebGL Projects Sep 19, 2023
@Qianqianye
Copy link
Contributor

Hi @nsundriyal62, thanks for offering help. Just to follow up on this issue, please let us know if you need any support to fix this bug.

@nsundriyal62
Copy link

@Qianqianye sorry to say but i forgot to work on this issue
actually i marked all assign issue as done and never remind about this one

i am working on it.

thanks for your help.

gonna raise a pr asap

@nsundriyal62
Copy link

@Qianqianye hello there

i tried a lot to understand the codebase and my whole day passes only setting up and and switching between multiple files.
i am new to this open source and solving this seems very difficult.

i think i am not able to solve this bug................. :(

so you can unassign this issue

sorry for taking so much time and this failure
maybe someone else can do it better

thanks for your time and offering help.

see u

@Qianqianye
Copy link
Contributor

Thanks @nsundriyal62 for all of your effort. We are in the process of improving the p5.js WebGL contribution documentation to make contributing to WebGL issues easier in the future. Meanwhile, please feel free to have a look at open issues on p5.js if you'd like to contribute to another issue. Thanks!

@davepagurek davepagurek moved this from In Progress to Bugs with Solutions (No PR or test) in p5.js WebGL Projects Oct 17, 2023
perminder-17 pushed a commit to perminder-17/p5.js that referenced this issue Oct 20, 2023
perminder-17 pushed a commit to perminder-17/p5.js that referenced this issue Oct 20, 2023
davepagurek added a commit that referenced this issue Oct 20, 2023
new PR for issue #6383(Problem for diagonal)
@davepagurek davepagurek moved this from Bugs with Solutions (No PR or test) to DONE! 🎉 in p5.js WebGL Projects Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: DONE! 🎉
p5.js WebGL Projects
  
DONE! 🎉
5 participants