Re: Light point problems with display lists

New Message Reply Date view Thread view Subject view Author view

Sharon Clay (src++at++rose.engr.sgi.com)
Wed, 23 Jul 1997 22:26:05 -0700


+>---- On Jul 23, 6:37pm, Rémi Arnaud wrote:
> Subject: Re: Light point problems with display lists
->From remi++at++remi Wed Jul 23 18:37:47 1997
->From: remi++at++remi (Rémi Arnaud)
->>
->> Greetings,
->>
->> I'm having problems with lightpoints on our iR. The database is built
->> with MultiGen and is of the Chicago O'Hare Airport. There are a lot of
->> lightpoints for taxiway lights, runway lights and building lights. If
->> pfuTravSetDListMode is used to set up display list I can get a 60hz
->> frame rate, but the lightpoints don't work correctly. Some of the
->> lightpoints fade out and some get huge as you move away from them. If
->> I don't set up the display list I get good lightpoint results but the
->> frame rate drops to 15-20hz.
->>
->> I need the 60hz frame rate and for the lightpoints to be correctly
->> displayed. Any ideas on how to deal with this problem?
->
-> Light points need (expensive) computation to be done before it can be
-> display. Moving light points in a display list turns off that computation.

This is true. However, dlists (and/or vertex arrays) might still
help your rendering performance on Onyx1 iR.
This putting the lpoints in the dlists was a bug in the libpfutil
traversal in 2.1. You can fix this
traversal in libpfutil/trav.c::pfuTravSetDListMode()

            /* do not compile gset with a lpstate */
            gs = pfGetGSetGState(gset);
                 if (gs)
                lpstate = pfGetGStateAttr(gs,PFSTATE_LPOINTSTATE);
             else
                lpstate = NULL;

            if (lpstate == NULL)
                pfGSetDrawMode(gset, PFGS_COMPILE_GL, enable);

src.

-- 
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com  (415) 933 - 1002  FAX: (415) 965 - 2658  MS 8U-590
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++

===================================List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++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:55:38 PDT

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