Re: [osg-users] Issue with shadow

2016-09-27 Thread Suraj Paul
Hi marchingcubes , I tried with softshadow technique. It has reduced the flickering of the shadow and made the shadow of the moving node on the terrian moe well defined. Increasing the 'textureSize' from 1024 to 8192 helped me. However, the flickering of the surface of the moving node is still

Re: [osg-users] Issue with shadow

2016-09-21 Thread Pete Black
When you set up the technique on your ShadowedScene, you can use any of the various techniques from osgShadow. on this page: http://trac.openscenegraph.org/projects/osg//wiki/Support/ProgrammingGuide/osgShadow There is example code for setting up shadows, and, as an example, to use soft shado

Re: [osg-users] Issue with shadow

2016-09-21 Thread Suraj Paul
Hi marchingcubes, Thanks a lot for your reply. Being unaware of the shortcoming of the 'shadowmap' of OSG for large terrain, I was struggling with shadow. the link u shared is really useful one and exactly addresses my problem. However, i am yet to include these few-found techniques of the lin

Re: [osg-users] Issue with shadow

2016-09-21 Thread Pete Black
Its becase OSG's default shadowMap code isn't very good for large scenes - the shadow camera frustum is sized to fit the entire scene, so an individual shadow map pixel may cover a large number of rendered fragments, making the shadows very pixellated, and the 'shadow acne' - caused by a similar

Re: [osg-users] Issue with shadow

2016-09-17 Thread michael kapelko
Hi. Post a youtube video larger than 60x60px. It's impossible to know what glitters from tiny static images. 2016-09-15 23:52 GMT+07:00 Suraj Paul : > Hi All, > > I have a scene in which a node is [b]moving over a terrain[/b] at a > certain height. > I also have a light source in the scene. > The

[osg-users] Issue with shadow

2016-09-15 Thread Suraj Paul
Hi All, I have a scene in which a node is [b]moving over a terrain[/b] at a certain height. I also have a light source in the scene. The node correctly casts shadow on the terrain. Also the parts of node like its limbs/appendages show shadow on the central body of the node as expected. Howeve