We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I'm not sure whether this is a problem with anti-aliasing or is it a bug with Javascript mode? I tried smooth() but it has no effect and only crashes the application. I am running the app in Google Chrome. Please see the pictures. Thanks for any help.
Processing JS: http://gyazo.com/1fd9e6cc60a05c2b5fa59808029f3bef
Processing: http://gyazo.com/3cb517ce20fb47a95b57202af4a55ae5
Answers
Moved to a more appropriate category.
BTW, pictures are rather useless, more interesting would be real information, like what browser you use (WebGL is still in infancy), or to give a minimal code reproducing the issue.
What do you mean? I already provided the browser.
"I already provided the browser."
Yes, after editing your first message... Still no code in view. Can you reproduce this with a simple sketch? So we can try and reproduce the problem.
Yeah of course. If you drag the box to reveal its sides, you will see a white line appear.
is this simply a case of needing noStroke()? - the edges of the box and drawn using the stroke() colour, the faces coloured using the fill() colour.
nope 8(
Indeed, I can see that, in Firefox and in Chrome.
http://jsfiddle.net/Vjqcx/
Perhaps somebody more familiar with Processing.js can give an explanation.
comment out the second directionalLight() and it goes away.
am not sure that helps 8)
i think it's drawing the obscured faces in bright white (second directionalLight, which is lighting from behind the box) then drawing the visible faces. the lines are where the visible faces don't quite cover the faces that face away (due to rounding errors?)
yeah, change the second light to (255, 0, 0, 0, -4, 30) and the outline changes to red. so it's that second light.
Yup it looks much better now. Thank you so much!