home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!usc!sol.ctr.columbia.edu!ira.uka.de!fhg!igd!pfuetz
- From: pfuetz@igd.fhg.de (Matthias Pfuetzner)
- Newsgroups: comp.graphics
- Subject: Re: Porting Sun PHIGS programs using NURBS
- Message-ID: <1699@igd.fhg.de>
- Date: 17 Nov 92 09:20:06 GMT
- References: <1992Nov10.183112.17144@yc.estec.esa.nl>
- Sender: news@igd.fhg.de
- Reply-To: pfuetz@igd.fhg.de (Matthias Pfuetzner)
- Organization: Zentrum fuer Graphische Datenverarbeitung, Darmstadt, FRG
- Lines: 57
- Phone: +49 6151 155-150
- Room: B 013
- Operating-System: SunOS 4.1.2
- Machine-Type: sun4c
- Machine-Name: sokrates
-
- Hello Neil!
-
- Both your e-mail addresses (neil@yc.estec.nl,neil@gec-erc.co.uk) aren't valid!
- So I reply in this newsgroup!
-
- In article <1992Nov10.183112.17144@yc.estec.esa.nl> you write:
- > We currently have a large program that makes extensive use of NURBS
- >surfaces using Sun PHIGS. Is there anyone out there who has any information
- >on porting something like this to other platforms and/or PHIGS packages.
-
- I've been using SunPHIGS, X11R5 libphigs.a (which was written by Sun and is a
- subset of SunPHIGS, but produces PEX (PHIGS Extension to X) protocol calls.
- This implies that you need an X-Server which is capable of PEX) and graPHIGS,
- the PHIGS library of IBM. The NURBS shall be no problem when using the Sun
- based products (e.g. SunPHIGS and the libphigs.a which comes with X11R5 from
- MIT). Furthermore the NURBS shall be no problem when using graPHIGS on the
- console a potent IBM RS/6000 (potent meaning one of the upper end graphics
- adapters). If displayed to a dump X-terminal you will only see a wireframe
- model of the NURBS, so no shading, lighting will be possible.
-
- For references I include a part of my code (if #ifdefs etc.)
- Pfloat_list uknots;
- Pfloat_list vknots;
- Ppoint_grid34 grid;
-
- /* Apply the weights */
- #ifndef USE_GRAPHIGS
- for( ii = 0 ; ii < ii_end ; ++ii )
- {
- grid.points.point4d[ii].x *= grid.points.point4d[ii].w;
- grid.points.point4d[ii].y *= grid.points.point4d[ii].w;
- grid.points.point4d[ii].z *= grid.points.point4d[ii].w;
- }
- #endif
-
- #if defined( AIXV3 ) && defined( USE_GRAPHIGS )
- GPNBS( (Pint)2, (Pint) 3, uknots.num_floats - 2, vknots.num_floats - 3,
- uknots.floats, vknots.floats, 0, 0, 0, 1, 4, grid.points.point4d,
- uknots.floats[0], uknots.floats[uknots.num_floats - 1],
- vknots.floats[0], vknots.floats[vknots.num_floats - 1] );
- #else
- pnuni_bsp_surf( (Pint)2, (Pint)3, &uknots, &vknots, PRATIONAL, &grid,
- (Pint) 0, (Ptrimcurve_list *) 0 );
- #endif
-
- I haven't been using any other PHIGS, so I can't tell you anything about it.
-
- Hoping having helped a bit,
- Sincerly,
- Matthias
-
- P.S.: If you have questions, ask me!
- --
- Matthias Pfuetzner | @work: +49 6151 155-150 | @home: +49 6151 75717
- 6100 Darmstadt, FRG | ZGDV, Wilhelminenstrasse 7 | Lichtenbergstrasse 73
- pfuetzner@igd.fhg.de, pfuetzner@zgdvda.UUCP | Keith Packard said:
- R5 is different from R4. That's why we changed the release number :-)
-