Spring visualisation (Re: [PATCH weston 4/4 v1] Implement animated zoom transitions.)

Scott Moreau oreaus at gmail.com
Mon May 21 01:37:44 PDT 2012


>
> Hi,
>
> when I was briefly fighting with springs last year, I used the attached
> files to visualise the spring behaviour. It runs the spring with
> hardcoded values, dumps data into a text file, and renders it with
> gnuplot. Usage:
>
> $ sh spring.c
>
> But before using, one should make sure the spring code copied there
> is up-to-date with weston.
>
> By tweaking plot.gp to draw a reference curve and current curve, and
> copying data.txt to another name, you can compare how changing
> parameters affects the behaviour.
>

Interesting, thanks pq. I've been using compiz wobbly as a visualization to
see how such a spring model behaves.


>
> Btw. could you do with a single spring instead of x and y springs? I
> assume you want to interpolate a straight path? Separate x,y springs
> will probably make some curves, don't know if that's intentional.
>

Probably would make things better, though I'm sure how this would work
exactly.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20120521/c37b7a09/attachment.htm>


More information about the wayland-devel mailing list