Re: environment mapping question

New Message Reply Date view Thread view Subject view Author view

From: Angus Dorbie (dorbie++at++sgi.com)
Date: 06/13/2000 14:24:50


In the channel draw callback for the last cube face ONLY, you perform
the readback (after the call to pfdraw. Or you could do this before
screen clear in the man channel if you are worried about light points.
This will be done before the main window is drawn. You need to get this
from the backbuffer readsource ofcourse.

Cheers,Angus.

Mhstar55++at++aol.com wrote:
>
> Hi,
>
> I try to programm an environment mapping application.
> Having difficulties on generating offline the environment channel views I got close to the sample of Angus.
>
> Now my problem:
> I couldn't find how to render the views offline (is this possible?).
> So I generate the cube-image with the 6 views and the environment mapping texture geode (see Angus) at the same place as the normal channel should appear. Creating the 6+1 channels within the size
> of the viewport first and the view cam channel last, lets the viewcam channel hide all the others. Now I have the problem, that the pfSubloadTex called in the corresponding draw processes starts after the pfDraw for all is done, so I get instead of the image
> from the environment cube the image from the view cam channel. Is it possible to interrupt the grafics pipeline to subload first?
>
>
> Thanks
>
> Jim MacMilan
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
For Performer+OpenGL tutorials http://www.dorbie.com/

"In the middle of difficulty lies opportunity." --Albert Einstein


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Jun 13 2000 - 14:25:02 PDT

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