I installed the newest drivers from nvidia, but with no success. I go on searching, but perhaps someone, if he has a lot of time ;), could try to write a simple vertex shader for osgShadow::ShadowMap for passing texture attributes etc. to the fragment program. I tried it, but for me it is not working. If someone else could get it working I would know that the problem is on my site. Thanks to you Robert and everybody else.
--marcus Robert Osfield wrote: > Hi Marcus, > > It could be that the OpenGL driver isn't implementing the built in > uniforms correctly. Go search for driver updates or the manufacturers > forums. > > On 9/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> So, now I have erased all warnings, but it still does not work. How I >> mentioned before, could there be a problem with the texture Matrix >> (gl_TextureMatrix[1] in the vertex shader). How can I check, that the >> texture matrix is set up correctly in my main program? Btw turning on the >> debug level was helpful for erasing the warning, but I could not found any >> errors. >> Thanks >> >> -marcus >> >> >>> No I have not checked it. But I think the code is correct, because when I >>> use it without the vertex shader, it is working fine (the same code). The >>> warnings are just casting stuff, I will clean up now. But I think this is >>> not the problem, but I will also check my code with glvalidate. >>> >>> >>>> Have you checked your shader with glvalidate program from 3dlabs?what >>>> are the warnings?these usually are important to resolve. >>>> >>>> On 9/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>>> >>>>> So, the notify thing is working now. I get the info logs when >>>>> compiling, >>>>> but everything seems to be fine. The glProgram links correctly, just >>>>> some >>>>> casting warnings. I really don't know why it fails. Could there be a >>>>> problem with the gl_TextureMatrix[1] in the vertex program? What I want >>>>> is >>>>> simply to transfer the gl_TexCoords of my shadowMap to the frag >>>>> program. >>>>> I >>>>> am still thankful for every hint. >>>>> >>>>> --marcus >>>>> >>>>> >>>>>> Yeah, i have searched the website, but this I have not found ;) >>>>>> >>>>> Thanks >>>>> >>>>>> Robert. >>>>>> >>>>>> >>>>>>> http://www.openscenegraph.org/projects/osg/wiki/Support/TipsAndTricks >>>>>>> >>>>>>> On 9/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>>>>>> >>>>>>>> Hi Mike, >>>>>>>> >>>>>>>> first thanks for your answer, but could you or someone else tell me >>>>>>>> >>>>> how >>>>> >>>>>>>> to >>>>>>>> turn on the notify level? I never worked with it. >>>>>>>> >>>>>>>> Thanks. >>>>>>>> >>>>>>>> >>>>>>>>> Hi, >>>>>>>>> >>>>>>>>> Turn up the notify level to retrieve the infologs for compilation >>>>>>>>> >>>>> and >>>>> >>>>>>>>> linking. There could be some other error preventing creation of >>>>>>>>> >>>>> a >>>>> >>>>>>>>> functioning glProgram. >>>>>>>>> >>>>>>>>> -- mew >>>>>>>>> >>>>>>>>> >>>>>>>>> Mike Weiblen -- Zebra Imaging -- Austin Texas USA -- >>>>>>>>> http://www.zebraimaging.com/ >>>>>>>>> >>>>>>>>> >>>>>>>>>> -----Original Message----- >>>>>>>>>> From: [EMAIL PROTECTED] >>>>>>>>>> >>>>> [mailto:osg-users- >>>>> >>>>>>>>>> [EMAIL PROTECTED] On Behalf Of Marcus Fritzen >>>>>>>>>> Sent: Thursday, August 30, 2007 4:24 AM >>>>>>>>>> To: [email protected] >>>>>>>>>> Subject: [osg-users] textures and shader >>>>>>>>>> >>>>>>>>>> Hello, >>>>>>>>>> >>>>>>>>>> I have a little problem using texture coordinates with shader. >>>>>>>>>> >>>>> The >>>>> >>>>>>>>>> problem is, if I use a vertex program with varying for the >>>>>>>>>> >>>>> fragment >>>>> >>>>>>>>>> program, the texture coordinates seem to be incorrect, but if I >>>>>>>>>> >>>>> just >>>>> >>>>>>>>> use >>>>>>>>> >>>>>>>>>> the fragment program without the vertex program everything is >>>>>>>>>> >>>>> fine. >>>>> >>>>>>>>> For >>>>>>>>> >>>>>>>>>> example when computing shadows: >>>>>>>>>> >>>>>>>>>> VERT >>>>>>>>>> ... >>>>>>>>>> vertex = gl_ModelViewMatrix * gl_Vertex; >>>>>>>>>> gl_TexCoord[0] = gl_MultiTexCoord0; >>>>>>>>>> gl_TexCoord[1] = gl_TextureMatrix[1] * vertex; >>>>>>>>>> ... >>>>>>>>>> FRAG >>>>>>>>>> ... >>>>>>>>>> float depth = shadow2DProj( shadowTexture, gl_TexCoord[1] ).x; >>>>>>>>>> ... >>>>>>>>>> this is not working. On texture unit 0 is the base texture, on 1 >>>>>>>>>> >>>>> the >>>>> >>>>>>>>>> shadowmap. But without the vertex program it is working. Anybody >>>>>>>>>> >>>>> any >>>>> >>>>>>>>>> hints? >>>>>>>>>> >>>>>>>>>> Thanks, >>>>>>>>>> Marcus >>>>>>>>>> _______________________________________________ >>>>>>>>>> osg-users mailing list >>>>>>>>>> [email protected] >>>>>>>>>> >>>>>>>>>> >>>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or >>>>> >>>>>>>>> g >>>>>>>>> _______________________________________________ >>>>>>>>> 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 >>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> 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 >>>> >>>> >>> _______________________________________________ >>> 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 >> >> > _______________________________________________ > 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

