World: r3wp
[View] discuss view related issues
older newer | first last |
Henrik 16-Apr-2006 [4712x3] | I think he did it with DRAW directly early on, but I don't know how it works now. |
his program doesn't have elements to move around | |
how does your program work? is it a dialect that can produce DRAW and PS? | |
Graham 16-Apr-2006 [4715] | Yes. |
Henrik 16-Apr-2006 [4716] | I might need something that can do some previewing next week... |
Graham 16-Apr-2006 [4717x2] | Once I get it working, I'll show you. |
I'm just spending some time setting up my page so that it looks okay :) | |
Henrik 16-Apr-2006 [4719] | I'm going to do the same here with Johns dialect. Does yours produce PS from his dialect? |
Graham 16-Apr-2006 [4720x2] | No, it uses my dialect. |
I'm less concerned about scaling and rotations as I really only need text and lines/boxes. | |
Henrik 16-Apr-2006 [4722] | I see :-/ |
Graham 16-Apr-2006 [4723] | And you ? |
Henrik 16-Apr-2006 [4724] | well, I need some scaling and 90 degree rotation. I'm creating the number marks you use in a marathon race to put on your chest and back. |
Graham 16-Apr-2006 [4725x2] | Oh ... |
you're going to bar code the marathon runners ?? | |
Henrik 16-Apr-2006 [4727x2] | already have the number mark done, but there is a catch: the number can only be seen after printing it out, due to the construction of the program. it would be nice to be able to preview it before printing. |
yes | |
Graham 16-Apr-2006 [4729] | You've already seen my psd2draw.r script .. I just feed the same block thru my ps dialect to get the postsrcript and write that to a file. |
Henrik 16-Apr-2006 [4730x2] | then I would need to redo the barcode generator... |
I think it's best for me right now to create a makeshift preview rather than an actual preview | |
Graham 16-Apr-2006 [4732] | are John's and my ps dialects that disimilar ? |
Henrik 16-Apr-2006 [4733] | I havent' checked yours out |
Graham 16-Apr-2006 [4734] | are you on Mac still? |
Henrik 16-Apr-2006 [4735] | mac and windows |
Graham 16-Apr-2006 [4736] | which one are you using for this? |
Henrik 16-Apr-2006 [4737] | windows |
Graham 16-Apr-2006 [4738x2] | Ok, you need to install some fonts. |
install these http://www.rops.org/download/std35ttf.zip | |
Henrik 16-Apr-2006 [4740x3] | I don't think I'll be using it, as it creates too many twists for me. |
too much code needs to be reorganized | |
and it has to be working perfectly no later than tuesday... | |
Graham 16-Apr-2006 [4743] | switching groups |
Anton 17-Apr-2006 [4744] | Ah... yes... I had actually seen the textinfo docs... but just couldn't remember that at all ! |
Terry 17-Apr-2006 [4745x2] | Why View should admit defeat.. http://demo.arcww.ca/sites/lblaunch/ |
or this .. http://www.bigfatinstitute.org/index_flash.html | |
Anton 17-Apr-2006 [4747] | I don't think so.. |
Terry 17-Apr-2006 [4748] | That's a fair enough rebuttal.. let's see the links to back it up. |
Pekr 17-Apr-2006 [4749x6] | Terry - very nice - what is that - flash? |
my natek on the situation - View is about to be rewritten. And it is here to stay for good imo. Well, we may not be in Flash league as for speedy and smooth presentations, but I still can't somehow find so integrated toolkit as View is. If I need small encapped app, there is not option, but View ... | |
I asked my friend about Ruby, Python - as my idea was, that corporations should throw out tools like Delphi, VB .... .NET and JAVA are goliath ... but he told me, that Python has to bind to other gui toolkits and that it is not so integrated .... he then mentioned AJAX, killing all needs for anything like View ... but - just go and find some statistics ... look at W3C and look for the state of support for all that MLs in recent browsers - you will find situation quite messy ... | |
where is SVG support? What browser it starts from? When most of old browsers will be replaced/reinstalled? I think that there is still one or even more - let's say two years to see those technologies settle a bit ... | |
Give me one thing - decent keyboard support, add tree-view, better grid to Rebgui, redesign widgets to visually support in-focus state, and you are done! Then go and look at your "app" source - very nice dialect - you will NOT find anything like that anywhere. Very nice and readable code. The problem is, VID stopped 80% on its way to success - the rest, those missing 20% ruined it. | |
now there is new attempt - DOM3 specs, to provide e.g. even hooks for your web apps .... when it will be actually developed and supported by most browsers? Dunno .... View still has some chance, especially in the browser - plug-in ..... | |
Anton 17-Apr-2006 [4755x2] | Does anyone here know about matrix math and can advise me on how to derive the same transform as is made by the draw dialect's IMAGE command with four arbitrary corner points ? |
I'm looking in the AGG source. | |
Henrik 17-Apr-2006 [4757] | One thing I love using View for is to make very quick custom GUIs for customers who need to carry out special tasks, but have no idea how to do it via the command line. It takes minutes to build something up (say a simple backup/restore system) and show them which buttons to press. It can almost be done right in front of them. I'd hate having to resort to downloading a 50-100 MB Flash development tool or build and compile Visual Basic apps, which, ooops, don't really work on their Linux box, and I just need a GUI with two buttons and a text field. Also how much system access does Flash give you? Can you create/move/delete files? It's so much nicer to say "Sure, let me do this and it can be done in an hour" rather than "I'll have a look at it at home and we'll see what I can deliver some time next week." For those things, it doesn't matter that View doesn't use Aero, Quartz Extreme or super fast hardware acceleration to display a few simple buttons. It just does the job you need to do. |
Geomol 17-Apr-2006 [4758x4] | Anton, I know about matrix math and have a book here with the standard 4x4 matrix operations for transformation like rotation, scale, etc. in 3D, if you need those. But are you sure, AGG use matrix math to do the 4-corner IMAGE trick? I would guess, it's some (2D) texture algorithm. |
Anton, one approach is to make a scanline routine. Sort the 4 corners according to y-coord. Start with the point with the lowest y-coord and look the colour up in the image (the point in that corner). For the next line (down on the monitor), you find the fraction, you've moved along the line to the point at the right side from where you started, and the same for the line to the point on the left side. Then you can find each colour for the pixels between the 2 points. You can keep doing this, until you reach one of the 2 next corners in the original corner points. Then you go along a new line to the last corner point. The same for the other end of the scanline. A problem is then to make the result look smooth. Bi-linear or tri-linear filtering can help here. I hope, I make some sense. It's a lot easier to draw than explain. | |
Maybe a little drawing can help me: 00010000 00222000 03333300 44444440 05555555 00666660 00077700 00008000 0 = background 1-8 = the 8 scanlines, this little figure is made of. The 8 scanlines are drawn starting with 1 and ending with 8. The colours in each pixel in each scanline is picked from the original image. | |
Each scanline has to be mapped onto the original image to find the colours. If such a mapping is made with straight lines, I predict the result to look ok with nice rectangle-like figures. But if one corner is far away from the rest, or moved in between the others, the result might be awful. A better way could be to map the scanlines as Bezier-curves on the original image. Could be interesting to know, how AGG does it, now that AGG's result is so good. | |
older newer | first last |