SVG 1.1 Full Test Suite

General discussions about Inkscape.
User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

SVG 1.1 Full Test Suite

Postby microUgly » Tue Aug 14, 2007 12:14 pm

I only knew what was possible with SVG through Inkscape so there were a lot of things I didn't know SVG could do. So I found this page very interesting, SVG 1.1 Full test suite frame

The "filters" tests were most interesting and I believe most of those effects will be achieveable in 0.46. For example, we are all now familiar with Blur, but did you know you can create blur in one direction to create motion-like blur?

User avatar
capnhud
Posts: 435
Joined: Mon Jun 04, 2007 8:30 pm
Location: U.S.A

Re: SVG 1.1 Full Test Suite

Postby capnhud » Fri Oct 05, 2007 10:19 pm

How is the motion blur achieved?

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: SVG 1.1 Full Test Suite

Postby sas » Sat Oct 06, 2007 6:23 am

capnhud wrote:How is the motion blur achieved?


By using two numbers in the stdDeviation attribute of the feGaussianBlur element, instead of one. E.g., stdDeviation="10 1" instead of stdDeviation="10". This is gives different amounts of blurring in the x and y directions.

In Inkscape 0.45, the only way to do this seems to be to use the XML editor. And even then, I can't get Inkscape to display the change correctly except by saving and closing the image and then reopening it.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: SVG 1.1 Full Test Suite

Postby microUgly » Sat Oct 06, 2007 6:38 am

Welcome, sas.

I tend to think that directional blur would be common enough that perhaps instead of a single blur slider we could have an X and Y blur slider, with the option to lock them together.

rosros
Posts: 68
Joined: Fri Aug 24, 2007 12:54 am

Re: SVG 1.1 Full Test Suite

Postby rosros » Sat Oct 06, 2007 6:08 pm

BTW, how do you apply the filters to the objects?
In my system, WXP with Inkscape 0.46dev+devel, built Oct 3 2007, the "render" effect do NOT change
the objects (nor the XML Code), I know that the filters are there because when I open Batik1.7 test files
I can see them (... well ... some are rendered much better by Batik ... the rendering engine is there in Java and
opensource...) on the canvas. Probably the answer is that applying the effect is the NEXT development
step, isn't it?

User avatar
capnhud
Posts: 435
Joined: Mon Jun 04, 2007 8:30 pm
Location: U.S.A

Re: SVG 1.1 Full Test Suite

Postby capnhud » Sat Oct 06, 2007 9:11 pm

I posted a similar question to the inscape user mailing list, because for the life of me I see the effects (menu options) and can apply the effect but on the canvas itself I do not see anything.

By using two numbers in the stdDeviation attribute of the feGaussianBlur element, instead of one. E.g., stdDeviation="10 1" instead of stdDeviation="10". This is gives different amounts of blurring in the x and y directions.
:?:

Now you lost me.

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: SVG 1.1 Full Test Suite

Postby sas » Mon Oct 08, 2007 7:23 am

capnhud wrote:
By using two numbers in the stdDeviation attribute of the feGaussianBlur element, instead of one. E.g., stdDeviation="10 1" instead of stdDeviation="10". This is gives different amounts of blurring in the x and y directions.
:?:

Now you lost me.

If you take an SVG file that has some Gaussian blurring, and open it in a text editor, you'll see the "feGaussianBlur" and "stdDeviation" that I'm talking about. And you can try modifying the value of the stdDeviation, and see what effect it has.

rosros
Posts: 68
Joined: Fri Aug 24, 2007 12:54 am

Re: SVG 1.1 Full Test Suite

Postby rosros » Mon Oct 08, 2007 5:09 pm

I applied the blur with the "Fill and Stroke" dialog to a rectangle, then in the XML editor I found
under the <svg.defs... the node <svg:filter... and under it <svg:feGaussianBlur id="feGaussianBlur3216">,
on the right panel of the XML Editor the values of the StdDeviation can be edited.
I can see the effect on the canvas only after saving, closing and opening the drawing again.
All the other effects in Inkscape 0.46dev+devel, built Oct 3 2007, under Effects->Raster do not
modify the xml code.

User avatar
capnhud
Posts: 435
Joined: Mon Jun 04, 2007 8:30 pm
Location: U.S.A

Re: SVG 1.1 Full Test Suite

Postby capnhud » Mon Dec 24, 2007 12:04 am

I tried playing with motion blur here but for the life of me the more that you change the second number in stdDeviation the less control you seem to have over the blur at least in terms of making it have a direction. Has anyone came up with a way to accurately portray the motion?


Return to “General Discussions”