DVR, help!

New Message Reply Date view Thread view Subject view Author view

Jan Barglowski (jan++at++euryale.chinalake.navy.mil)
Tue, 8 Apr 1997 11:33:33 -0700 (PDT)


Hello Performers!

I'm trying to simulate a view that is degraded on the outside but
sharper on the inside. For example:
        ------------------------------
| |
| low-res |
| |
| ---------- |
| | high | |
| | -res | |
| | | |
| ---------- |
| |
| |
        ------------------------------

I'm trying to do this with DVR on the low-res channel, and then overlaying
another channel in the middle. The code I'm using is below:

---

////////////////////////////////////////////////////////////////////// // Left PipeWindow...

// Outside channel... spare_chan = new otwChannel(pipe); spare_chan->setFOV(1.0f, 0.0f); spare_chan->setNearFar(20.0f, 100000.0f); spare_chan->setViewport(0.0f, 0.0f, 1.0f, 1.0); spare_chan->setScene(visual_scene->getScene()); spare_chan->setESky(eSky); left->addChan(spare_chan);

// Alter the channel's resolution with DVR... int xs, ys; pfPipeVideoChannel *pvchan = spare_chan->getPVChan(); pvchan->setDVRMode(PFPVC_DVR_MANUAL); pvchan->setScale(0.5f, 0.5f);

// Inside channel... spare_chani = new otwChannel(pipe); spare_chani->setFOV(1.0f, 0.0f); spare_chani->setNearFar(20.0f, 100000.0f); spare_chani->setViewport(0.4f, 0.6f, 0.4f, 0.6f); spare_chani->setScene(visual_scene->getScene()); spare_chani->setESky(eSky); left->addChan(spare_chani);

---

On my iR, this causes everything, meaning all pfPipes and pfChannels to display garbage.

My questions are: 1) Can I, in fact, do what I need to do with DVR? If so, what am I doing wrong? I've already checked perfly.C and vchan.c, but they seem to use pfVChanSetOutputSize() rather than pfPVChanSetScale(). I've used both and get the same result.

2) Will using DVR influence the pfPipeWindow and it's other children pfChannels? I still want the middle area to be high (non-degraded) resolution. Will DVR influence other pfPipeWindow that I'm using?

3) Is there an easier way to do what I need to do, possible w/o DVR?

4) Is there a recommended patch for running DVR on Performer 2.1 on the iR that I may be missing?

Thanks for any help!

jan

-- 
Jan Anthony Barglowski	              jan++at++chinalake.navy.mil
Real-time Computer Graphics           http://www1.ridgecrest.ca.us/~jan
Naval Air Warfare Center, China Lake  (619) 927-1057
=======================================================================
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:01 PDT

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