home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / graphics / 8093 < prev    next >
Encoding:
Text File  |  1992-07-23  |  2.0 KB  |  53 lines

  1. Xref: sparky comp.graphics:8093 comp.windows.x.pex:412
  2. Path: sparky!uunet!olivea!bu.edu!csa!kiki
  3. From: kiki@csa.bu.edu (Keith Baccki)
  4. Newsgroups: comp.graphics,comp.windows.x.pex
  5. Subject: problem with "pppolylineset3data" with DEC PHIGS
  6. Message-ID: <91779@bu.edu>
  7. Date: 23 Jul 92 21:50:11 GMT
  8. Sender: news@bu.edu
  9. Followup-To: comp.graphics
  10. Organization: Computer Science Department, Boston University, Boston, MA, USA
  11. Lines: 39
  12. Originator: kiki@csa
  13.  
  14.  
  15.     I'm using DEC PHIGS (C binding). Has anyone out there using
  16. this had trouble with the POLYLINE SET 3 WITH DATA function? For some
  17. reason PHIGS doesn't like drawing the polylines after I update the
  18. vertices. Here's a quick overview.
  19.  
  20. - initialize polyline vertices
  21. - open struct with POLYLINE SET call containing vertices and vertex colors.
  22. - post the struct (at this point everything is fine - the polylines are drawn  
  23.   correctly, so I'm confident that I'm setting up the argument list correctly). 
  24.  
  25. - enter the loop where vertices are updated...
  26.  
  27.     - update vertices
  28.     - open struct
  29.     - replace POLYLINE SET 3 WITH DATA call with one containing
  30.       updated vertices
  31.     - close struct
  32.     - update ws, at which point the polylines are not drawn
  33.  
  34.  
  35. NOTE: This only happens with PPVERT_COLOUR flag set. When NONE is set, the
  36.         the polylines are drawn with each update, but my color info for
  37.     each vertex is ignored - not good. 
  38.  
  39. "Well," you might say, "it seems that you're giving it bogus color info since
  40. it's isolated to that case." But again, everything comes up fine when the
  41. struct is first posted. Actually, I'm using a PEX/Motif workstation, and
  42. when I get X mouse events (to rotate the scene for instance), the program
  43. does post the polylines correctly since it's not looping through the vertex
  44. update loop at that time (I'm just changing the global transformation element).
  45. But as soon as it get's to the update loop, the polylines just disappear as 
  46. the vertex array is updated... Any suggestions, known bugs?? 
  47.  
  48.             Thanks alot,
  49.  
  50.                 Keith Baccki
  51.  
  52.                 kiki@csa.bu.edu
  53.