Re: [osg-users] StandardShadowMap effect
Hi Wojtek Lewandowski, Thanks for your help. I tried using ShadowMap and the effect is the same. How do I check if my model is using texture coordinates on the same stage as shadow map (1 by default)? I tried using ShadowTexture and the effect is okay. But it seems that of all Shadow effects, only Shadow Texture seems to work on my machine. I am using ATI Mobility Radeon HD 4330. Is that an issue? Thank you! Cheers, Linda -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35191#35191 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] StandardShadowMap effect
Hi Linda, I tried using ShadowMap and the effect is the same. How do I check if my model is using texture coordinates on the same stage as shadow map (1 by default)? I tried using ShadowTexture and the effect is okay. Does osgshadow example look correct (using shadow map and default scene with rotating shapes) ? Does it look correct when you load different model. ? If they do, then your model could be the cause. Try converting your model to .osg format with osgconv utility. Then load produced .osg file into text editor and look for 'textureUnit 1' sections. If you find one then it means your model does use the same stage as shadow map. But it seems that of all Shadow effects, only Shadow Texture seems to work on my machine. I am using ATI Mobility Radeon HD 4330. Is that an issue? That could be the reason. Older ATI drivers were flipping shadow map texture. Install most recent Catalyst drivers you can find. I have old Radeon X1250 in my laptop. Last Catalyst available for this board are rev 10.2. And they seem to work correctly with shadow maps, but earlier revisions were a disaster. I am sure you will find fresher release than 10.2 for your board. Cheers, Wojtek ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] StandardShadowMap effect
Hi Wojtek Lewandowski, I tried using cow.osg and have similar problem. I tried download the driver from AMD website but the latest version they have is 10.12 and it seems to keep crashing after installed. Do you think there is any work around using the ATI card like change the mapping method for the shadow texture? Or should I keep to find another device or simply abandon this machine? Thank you! Cheers, Linda -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35196#35196 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] StandardShadowMap effect
Hi Linda, I tried using cow.osg and have similar problem. I tried download the driver from AMD website but the latest version they have is 10.12 and it seems to keep crashing after installed. Do you think there is any work around using the ATI card like change the mapping method for the shadow texture? Or should I keep to find another device or simply abandon this machine? Does osgshadow (without command line params ) crash ? If it does you may check if --SingleThreaded --window 10 10 800 600 options help. They do sometimes. You may also try looking at earlier driver versions. I would check 10.8 and/or 10.9. I believe that with 10.9 or 10.10 ATI introduced OpenGL 4.0 support and this was a chance to break some stuff if it was not broken yet. We still mainly use NVidia cards for OpenGL development and occasionaly switch to ATI to check if the code works there. AMD/ATI improved their OpenGL drivers recently but its clearly still not the same quality as on NVidia. Cheers, Wojtek ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] StandardShadowMap effect
Hi, I tried using StandardShadowMap but however, have strange result as attached. Could anyone give some clue as what went wrong? Thank you! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35176#35176 Attachments: http://forum.openscenegraph.org//files/shadow_213.jpg ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] StandardShadowMap effect
Hi Linda, Looks like shadow map was rendered using different projection than the texture projection which is applied by shadow texgen. This is most probably a result of texgen unit conflict. Does your model use texture coordinates on the same stage as shadow map (1 by default) ? But that issue could be also caused by other factors (old ATI drivers, texture matrix settings etc) so it would be best it you could prepare a test case and post it on forum. You may also try ShadowMap which should give you very similar results to StandardShadowMap and see if the issue is present there. ShadowMap does not use Vertex shaders so if your issue is caused by something in Vertex setup phase it may not appear in ShadowMap. Cheers, Wojtek Lewandowski -Oryginalna wiadomość- From: Linda Lee Sent: Monday, December 27, 2010 2:02 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] StandardShadowMap effect Hi, I tried using StandardShadowMap but however, have strange result as attached. Could anyone give some clue as what went wrong? Thank you! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35176#35176 Attachments: http://forum.openscenegraph.org//files/shadow_213.jpg ___ 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