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

World: r3wp

[AGG] to discus new Rebol/View with AGG

Cyphre
28-Feb-2006
[754]
not yet, but I have it on my 'todo' ;) ...will let you know in a 
few days.
Graham
18-May-2006
[755]
AGG and flash rendering... Cyphre, what's your view on this news?
Cyphre
18-May-2006
[756]
I'll be reviewing the new official version of AGG (2.4) very soon. 
Maybe we could put the Flash rasterizer into DRAW dialect (it depends 
how much usable it is in real world, also how much code increase 
ould cost etc.
Graham
18-May-2006
[757]
Ok.
Cyphre
18-May-2006
[758]
But this type of rendering is usable only for relatively easy reproducing 
Flash shapes. I don't think it could be usful for some other things.
Graham
18-May-2006
[759]
Cartoons? :)
Cyphre
18-May-2006
[760]
ie. you have to have parsed the .fla or .swf file to get the shapes. 
Beacause the compound shapes are generated by Flash IDE (this is 
not an easy process) to achieve validity of the rendering.
Pekr
18-May-2006
[761]
hmm, I thought we could use Flash IDE tools, "export" curves and 
let it be "played" by rebol/agg :-)
Cyphre
18-May-2006
[762]
yes, that is the only purpose..but by 'exporting' you have to parse 
the fla/swf to get the compound shapes. All other formats works in 
SVG-like rendering way (ie shapes are z-ordered and rendered one 
over another)
Volker
18-May-2006
[763]
Would make it easier for flash-knowing artist.
Cyphre
18-May-2006
[764x2]
Usually Flash-atrist don't event know how Flash interpret and render 
his gaphics :)
But I agree this feature could be handy for Olde's Rebol/Flash dialect 
tool.
Volker
18-May-2006
[766]
But they know the drawing-tools?
Cyphre
18-May-2006
[767x2]
The usage would be FlashIDE->Rebol/flash convertor->DRAW
So someone would have to make the Rebol/flash convertor for them 
to be able render it in Rebol. Maybe a good enhancement for Oldes? 
;)
Volker
18-May-2006
[769]
WHich means save flash and click rebol-viewer (with integrated extractor?
Pekr
18-May-2006
[770]
I thought that Flash tools are able to export to text file thier 
curves and commands :-)
Volker
18-May-2006
[771]
Then we need an action-script-<rebol converter. Which is javascript 
at the same time. And thanks to google we can then run java in rebol. 
hehe :)
Cyphre
18-May-2006
[772x2]
yes, afaik you can export to many formats for m the IDE. But the 
trick is in the way how the cureves are described ;)
You would have plenty of work with converting SVG exported file from 
Flash IDE back to the Flash compound shapes ;)
Volker
18-May-2006
[774]
Which means you need either a clever parser, or a call to new AGG.
Cyphre
18-May-2006
[775x3]
have a look here to get the idea how Flash renders:
http://blogs.msdn.com/mswanson/archive/2006/02/27/539749.aspx
it is efficient way (as the result is rendered in one pass) but it 
needs lot of more work to define the shapes properly ;)
AFAIK no other publicly known graphics system is using this method.
Pekr
18-May-2006
[778x2]
well, Cyphre, then we need you to come-up with commercial Rebol native 
Authoring tool - you know - we want to beat Scala, right? :-)
Cyphre - can you talk about new View internals? Gabriele sheds some 
light on some topics here from time to time, but very little was 
said about View. The only thing we know from blog is, that even system 
was replaced ....
Cyphre
18-May-2006
[780x3]
I'm not agains that the Flash rendering support in DRAW but this 
needs to be well designed. I'll probably discuss it woth Oldes as 
he is very deep in Flash internals. I believe we will find some elegant 
way ;)
Pekr: I cannot tel you much news at the moment. Watch the blogs ;)
BTW I'm currently working on some DRAW fixes from RAMBO. So I'd like 
to ask all DRAW users: If you have encountered a serious bug which 
is not in RAMBO, please put it in so they can be fixed in this round.
Pekr
18-May-2006
[783]
I think that guys are interested in SVG compatibility issues, to 
have SVG compatible renderer :-)
Graham
18-May-2006
[784x2]
How about a way to change the coordinate system?
I'd like to see a way to set 0,0 to bottom left ...
Volker
18-May-2006
[786]
How about exposing the math? To map mouse back to faces, as in Antons 
demo?
Graham
18-May-2006
[787]
What do you think?
Cyphre
18-May-2006
[788]
Wait guys ;) I was asking for bug reports not for new features :) 
But feel free to add those to RAMBO as  wishes to not forget on them.
Volker
18-May-2006
[789]
How far can transformation go? can it turn things upside down?
Graham
18-May-2006
[790]
I think using top left 0,0 is a bug :)
Volker
18-May-2006
[791x3]
But common on screens.
also similar to line-counting. top line is first line, not #66
but for diagramms it is terrible *nod+
Cyphre
18-May-2006
[794]
Graham: lot of people could think writing from letf to right is a 
bug too :)
Graham
18-May-2006
[795x2]
but that's for text.  Not for drawing.
mathematics uses Cartesian coordinates
Cyphre
18-May-2006
[797]
BTW you can very easily change the coordinate system even now.
Graham
18-May-2006
[798x2]
How?
Is there a way of applying translate to invert the y axis?
Cyphre
18-May-2006
[800x4]
here is simple example:
view layout [
	origin 0
	bx: box 400x400 black effect [
		draw [
			translate 0x400
			scale 1 -1
			pen red
			line 50x50 350x50
			pen blue
			line 50x50 50x350
			pen yellow
			line 50x50 100x200 200x150 300x250 350x225
		]
	]
]
but this won't work with text though because it would be reversed 
in Y axis too.
Another solution is to apply own translation function on the dialect 
block or generate the dialect block with translated coords from scratch. 
(this shouldn't be a rocket science and would work with text too)