jit.gl.sketch framecircle has edges

Dec 7, 2012 at 2:35pm

jit.gl.sketch framecircle has edges

hello list ,

having troubles while drawing a framecircle with jit.gl.sketch.
my framecircle has unexpected edges.

i am a bit lost.
does anybody found a workaround for drawing framecircles with jit.gl.sketch ?

patch attached.

thanks in advance,
lee

– Pasted Max Patch, click to expand. –
#65551
Dec 7, 2012 at 2:43pm

I ‘m seeing the same. Not sure what’s the cause. I was looking for jit.gl.sketch’s equivalent of other gl object’s @dim x y attribute but didn’t find it.

#236126
Dec 7, 2012 at 6:59pm

If I understand your issue, here is some information. gl.sketch is using line segments to draw framecircle. By making the segment that is used to build circle smaller you can get smoother results. also please try @fsaa 4 in the jit.window. It will remove some edginess

#236127
Dec 9, 2012 at 11:43am

jit.gl.path could help you

#236128
Dec 10, 2012 at 1:27pm

hello list,

first i want to thank all of you for looking into this problem !

@fsaa 4 did not help in this case.
can not use jit.gl.path, because i have to draw hundreds of framecircles.

but i found the shapeslice message.
seems to be the “dim” for framecircle.

the reference says:
Sets the current level of decimation (resolution) for shape drawing commands (circle, framecircle, ellipse, frameellipse, sphere, cylinder, torus, cube, and plane).

but the edges are still there. only the parts between the edges gets smoother.
patch attached.

i think this is is a bug
perhaps someone from cycling74 can give a hint.

it would be nice, if i could get an answer soon.
i have to finish my project in 2 weeks ….

do not want to switch to openframeworks, because i like patching wit max :-)
it should be possible to draw a framecircle in opengl with max ;-)

all the best,
lee

– Pasted Max Patch, click to expand. –
#236129
Dec 10, 2012 at 2:17pm

> but i found the shapeslice message.
> seems to be the “dim” for framecircle.

That’s indeed what I was looking for!

#236130
Dec 10, 2012 at 10:11pm

hi
@lee
have you tried “antialias 1″ message to “jit.gl.sketch” ?

#236131
Dec 11, 2012 at 2:41pm

thanks matmat,

but “antialias 1″ has not an influence on these edges.
no one from cyling74, who can help ?

best,
lee

#236132
Dec 11, 2012 at 3:14pm

Maybe you should send an email to C74 support.

#236133
Dec 14, 2012 at 12:40am

Hi, I have patched this js
let me now if it can help you
bye

Attachments:
  1. arc.zip
#236134
Dec 14, 2012 at 5:17pm

hi micron,

thank you very much for posting this.
i will give it a try.
with this solution i will get a cmdlist in jit.gl.sketch of 10000.
but it should work ;-)

its a shame, that we can not do this “out of the box” with jit.gl.sketch.
if its not working i will go the openframeforks route.
i did some tests. it is incredibly fast, looks fantastic, but it is hard to code ….

I got the following answer from the cycling support:
“It's the nature of rendering a frame circle.
You could make two solid circles and make one an alpha, that will yield a neater circle.
Alternatively a circle bought into jit.gl.model will also give a good result.”

i woud say, that nature of rendering a frame circle has bugs !
perhaps these edges is a feature :-)

i personaly prefere circles without edges …
sample of a natural cycling74 frame circle rendering attached.
framecycle_bug.png

all the best,
lee

[attachment=210543,4763]

Attachments:
  1. framecyclebug.png
#236135
Dec 14, 2012 at 7:40pm

it has nothing to do with jitter or max. it’s opengl and gpu dependent.
you have been given several solutions (use @antialias 1, use jit.gl.path, use two circles overlayed with an alpha).
the framecircle is drawn with lines to create an outline of a circle (ie frame).
if you want thick lines you should not be using framecircle.

#236136
Dec 15, 2012 at 10:06pm

I changed a bit the arc.js and I'm playing with it
I want share it with you all
bye
Rajan

[attachment=210600,4771]

Attachments:
  1. arc.jpg
#236137
Dec 17, 2012 at 1:35pm

hi
great patch Rajan, thanks !

For framecircle i simply use a cylinder …

– Pasted Max Patch, click to expand. –
#236138
Dec 17, 2012 at 3:04pm

Oh! This is exactly what I was looking for when I decided to write it in javascript.
Thank you for share it.

#236139
Dec 17, 2012 at 4:03pm

whow matmat, thats a great trick !
thanks for sharing :-)

#236140

You must be logged in to reply to this topic.