Just this:
Loading shader source file "data/blackify.frag"
Uniform Adding parent

2007/3/30, Mihai Radu <[EMAIL PROTECTED]>:

 Hi Ivan,

Try this before the code creating the program:
osg::setNotifyLevel(osg::INFO);
Then watch the spew on the console to get some idea of supported
extensions, errors etc ...

Mihai

Ivan Bolčina wrote:

Nvidia 6600 GT, driver is 9.1.3.1

Thanks and bye,
ivan

2007/3/28, Mike Weiblen <[EMAIL PROTECTED] >:
>
> What GPU and driver?
> -- mew
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:osg-users-
> > [EMAIL PROTECTED] ] On Behalf Of Ivan Bolcina
> > Sent: Wednesday, March 28, 2007 2:21 PM
> > To: osg users
> > Subject: Re: [osg-users] How to preload and precompile shader.
> >
> > It is GLSL.
> > It is not first frame problem.
> > I dont know what you mean my displaylists?
> >
> > That is shader init.
> >
> >         mProg = new osg::Program;
> >         RefPtr<osg::Shader> fragmentShader = new osg::Shader(
> > osg::Shader::FRAGMENT );
> >         mProg->addShader( fragmentShader.get() );
> >         fragmentShader->loadShaderSourceFromFile(
> "data/blackify.frag");
> >
> > This is my shader.
> > uniform float strength;
> >
> > void main(void)
> > {
> >    gl_FragColor = vec4(1.0,1.0,1.0,strength);
> > }
> >
> >
> >
> > 2007/3/28, Mike Weiblen <[EMAIL PROTECTED] >:
> >
> >       Hi,
> >       What's your GPU/driver?  Is your shader GLSL or ARB FP?
> >       0.5 second build times are way over anything I've seen.  I've
> run
> > apps
> >       that rebuild the shaders every frame (not a good idea, but not
> > painful
> >       either).  Why do you think it's the shader; could it be some
> other
> >       1st-frame setup (eg displaylists) going on?
> >       Cheers
> >       -- mew
> >
> >
> >
> >       > -----Original Message-----
> >       > From: [EMAIL PROTECTED] <mailto:osg-users-
> > [EMAIL PROTECTED]>  [mailto:osg-users-
> >       > [EMAIL PROTECTED] ] On Behalf Of Ivan Bolcina
> >       > Sent: Wednesday, March 28, 2007 8:43 AM
> >       > To: osg users
> >       > Subject: [osg-users] How to preload and precompile shader.
> >       >
> >       > Hi.
> >       >
> >       > I am using very simple fragment shader and it works great. But
> > there
> >       is a
> >       > problem, when I first use ti on scene, it takes about half a
> sec
> > to
> >       > initialize, so my whole app freezes for half a second.
> >       >
> >       > I would like to preload fragment shader and precompile it. Any
> > ideas?
> >       >
> >       > Bye, ivan
> >
> >       _______________________________________________
> >       osg-users mailing list
> >       osg-users@openscenegraph.net
> >       http://openscenegraph.net/mailman/listinfo/osg-users
> >       http://www.openscenegraph.org/
> >
> >
>
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>

------------------------------

_______________________________________________
osg-users mailing list
[EMAIL 
PROTECTED]://openscenegraph.net/mailman/listinfo/osg-usershttp://www.openscenegraph.org/



_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to