Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!isl1.ri.cmu.edu!cycy From: cycy@isl1.ri.cmu.edu (Scum) Newsgroups: comp.sys.sgi Subject: Re: Another SGI graphics problem/solution to last one Summary: that's it! Message-ID: <7269@pt.cs.cmu.edu> Date: 8 Dec 89 07:46:59 GMT References: <7254@pt.cs.cmu.edu> <45948@sgi.sgi.com> Organization: Carnegie-Mellon University, CS/RI Lines: 45 In article <45948@sgi.sgi.com>, tarolli@riva.esd.sgi.com (Gary Tarolli) writes: > In article <7254@pt.cs.cmu.edu>, cycy@isl1.ri.cmu.edu (Scum) writes: > > We want to use dgl (Distributed Graphics Library) and have things appear > > on another monitor's screen. That works; however, on the local screen there > > is a problem with lighting in one of the windows, and it's pretty weird. The > > objects appear, and they appear in the correct material colour. However, the > > lighting model or the lights seem to be screwed up. The objects are just > > coloured flat now. No shadows, no shading, no perspective, nothing. This worked > > in gl, but it seems there is something missing in dgl. By the way, normals are > > I think you stumbled across one of the commands that behave slightly differentlyin the GL than in the DGL. The command is lmdef, and the GL ignores the third > parameter whereas the DGL requires it. People normally, by habit, put 0 as > the 3rd parameter and the GL works fine. If you read the man page , the 3rd > parameter is supposed to be the number of floats in the 4th argument. The > DGL looks at this value to determine how many floats to send. Thus if you > are like most people and set it to 0, the DGL will send 0 floats and thus > Check the 3rd parameter and make sure it is set correctly, that should fix > your problem. > Gary Tarolli That was it! Actually, I had miscounted the parameters (I skipped a line in when I was counting the elements in the array) and had used 10 instead of 14 for the third parameter. Thanks a million!!!!!!!!! -- Chris. -- -- Chris. (cycy@isl1.ri.cmu.edu) "People make me pro-nuclear." -- Margarette Smith