osgearth
osgearth copied to clipboard
Model texture error
In some cases, the external model loaded by osgearth2.10.2 has a texture error, and the case data is as follows.
http://forum.osgearth.org/file/n7593004/test.zip
The same model shows no problems in OSG.
Which forum thread are you referring to?
Which forum thread are you referring to?
http://forum.osgearth.org/Bug-reports-osgearth-share-the-model-texture-td7593004.html
It almost looks like the texture state is "bleeding" from one level to the next, as if the child tile is trying to inherit a texture from the parent, but the association is getting lost, and it's inheriting a random texture from elsewhere in the draw.
[edit] In fact, if I replace the shader generator with a simple one-texture shader at the model's top level, it works correctly. But I'm not sure what would be a general solution to that.