Re: pfShadeModel -> segmentation faults

New Message Reply Date view Thread view Subject view Author view

Benedikt Kessler (bjk++at++munich.sgi.com)
Wed, 14 Oct 1998 17:44:54 +0200


Hi!

Marc Erich Latoschik wrote:

> Hello,
> i have a small problem with pfShadeModel and
> pfGetShadeModel. If there is geometrie loaded with no
> pfGeoState attached, wich shading is used?

this is in the manpage (near the end): The default shading model is Gouraud.

>
> (I am asking because in one application i load a few
> inventor files and they are shaded flat)
>
> But the bigger problem is: When is use either of the global state
> shading routines the application segmentation faults in that routine.
> The man pages do not say anything about calling them in a specific
> process (e.g. draw).

Look at the first line in the manpage:

pfShadeModel(3pf) IRIS Performer 2.2 libpr C Reference Pages

When it tells you that it the call is a >>> libpr <<< call and the type of the call
has to to with rendering. that you can be sure that it should be called only in the
draw process. If you're application crashes in multiprocess mode and runs when in
singleprocess mode, you probably tried to access the graphics context from any
non-draw process.

Bye! Benedikt

--
+---------------------------------+----------------------------------+
|Benedikt J. Kessler              | Silicon Graphics GmbH            |
|Training Munich                  | Am Hochacker 3 - Technopark      |
|Silicon Graphics Computer Systems| 85630 Grasbrunn-Neukeferloh, FRG |
|    ---  __o       ,__o          |                                  |
| ------_ \<,_    _-\_<,          | Phone: (+int) 89 46108-212 or -0 |
|----- (*)/ (*)  (*)/'(*)         | Fax:   (+int) 89 46107-212       |
+---------------------------------+----------------------------------+
|E-Mail: bjk++at++sgi.com                                                 |
|   Web: http://www.sgi.de/dienstleistungen/                         |
+--------------------------------------------------------------------+

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Wed Oct 14 1998 - 08:45:10 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.