r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[SVG Renderer] SVG rendering in Draw AGG

Henrik
14-Oct-2009
[274x3]
http://rebol.hmkdesign.dk/files/r3/gui/094.png
It works for the round .r icon, because it's easy to control the 
size of each filled circle, but not for the octagonal icon at the 
bottom.
also the triangle is troublesome
Cyphre
14-Oct-2009
[277]
can you provide the DRAW data for the octagonal/triangle icon? I'd 
like to try something....
Henrik
14-Oct-2009
[278x2]
That was an SVG converted to DRAW, but I'll see what I can find.
need to get some food, back in about 30 minutes
Cyphre
14-Oct-2009
[280]
ok,no hurry...
Maxim
14-Oct-2009
[281]
its usually better to generate larger shapes and scale them down, 
this way you have sub-pixel precision when drawing.  all you need 
to do is scale the widths and transform the coordinate space when 
you draw...
Cyphre
14-Oct-2009
[282]
Maxim, we could have subpixel precission without the scaling trick. 
We just need to push Carl to make PAIR! to support decimal values 
;)
Maxim
14-Oct-2009
[283x8]
yep... just noting how to do it currently.
I would also like tuples with a bigger scale.  something like 16 
bit color values...
or even 64 bits, for float or HDRI, shadow maps, etc...  image manipulation.
(that's bits per channel)
for me the draw stroke persistence, is mainly for allowing interaction 
between the application and the graphics... text on curves... spline 
paths for animation, snap to edge, etc.
with two splines and enough information gathering, we can easily 
render bending geometry and stuff like that... right now... its highly 
complex, and we can use the internal AGG binary math to calculate 
all the coordinates to stuff for us... based on the current transforms, 
and stuff.
and we can 
 = "since we can't"
for me its not speed as much as massively usefull (and free) functionality.
Henrik
14-Oct-2009
[291]
Cyphre, posting privately.
Pekr
14-Oct-2009
[292]
So, do we write View/GUI enhancement proposal? :-)
Henrik
14-Oct-2009
[293x2]
A View proposal would be good, but we need to compile more information. 
We already have the GUI proposal.
Like the Parse Project page, we now have a View Project page:

http://rebol.net/wiki/View_Project

Please fill in your proposals.
Pekr
14-Oct-2009
[295x2]
cool ....
Is it multicategory? I mean - all draw related stuff goes into Draw 
section? Or each request should start with blue description name? 
If you want to divide it into categories, we might need more of them 
- e.g. where to put stuff like Top Window Transparency, Multimedia 
Timers (not sure that one belongs there, but I want to have it somewhere)
Henrik
14-Oct-2009
[297]
Perhaps we could split it into a View Project and a DRAW Project.
Pekr
14-Oct-2009
[298x3]
Dunno - there can be many various requests, but basically it would 
be correct, although we do have Effect pipeline too, but I don't 
know, if it is AGG based, or not ....
AGG is not only about draw - it is our rendering engine too ...
I mean - compositing engine ...
Henrik
14-Oct-2009
[301]
I think I'll leave it for this page for now. We can split it in multiple 
pages later. Our discussions seem to criss-cross between DRAW and 
View anyway.
Steeve
14-Oct-2009
[302]
Henrik, have you the original svg files of the signs ?  I would like 
to see what i get with my parser.
If they are not public domain, don't give them ;-)
Pekr
14-Oct-2009
[303]
hehe, added first request :-)
Henrik
14-Oct-2009
[304]
Steeve, sorry, it's a small hack. I grabbed the svg coords from inkscape 
manually and simply pasted them in a text file, made them pretty 
for rebol and converted them to DRAW in a simple way. I have no XML 
parser or anything like that.
Steeve
14-Oct-2009
[305x2]
bug you kept the original svg files, did you ?
* but you
Henrik
14-Oct-2009
[307]
I'm not sure I did.
Pekr
14-Oct-2009
[308]
just google "SVG icons", plenty of links :-)
Cyphre
14-Oct-2009
[309]
Steeve this was one of my favorite file for testing of the R2 SVG-lite 
viewer:
http://david.bellot.free.fr/svg-cards/

Good luck! ;)
Steeve
14-Oct-2009
[310]
Well, i have enough sources, don't worry.
I just wanted to compare with Henrik's
Maxim
15-Oct-2009
[311]
cyphre... those are incredible test SVG files!
shadwolf
20-Dec-2009
[312:last]
and what  about the text display / font management issues ... and 
this can be linked to viva-rabol or SVG rendering... Cyphre do you 
plan or have taken  some notes about that area ?