home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!yale.edu!jvnc.net!erenj.com!ramsgi.erenj.com!ram
- From: ram@ramsgi.erenj.com (ram rajagopalan)
- Newsgroups: comp.sys.sgi
- Subject: Inventor Question.
- Message-ID: <1993Jan7.204949.27213@erenj.com>
- Date: 7 Jan 93 20:49:49 GMT
- Sender: news@erenj.com (USENET News System)
- Organization: Exxon Research & Engineering Co.
- Lines: 35
- Nntp-Posting-Host: ramsgi.erenj.com
-
- hi,
-
- I would like to position a camera other than the default location, and
- I haven't beeen quite successful at it. Following is the piece of code
- I am using ...
-
- root = SoSepCreate();
-
- camera = SoPerspCamCreate();
- SoSV3fSetX_Y_Z(&camera->position,x_pos,y_pos,z_pos);
-
- material = SoMtlCreate();
- SoSepRef( root );
- SoSepAddChild( root, (SoNode *) camera );
- SoSepAddChild( root, (SoNode *) SoDirLtCreate() );
-
- ...
-
-
- If any one could point out the mistake in this code I would appreciate
- it. Thanks in advance.
-
-
- --
- regards,
-
- Ram.
-
- ==============================================================================
-
- Ram Rajagopalan Phone: (908) 730-2556
- Exxon Research & Engineering Co. Fax: (908) 730-3042
- RT 22 East Annandale, NJ - 08801 Email: ram@erenj.com
-
- ==============================================================================
-