World: r3wp
[AGG] to discus new Rebol/View with AGG
older newer | first last |
Gregg 12-Jul-2005 [384] | I believe that's a known issue Anton. |
DideC 12-Jul-2005 [385] | Yes, known issue. |
Anton 12-Jul-2005 [386x3] | ok, so I assume Cyphre is on to it already. |
Shadwolf, you will find it much easier to work from this style: | |
do http://www.lexicon.net/antonr/rebol/gui/demo-direction-pointer.r | |
Cyphre 13-Jul-2005 [389] | Anton, yes, this is known issue. This will be fixed in the next version. |
DideC 13-Jul-2005 [390] | Anton: >> do http://www.lexicon.net/antonr/rebol/gui/demo-direction-pointer.r ** Script Error: direction-pointer-style has no value ** Where: do-facets ** Near: direction-pointer-style |
Cyphre 13-Jul-2005 [391x2] | Shadwolf: I analyzed your SVG example with nested MATRIX command and found little bug in matrix calculation. Thanks for pointing this out! I know the solution so it will be fixed in the next Rebol View build. |
Note: The bug is related only to MATRIX command. TRANSFORM/TRANSLATE/ROTATE/SCALE works ok. | |
Anton 13-Jul-2005 [393] | Dide, I think it failed to load direction-pointer.r file. Just try again until it works ! :) |
DideC 13-Jul-2005 [394] | Hum, your script search for the file in our Rebsite index.r file, so I must see it in the Desktop, isn't it ? If yes, I see a %direction-box.r, but no %direction-pointer.r icon. |
Anton 13-Jul-2005 [395x2] | No. It is not indexed. Actually, quite a lot of my scripts are not indexed :-( |
(but I am working on that). | |
DideC 13-Jul-2005 [397] | Sorry but tried 20 times and still the error |
Anton 13-Jul-2005 [398x2] | foreach url [ http://www.lexicon.net/antonr/rebol/gui/demo-direction-pointer.r http://www.lexicon.net/antonr/rebol/gui/direction-pointer.r ][print [url mold info? url]] |
http://www.lexicon.net/antonr/rebol/gui/demo-direction-pointer.r make object! [ size: 1333 date: 13-Jul-2005/2:01:33 type: 'file ] http://www.lexicon.net/antonr/rebol/gui/direction-pointer.rmake object! [ size: 2033 date: 13-Jul-2005/2:01:25 type: 'file ] | |
DideC 13-Jul-2005 [400] | It works at home :) I wonder why it didn't at work! |
shadwolf 14-Jul-2005 [401] | Cyphre Great !!!! I'm happy to have found a difficult bug regarding MATRIX in AGG/DRAW :) I hope this will be solved as soon as possible. I all cases tahnk you to have take the time to scout my problems :) |
Anton 14-Jul-2005 [402] | mmm weird :) |
shadwolf 14-Jul-2005 [403x5] | instead of using matrix i can translate it into scale rotate and translate value so ... |
???? | |
SVG matrix (a b c d e f) -> AGG scale [a d] rotate [b c] translate [e f] can I do this ??? | |
matrix is 3X3 | |
like that : [a c e] [b d f] [0 0 1] where couple AD = scaling BC= rotating EF = translating | |
DideC 15-Jul-2005 [408] | Can't 'transform be used for doing all that ? |
Anton 18-Jul-2005 [409] | Dide, perhaps at work you have not updated your reboltech index.r file for a while, and it still points to my old rebsite. Try this at work: load-thru/update http://www.reboltech.com/index.r |
DideC 19-Jul-2005 [410] | It was probably that ;-) |
shadwolf 20-Jul-2005 [411x2] | Don't know if transform REBOL/AGG command can do this I not enoght skilled in AGG to answer ... I will try to use transform instead of matrix |
it's yet a kind of miracle for me totally noob in AGG and in SVG to have arrived to the actual point of the svg renderer. Lot of code and ideas have helped me a lot Ashley is trully a idea fountain. Those idea only claim to be worked again and again to arrive to a very very good and usefull tool | |
DideC 21-Jul-2005 [413] | Transform does rotation, scale and translation in one command : TRANSFORM angle [decimal!] center [pair!] scale-x [decimal!] scale-y [decimal!] translation [pair!] |
Cyphre 21-Jul-2005 [414x3] | shadwolf: you cannot use partial matrix blocks on SCALE/ROTATE/TRANSLATE commands. |
The problem of converting back already defined transformtion matrix is that you don't actually know what opearations(rotate,scale,translate etc.) has been applied on the matrix values. ie transformation matrix is ireversible. | |
So I think there is no method how to 'extract' translation, rotation and scale from matrix content(correct me if I'm wrong) | |
JaimeVargas 21-Jul-2005 [417] | I agree with you, there needs to be some sort of record on how the operations occured. I think there is big number of combinations (rotation, translation and scale). That could produce the same matrix, so decomposition is not easy if the only think know is the Matrix itself. |
Robert 21-Jul-2005 [418] | It all depends on the order of the single tranformations. So you need to keep track of the applied tranformation matrices and the order of tech transformation, than it's possible to derive the inverse tranformation. |
JaimeVargas 21-Jul-2005 [419] | Agreed. |
Cyphre 21-Jul-2005 [420] | yes, that's why the new DRAW dialect has PUSH [ ] command. It 'stores' the current transformation matrix into internal matrix stack. You can apply other transformations in the PUSH block or even reset the current matrix but after 'leaving' the PUSH command block you have active back the 'stored' matrix. Very handy for nested transformations. |
DideC 21-Jul-2005 [421] | So there is no more POP command ? |
shadwolf 22-Jul-2005 [422x4] | I thought matrix was only a way to merge scale rotate and translate values... |
Cyphre have you an idea when the bug with matrix will be solved ? | |
same 4 gradients :) ? | |
Didec work like a layer difinition and manager Using push the matrix or other trnasformation information are apply only on the push block content. outside the push block the matrix informations are not affected | |
Robert 22-Jul-2005 [426] | If I use TEXT I can specify the offset. Is there a way to specify the size as well and that the rest is clipped? |
Gabriele 22-Jul-2005 [427] | not afaik, but i think you could use the clip command. |
Robert 22-Jul-2005 [428] | Hm... but I don't know how big a text will render. And I can't referr to the text to clip it. |
Anton 22-Jul-2005 [429x5] | I have a feeling that draw TEXT is still using old draw code, and not merged so well with AGG yet. I noticed that draw text offset doesn't scale: |
view layout [box navy effect [draw [scale 0.1 0.1 text "hello" 40x40]]] | |
I also noticed line-width doesn't scale: | |
view layout [b: box 200x200 effect [draw [scale 1 1 pen 192.0.0 line-width 32 line 10x10 190x190]] scroller 200x20 [b/effect/draw/scale: b/effect/draw/3: face/data show b]] | |
No luck using TRANSFORM instead of SCALE either: | |
older newer | first last |