home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / pex / 707 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.4 KB

  1. Path: sparky!uunet!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!cs.tu-berlin.de!cs.tu-berlin.de!picasso
  2. From: picasso@cs.tu-berlin.de (Frank Ottink)
  3. Newsgroups: comp.windows.x.pex
  4. Subject: X-Server crashes; light_tool; T.Gaskins example;  PVERT_COORD_NORMAL
  5. Date: 28 Jan 1993 10:13:22 GMT
  6. Organization: Technical University of Berlin, Germany
  7. Lines: 32
  8. Distribution: world
  9. Message-ID: <1k8bk2INNb3@news.cs.tu-berlin.de>
  10. NNTP-Posting-Host: montage1.cs.tu-berlin.de
  11. Keywords: pquad_mesh3_data( PFACET_NONE, PVERT_COORD_NORMAL, NO_COLOR,
  12.  
  13. Hi !
  14.  
  15. I have Problems with the light_tool example from the Tom Gaskins Book 
  16. "Phigs Programming Manual" (First Edition). The X-Server crashes when
  17. I am trying to render the cylinder or the sphere. What's wrong.
  18.  
  19. The cube works fine. It uses:
  20.  
  21.     popen_struct( CUBE_QUAD );
  22.         pquad_mesh3_data( PFACET_NONE, PVERT_COORD, NO_COLOR,
  23.             &array_dims, (Pfacet_data_arr3 *)NULL, &vertices );
  24.     pclose_struct();
  25.  
  26. The cylinder and the sphere :
  27.  
  28.     popen_struct( SPHERE );
  29.         vertices.ptnorms = vertex_data;
  30.         array_dims.size_x = NUM_LONG_POINTS;
  31.         array_dims.size_y = NUM_LAT_POINTS;
  32.         pquad_mesh3_data( PFACET_NONE, PVERT_COORD_NORMAL, NO_COLOR,
  33.             &array_dims, (Pfacet_data_arr3 *)NULL, &vertices );
  34.     pclose_struct();
  35.  
  36.  
  37. Or am I using examples that are not "uptodate"? Is there a better way
  38. to get rendered modells?
  39.  
  40. Please help
  41.  
  42.  
  43.  
  44.  
  45.