We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › how to amend coarse edges
Page Index Toggle Pages: 1
how to amend coarse edges (Read 1587 times)
how to amend coarse edges
May 24th, 2005, 8:54pm
 
i've been using 0068 alpha. Today is the first time i tried the new version. I altered an old sketch a little to suit the new version. But, the effect in 0090 beta turns to be awful.
pic of 0068 alpha
http://www.tamen.org/loren/diary/uploadimg/20055252443787980.jpg
pic of 0090 beta
http://www.tamen.org/loren/diary/uploadimg/20055252442424721.jpg
It is very clear taht the edges in 0090 are more coarse. Any one could tell me anything i have missed?
Re: how to amend coarse edges
Reply #1 - May 24th, 2005, 9:14pm
 
Are you using P3D or OPENGL?

If OPENGL, try smooth();

Also, the other version has shading, so try adding lights();

(I don't know if this is of any help, but anyway...)
Re: how to amend coarse edges
Reply #2 - May 25th, 2005, 3:24am
 
yeah, it turns out that solving the issue of lines vs. filled 3D shapes is almost impossible. in alpha, there was a hack that was drawing lines slightly in front of things, but that was a disaster because no matter what you drew afterwards (i.e. if you were in 2D), the lines would still be on top. no good.

so we sort of gave up on fighting with it. we have one idea about how to deal with it, but it'd be really slow.. but looking at more "profesional" libraries than processing, like opengl, which are written by people smarter than i, they haven't solved it either, so it doesn't bode well.
Re: how to amend coarse edges
Reply #3 - May 25th, 2005, 3:25am
 
oh, but you also need to turn on lights(), yes.. that'll give you the shading. and if the shading is different in the old version, it's because the old version was actually wrong, but the new one is correct.
Re: how to amend coarse edges
Reply #4 - May 25th, 2005, 3:11pm
 
Lines and 3D shapes don't blend well anyway, just look at the current hype (reasonably current at least) about toon- or cell-shading. Even heavy-duty rendering software like 3D Studio Max doesn't have these features by default.

F.
Re: how to amend coarse edges
Reply #5 - May 25th, 2005, 7:50pm
 
Thank lunetta, i was originally using P3D, and i tried opengl as u told me. Smooth() which could not be used in p3d, works in opengl and the edges look better now. But the zoom function of OCD went wrong in OPENGL, but anyway, that's not crucial.

Thank fry too. I could understand the dilemma. U 've done ur very very best~~   We all pay high tribute to ur great job. ^^
Page Index Toggle Pages: 1