Hi Yang,

first read the README file, there you can find the info, why the screen is 
black:
----------
Examples do load .ppu and .glsl files out of the Data directory, which can
be found in the main direcotry of osgPPU. In order that this files are found
you have to setup the OSG_FILE_PATH environment variable accordingly.
Hence on Unix systems do following:
  export OSG_FILE_PATH=$OSG_FILE_PATH:/path/were/osgPPU/is/installed/
----------

The viewer has to be activated with a .ppu parameter. for example:
./viewer Data/motionblur.ppu

However you have to specify the environment variable before.


cheers,
art

P.S. I saw there were a bug in the viewer. Please update the code from svn 
again, because viewer has to be run in single threaded mode (i cahnged it now). 
Multithreading isn't working properly now ;(

--- yang zhiyuan <[EMAIL PROTECTED]> schrieb am Sa, 4.10.2008:

> Von: yang zhiyuan <[EMAIL PROTECTED]>
> Betreff: [osg-users] OSGPPU
> An: [email protected]
> Datum: Samstag, 4. Oktober 2008, 13:52
> Hi:
>     I just down load OSGPPU and compile it with OSG2.6.But
> the
> example(hdr,dof) output nothing(the screen is black).Is
> there anybody can
> tell me what is wrong.
>     The example viewer can not run when execute to here:
>     inline observer_ptr& operator = (T* ptr)
>         {
>             if (_ptr==ptr) return *this;
> 
>             // it goes wrong
> here!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>             if (_ptr) _ptr->removeObserver(this);
> 
>             _ptr = ptr;
>             if (_ptr) _ptr->addObserver(this);
>             return *this;
>         }
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


      
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to