Dear osg-users, a basic description of the problem: Setting up a ShadowedScene using ShadowMap and loading a collada model results in shadows working but the model missing its texture (completely white). Loading the same model as .obj is fine (both texturing and shadowing).
what has been found so far: - loading the collada file in an unshadowed scene works (showing textures) - guessing that the problem lies with the collada plugin assigning up to 3 textures on unit 0-2 (with the main texture usually on 1) and ShadowMap working with 1 base texture on unit 0 and using texture unit 1 for shadowing ? - taking a look at the collada model converted to .osg shows an empty “textureUnit 0 {}” followed by “ textureUnit 1 {...}” with the actual texture. Deleting the empty texture at 0 and switching the actual one to 0 results again in a model without textures (this time black, shadows again working). versions being used: - OSG 3.2.0 together with collada-dom-2.3.1 library Is there a solution to fix this without extending shadowmap/shaders? The fact that that changing the texture unit inside the .osg file is not working at all confuses me a bit. Cheers, Sandro ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=60418#60418 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org