home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.x.motif:5875 comp.windows.x.pex:504 comp.graphics:9221
- Path: sparky!uunet!dtix!mimsy!sdd.comsat.com!mike
- From: mike@sdd.comsat.com (Mike Stennett)
- Newsgroups: comp.windows.x.motif,comp.windows.x.pex,comp.graphics
- Subject: OPINIONS ON 2D GRAPHICS WANTED
- Message-ID: <mike.714929157@sdd.comsat.com>
- Date: 27 Aug 92 15:25:57 GMT
- Sender: usenet@sdd.comsat.com (USENET News System)
- Organization: SDD, COMSAT Labs, Clarksburg, MD
- Lines: 50
-
-
-
- I am new to the graphics area and would like opinions / recommendations
- from anyone experienced in working with graphics and X.
-
- Currently our department is looking into the best way to provide application
- programmers with 2D interactive graphics. We work in an X Windows/Motif
- environment and would like some package to at least run on the majority
- of UNIX architectures. We would also like to have some ability to implement
- user-controlled motion dynamics and update dynamics. At least be able to
- drag simple objects around a complex background drawing without the cursor
- getting ahead of the object.
-
- My initial thought was to create a simple package myself expanding on X
- primitives. I felt most of the work had be done and 2D graphic scaling and
- rotating algorithms are fairly simple. However, I have looked into the X
- primatives more closely and have found a few problems in creating my own 2D
- package. The following are examples of the concerns I have.
-
- - First, I see no reasonable way to rotate text. This seems rather absurd.
- The only way I see to do it is to pull an XImage of the text and rotate it
- pixel by pixel which I would think yields terrible performance. Is there
- a better way?
-
- - Next, to allow ellipses to rotate it would seem XFillPolygon would have to
- be used. XFillArc only allows ellipses on the X or Y axis. This
- requires the calculations of the points along the path of the ellipse.
- These points could be stored but would still need to be recalculated every
- time the ellipse is scaled. Again I would think the end result would be
- poor performance relative to XFillArc (especially since I bet XFillArc does
- its calculations on the server side). This type of performance hit I would
- think make update dynamics impossible.
-
- I would like to know if your experience with X primitives has found that they
- are worth working around such problems. Do you recommend another graphics
- package? We currently have GKS but several application programmers complain
- it is slow and does not allow them functionality like XOR rubber banding. GKS
- also has poor modeling capability. Not being able to edit segments proves
- to be a problem.
-
- I have also heard of PEX-SI but I am worried that such a 3D package will have
- a large overhead and we do not need the 3D features at this time. I have
- also been told that editing PHIGS structures can be a real pain (but maybe
- those people are just belly acres). Can I do rubber banding and everthing
- in PEX-SI that I can do in X? Is PEX-SI a good choice for 2D graphics?
-
- I await anyone's wisdom on this subject and thank you in advance for your help.
-
- Mike Stennett (mike@sdd.comsat.com)
- COMSAT Laboratories, SDD
-