SVG files
SVG files can be converted to RIB but generally this will only give useful results for files constructed in a particular way. Specifically, overlapping elements must be in different groups or layers.SVG file | Rendered using Aqsis |
Group | Objects |
layer1 | sky |
layer2 | sand |
layer3 | ocean, palm trunk |
layer4 | ball, palm fronds |
-n value sets the number of segments to split a curve into
A filled path, composed of lines,arcs and Bezier segments,
is rendered as a GeneralPolygon. The arcs and Bezier segments are approximated
by a number of straight lines, specified by n.
-x value sets the z-offset of a stroke from the filled path
When a filled path has an associated stroke, the stroke needs to be offset by a small amount from the GeneralPolygon representing the filled path so that
rounding errors don't cause rendering problems. The default value should work.
-z value sets the successive displacement of groups
When an image contains overlapping filled paths, these need to be separated
along the z-axis to avoid rendering problems like those shown below: