Marc Erich Latoschik (marcl++at++TechFak.Uni-Bielefeld.DE)
Thu, 15 Oct 1998 10:11:09 +0200
> > 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.
yep, me stupid was reading the programers guide instead of...the man
page ;)...
(comes from too much windows programming )
> >
> > 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.
>
I guessed that and tried in in the draw process, with the same result.
THe app crashes
with a segmentation violation. The call is made during a pipewin open
operation, which
takes place in the draw routine (stack trace an MP debug shows that
clearly).
So i am a little confused what is going on. Any further ideas?
> Bye! Benedikt
bye
Marc
********************************************************************************
Marc Erich Latoschik, AG-WBS, Technische Fakultaet der Universitaet
Bielefeld
Universitaetsstrasse 25
Postfach 100 131
33501 Bielefeld
Raum M4-122
Fon: (0521) 106 2919
Fax: (0521) 106 2962
marcl++at++techfak.uni-bielefeld.de
http://www.TechFak.Uni-Bielefeld.DE/techfak/persons/marcl/
********************************************************************************
This archive was generated by hypermail 2.0b2 on Thu Oct 15 1998 - 01:11:23 PDT