home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / 18571 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.3 KB

  1. Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!yale.edu!jvnc.net!erenj.com!ramsgi.erenj.com!ram
  2. From: ram@ramsgi.erenj.com (ram rajagopalan)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Inventor Question.
  5. Message-ID: <1993Jan7.204949.27213@erenj.com>
  6. Date: 7 Jan 93 20:49:49 GMT
  7. Sender: news@erenj.com (USENET News System)
  8. Organization: Exxon Research & Engineering Co.
  9. Lines: 35
  10. Nntp-Posting-Host: ramsgi.erenj.com
  11.  
  12. hi,
  13.  
  14.   I would like to position a camera other than the default location, and 
  15.   I haven't beeen quite successful at it.  Following is the piece of code
  16.   I am using ...
  17.  
  18.    root = SoSepCreate();
  19.  
  20.    camera = SoPerspCamCreate();
  21.    SoSV3fSetX_Y_Z(&camera->position,x_pos,y_pos,z_pos);
  22.  
  23.    material = SoMtlCreate();
  24.    SoSepRef( root );
  25.    SoSepAddChild( root, (SoNode *) camera );
  26.    SoSepAddChild( root, (SoNode *) SoDirLtCreate() );
  27.  
  28.    ...
  29.  
  30.  
  31.    If any one could point out the mistake in this code I would appreciate
  32.    it.  Thanks in advance.
  33.  
  34.  
  35. -- 
  36. regards,
  37.  
  38. Ram.
  39.  
  40. ==============================================================================
  41.  
  42. Ram  Rajagopalan                                        Phone: (908) 730-2556
  43. Exxon Research & Engineering Co.                        Fax:   (908) 730-3042 
  44. RT 22 East Annandale, NJ - 08801                        Email: ram@erenj.com
  45.  
  46. ==============================================================================
  47.