World: r3wp
[AGG] to discus new Rebol/View with AGG
older newer | first last |
Henrik 5-Nov-2005 [614] | SHOW does some kind of "dumb" full screen refresh. it's also visible when using Canvas. even if you only draw one pixel, drawing is slow in large screen areas. |
Ashley 5-Nov-2005 [615x2] | The following code demonstrates this. Comment / uncomment the draw effect line to see the difference a simple draw command makes. count: 100 do-test: func [label info /local img-size start end] [ img-size: to-pair label/text img: to image! layout [ origin 0 box img-size blue reform ["Testing" img-size ". . ."] font [size: 24] ] view/new/options center-face layout [ origin 0 i: image img img/size ;effect [draw [circle 100x100 100]] ] [no-title no-border] ; test loop start: now/time/precise loop count [show i] end: now/time/precise ; display result info/text: form to-integer count / (to-decimal end - start) show info unview ] view layout [ title "Resolutions" across la: label 100 "800x600" ia: info 100 center return lb: label 100 "1024x768" ib: info 100 center return lc: label 100 "1280x1024" ic: info 100 center return btn "Run" [do-test la ia do-test lb ib do-test lc ic] ] |
In answer to Cyphre's question, my opinion is that changes that prevent (or make difficult) SVG rendering are not desirable. So if the proposed change(s) don't hinder SVG rendering them I'm all for them. | |
shadwolf 8-Nov-2005 [617] | Cyphre question : i think the same .. gradient is good the way it is for pure draw coders (i you have to make an SVG to DRAW translator (my case) you only need gradients that take in charge other kind of values nothing more...) |
Cyphre 10-Nov-2005 [618x2] | Ok, thanks to all of you who responded to my qestion. |
Regarding the SHOW performance: I can tell you that this improvement is on RT priority list. | |
Rebolek 10-Nov-2005 [620] | And is it on bottom of that list, or in middle or on top of it? ;) |
Cyphre 10-Nov-2005 [621] | I'd say it is around the middle line *at the moment*. |
Rebolek 10-Nov-2005 [622] | OK, I'm just curious :) |
Volker 10-Nov-2005 [623] | Can we fold the paper? |
Pekr 10-Nov-2005 [624] | :-) |
Cyphre 10-Nov-2005 [625x2] | Velker, I think you can. Send feedback to Carl about this issue. Maybe he will increase the priority after enough requests :-) |
ups, Velker=Volker | |
DideC 10-Nov-2005 [627] | Cyphre: if your question is "should we create a FILL-PEN-PERCENT command to not overload FILL-PEN with percent values?" I say YES. (but the name is here as an example) But overwhise I don't really understand what you mean. |
shadwolf 11-Nov-2005 [628] | DIDEC you get the point ... the ask is un precise. My case is particular a gradient iss that take in charge percent and vertorial orientation to feet SVG datas would be a plus. I think gradient the way they are yet implement in Draw/AGG are better than the SVG way. SVG is huum less natural less close to human way of thinking and in that philosophy it feets perfectly with the REBOL . |
ICarii 11-Nov-2005 [629x3] | It'd be nice to have VIEWPORT command for creating virtual surfaces inside AGG/Draw - especially to use it to constrain text for applications such as scrolling and spreadsheets.. |
viewport origin [pair!] size [pair!] contents [block!] | |
viewport 100x100 300x150 [font myfont text 150x50 "this is a large line of text..."] ;here the text would use the viewport as its origin and screen size | |
Graham 18-Nov-2005 [632x3] | here here |
There's already clipping commands. | |
Why not have a viewport which can be of any shape ? | |
ICarii 19-Nov-2005 [635] | Heh - i never saw the clip command before :) Shame on me :) |
shadwolf 21-Nov-2005 [636x3] | in my svg render i use push to make a drawing layer order and that work pretty good |
SVG support the element in a stackable way so it's good to be able to reproduce that feature with draw/AGG push | |
for example you draw a black cirle and on top of it you put 2 spots yellow and a yellow line SVG keep the track of that and rebol drew/AGG is abe re produce it perfectly... | |
[unknown: 9] 21-Nov-2005 [639] | IS ther a good description of AGG somewhere? |
Ammon 21-Nov-2005 [640] | From the author: http://antigrain.com/about/index.html |
Pekr 23-Nov-2005 [641x3] | would it be possible to use agg to create kind of Corel Draw? Simply to detect objects you draw? If I understand it correctly, currently when once you draw, it is laid down to face bitmap ... |
The question is here because not of clone attempt of Core Draw, but just curious, if screen-painter could be created. Currently we have boxes as effect for 'edge, but ... | |
of course ability to change mouse pointers to reflect you are at right position would be handy to have too .... | |
Oldes 23-Nov-2005 [644] | do you mean: if I draw line if I can detect if I'm over the line? |
Pekr 23-Nov-2005 [645] | yes, detect, press mouse button, have it somehow visually distinguished (like bezier curves, those little black boxes over the vector, to drag it, you know :-) |
Oldes 23-Nov-2005 [646x2] | That's related to Rebol itself, not just AGG. And it's very bad that it's not possible. |
I was thinking about making simple vector editor, but it's not possible without this feature. In Flash you can detect feels over shapes, in Rebol we are limited to faces:( | |
Pekr 23-Nov-2005 [648] | what do you mean by "shape"? |
Oldes 23-Nov-2005 [649] | for example line |
Pekr 23-Nov-2005 [650] | you mean non rectangular windows directly in rebol view kernel? |
Oldes 23-Nov-2005 [651] | some place where is drawn something |
Pekr 23-Nov-2005 [652] | but that would not be sufficient for drawing app as well ... dunno what such routines are based upon, but it cant be magic, no? :-) |
Oldes 23-Nov-2005 [653x2] | just have to know what is shape and what is (event) transparent:) |
but it should be done in Rebol internally. not that I will make images from all drawings and check if it's transparent or not under my cursor | |
Pekr 23-Nov-2005 [655] | IIRC Tao Intent has such capabilities, you can decide upon alpha channel even, so your events could be transparent etc ... well, that could be coded too, no? you just press mouse, you detect position of your press, and decide what is under the mouse - that is the most difficult part imo ... |
Oldes 23-Nov-2005 [656] | I think cyphre have some simple examples how to do this but... it should be in Rebol internally:) |
Pekr 23-Nov-2005 [657x2] | Paul Nolan once told me, that the most capable compositing engine he saw was Shake: http://www.apple.com/shake/- look at features. But Carl once told me, that View uses kind of "nodes" too or something like that, simply that View has some advanced compositing too ... |
(well, except the blitting :-) | |
Graham 28-Nov-2005 [659] | Rebolek's AGG demo called "Cyphre" reminds me a bit of Tempest 2000 - anyone planning on a Tempest 2000 clone ?? :) |
shadwolf 5-Dec-2005 [660x4] | Hello folks ^^ |
Here is a little somthing i was working on some month ago when the Ritchtext edit topic pops out -> RTE ... | |
the code is ugly but tiny there is some bugs but i think the idea is good ^^ | |
REBOL [ Author: "Shadwolf" Starting_Date: 21-05-2005 Purpose: {Research work on rebol draw capability to be used to write a Ritch text editor} ] | |
older newer | first last |