Re: Wireframes

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++multipass.engr.sgi.com)
Wed, 7 Jan 1998 16:16:59 -0800


On Jan 7, 3:30pm, A. Ballard Andrews wrote:
> Subject: Wireframes
> hi Folks,
>
> I am still having a problem with wireframes
> that only exists on my IR, not my RE2.
> For some reason the calls to:
>
> pfOverride (PFSTATE_ENWIREFRAME, PF_OFF);
> pfEnable (PFEN_WIREFRAME);
>
> etc., must be inside the Draw callback but
> don't work inside the main simulation loop
> when the xevents are processed.
>
> Why is this a problem on the IR and not
> the RE2 (both version are OGL)???!!!
>

This should be done in draw only unless you are running
single process (which will depend on # cpus and calls the
application might make).

I think you can issue this in a cull callback and it'll
go into a display list for issue at draw time.

Your geostates may also have wireframe state so you
you must override your state on after you request the
state like this:

pfEnable (PFEN_WIREFRAME);
pfOverride (PFSTATE_ENWIREFRAME, PF_ON);

You don't need to call override off prior to the
pfEnable unless you have already turned on the
overide for that state.

For example to disable override in a post draw call
for example you'd call the following:

pfOverride (PFSTATE_ENWIREFRAME, PF_OFF);
You shouldn't have to call pfDisable if you have
sensible wireframe off geostate information.

Cheers,Angus.

-- 
"They can't break you if you don't have a spine."
                                      - Wally.

======================================================================= 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:56:32 PDT

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