Re: GL lines in performer

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Wed, 20 Sep 1995 10:30:13 -0600


The problem here is probably the material mode. You must ensure that the
RGBcolor call is setting a colour value and not simply modifying
some material properties.

Look at the manual entry for lmcolor() and pfMtlColorMode().

A call like

lmcolor(LMC_COLOR);

should fix your lines, but you probably want to ensure that you
reinstate the previous mode afterwards.

On Sep 19, 10:56am, ipandzic++at++cui.unige.ch wrote:
> Subject: GL lines in performer
> Hello,
>
> I am trying to draw some simple GL lines (bgnline - v3f - endline) in a
> Performer node's draw traversal function. These lines are sort of markers
> so I don't want them to be influenced by light, i.e. I want them to have
> an absolute color, defined by RGBcolor command. To do this I call
> pfDisable(PFEN_LIGHTING) before, and pfEnable(PFEN_LIGHTING) after
> drawing the lines. This works fine on a single processor machine like
> Indigo or Indy, but
> I get problems on the Onyx - the lines sometimes still don't
> have the color I want, but get influenced by the light. I don't
> seem to find on what it depends.
>
> Does someone know a better way to draw simple GL lines with absolute color?
>
> Thanks,
> Igor
>
>-- End of excerpt from ipandzic++at++cui.unige.ch

-- 
Angus Dorbie,
Silicon Graphics Ltd, UK
dorbie++at++reading.sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:53 PDT

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