[fluxus] anti-aliasing (does it work?)
Alex
x37v.alex at gmail.com
Thu Feb 9 08:24:37 PST 2006
Thanks for your input, I'm using fluxus in a course of mine, it is
nice to have a simple layer on top of opengl for this,, I could
program myself in opengl but who wants to? :)
If you have suggestions for what to do to fix up the line code (the
c++ stuff) tell me and i could look into it myself.
btw, I think the turtle builder example on the webpage for drawing a
"circle" could be improved by indicating a wire-colour as well as
rotating so that the polygon can be viewed without rotateing the scene
like this:
(define (build-loop n t)
(turtle-turn (vector 0 (/ 360 t) 0))
(turtle-move 1)
(turtle-vert)
(if (< n 1) 0
(build-loop (- n 1) t))
)
(define (build n)
(translate (vector 0 2 0))
(turtle-reset)
(turtle-turn (vector 90 0 0))
(turtle-prim 4)
(build-loop n n)
(turtle-build)
)
(backfacecull 0)
(clear)
(hint-anti-alias)
(colour (vector 0 1 0))
(wire-colour (vector 1 1 1))
(hint-unlit)
(hint-wire)
(line-width 4)
(build 10)
On 2/9/06, Dave Griffiths <dave at pawfal.org> wrote:
> > Does anti aliasing work for lines? (or anything for that matter).
>
> lines don't honor the antialiasing hint, polys and points do, I'm not sure
> about nurbs.
>
> lines have been somewhat neglected lately, this would be a good reason to
> update them and make them much more useful...
>
> > It doesn't seem to be doing anything here, am i doing something wrong?
> > Is there a better way to animate a line?
>
> at the moment, thats about it, but I'll update them to use pdata for their
> points so you can animate them directly - and also add some hints so you
> can draw them as fast hardware lines rather than camera facing ribbon
> geometry if you want. I think they should also support multiple line
> segments per primitive too...
>
> more work :)
>
> fwiw, you can do some nice things with polygons, and building via the
> turtle builder or from the (build-polygons) command and setting the points
> via (pdata-set). this is how I usually do these sort of things - maybe
> with (hint-wire) it will achieve what you are looking for more.
>
> cheers,
>
> dave
>
>
>
>
More information about the Fluxus
mailing list