Re: [osg-users] Shadow size dont change when i change model size in vertex shader
Hi Umid nobody can help you if you don't explain more precisely your problem Cheer David 2012/8/30 Umid Shahmaliyev quza...@yahoo.com Hi, Hi all. I have some problem with shadow. I have 2 models in scene whith shadow. And when i change model size in vertex shader nothing happens with shadow. Are there any way to do this? ... Thank you! Cheers, Umid -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=49671#49671 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Shadow size dont change when i change model size in vertex shader
Hi Shadow technique itself uses either fixed function or its own shaders to draw shadow map, and know nothing about what are you doing in your shader. Easy way to go is apply whatever transforms you need with osg::MatrixTransform node in graph instead of doing it in shaders. If this is not possible - you should use your own shaders for drawing shadow map, so you can do same transformations yourself. Cheers. 30.08.2012, 09:38, Umid Shahmaliyev quza...@yahoo.com: Hi, Hi all. I have some problem with shadow. I have 2 models in scene whith shadow. And when i change model size in vertex shader nothing happens with shadow. Are there any way to do this? ... Thank you! Cheers, Umid -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=49671#49671 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Shadow size dont change when i change model size in vertex shader
Hi, Hi all. I have some problem with shadow. I have 2 models in scene whith shadow. And when i change model size in vertex shader nothing happens with shadow. Are there any way to do this? ... Thank you! Cheers, Umid -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=49671#49671 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org