home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.graphics:8093 comp.windows.x.pex:412
- Path: sparky!uunet!olivea!bu.edu!csa!kiki
- From: kiki@csa.bu.edu (Keith Baccki)
- Newsgroups: comp.graphics,comp.windows.x.pex
- Subject: problem with "pppolylineset3data" with DEC PHIGS
- Message-ID: <91779@bu.edu>
- Date: 23 Jul 92 21:50:11 GMT
- Sender: news@bu.edu
- Followup-To: comp.graphics
- Organization: Computer Science Department, Boston University, Boston, MA, USA
- Lines: 39
- Originator: kiki@csa
-
-
- I'm using DEC PHIGS (C binding). Has anyone out there using
- this had trouble with the POLYLINE SET 3 WITH DATA function? For some
- reason PHIGS doesn't like drawing the polylines after I update the
- vertices. Here's a quick overview.
-
- - initialize polyline vertices
- - open struct with POLYLINE SET call containing vertices and vertex colors.
- - post the struct (at this point everything is fine - the polylines are drawn
- correctly, so I'm confident that I'm setting up the argument list correctly).
-
- - enter the loop where vertices are updated...
-
- - update vertices
- - open struct
- - replace POLYLINE SET 3 WITH DATA call with one containing
- updated vertices
- - close struct
- - update ws, at which point the polylines are not drawn
-
-
- NOTE: This only happens with PPVERT_COLOUR flag set. When NONE is set, the
- the polylines are drawn with each update, but my color info for
- each vertex is ignored - not good.
-
- "Well," you might say, "it seems that you're giving it bogus color info since
- it's isolated to that case." But again, everything comes up fine when the
- struct is first posted. Actually, I'm using a PEX/Motif workstation, and
- when I get X mouse events (to rotate the scene for instance), the program
- does post the polylines correctly since it's not looping through the vertex
- update loop at that time (I'm just changing the global transformation element).
- But as soon as it get's to the update loop, the polylines just disappear as
- the vertex array is updated... Any suggestions, known bugs??
-
- Thanks alot,
-
- Keith Baccki
-
- kiki@csa.bu.edu
-