[osg-users] Shadow Implement.

2019-09-09 Thread Franco Tang
Hi, I used to use osgShadow::ShadowMap to implement shadow in my application. Now, I want to use a new way to implement it, like the link below. [url] https://learnopengl.com/Advanced-Lighting/Shadows/Shadow-Mapping http://www.opengl-tutorial.org/intermediate-tutorials/tutorial-16-shadow-mapping/

Re: [osg-users] Shadow Implement.

2019-09-09 Thread Chris Djali
Hi, As someone who's added shadows to an OSG application, I can confidently say you're going to have a bad time if you try and use anything in osgShadow. I was told this before I'd really got started, and I didn't believe it, so continued anyway, and while I did end up with impressive final res

Re: [osg-users] Shadow Implement.

2019-09-09 Thread Franco Tang
AnyOldName3 wrote: > Hi, > > As someone who's added shadows to an OSG application, I can confidently say > you're going to have a bad time if you try and use anything in osgShadow. I > was told this before I'd really got started, and I didn't believe it, so > continued anyway, and while I did

Re: [osg-users] Shadow Implement.

2019-09-10 Thread Robert Osfield
Hi Franco, On Tue, 10 Sep 2019 at 03:23, Franco Tang wrote: > I guess that some code in osg is out-of-date and it's a bit diffcult to > mantain the community. However, I believe they had done pretty good work. > It's not so much that the OSG code is out-of-date, more that a range of different a

Re: [osg-users] Shadow Implement.

2019-09-10 Thread Franco Tang
Hi, I guess I went the wrong way and osg3.4.1 preferred to using glsl1.10. Cause LearnOpenGL tutorial using glsl3.3, the shaders which tutorials use can't be applied to my application. The default ShadowMap or SoftShadowMap effect seems to be ugly. Thank you! Cheers, Franco

Re: [osg-users] Shadow Implement.

2019-09-10 Thread Franco Tang
robertosfield wrote: > Hi Franco, > > > On Tue, 10 Sep 2019 at 03:23, Franco Tang < ()> wrote: > > > > I guess that some code in osg is out-of-date and it's a bit diffcult to > > mantain the community. However, I believe they had done pretty good work. > > > > > It's not so much that the O

Re: [osg-users] Shadow Implement.

2019-09-10 Thread Franco Tang
robertosfield wrote: > Hi Franco, > > > On Tue, 10 Sep 2019 at 03:23, Franco Tang < ()> wrote: > > > > I guess that some code in osg is out-of-date and it's a bit diffcult to > > mantain the community. However, I believe they had done pretty good work. > > > > > It's not so much that the O

Re: [osg-users] Shadow Implement.

2019-09-10 Thread Chris Djali
Hi, You need to use shadow2D instead of texture2D to sample a sampler2DShadow in older GLSL versions. Cheers, Chris -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76668#76668 ___ osg-users mailing