osgearth icon indicating copy to clipboard operation
osgearth copied to clipboard

Model texture error

Open sxsim opened this issue 4 years ago • 3 comments

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.

sxsim avatar Dec 23 '19 10:12 sxsim

Which forum thread are you referring to?

gwaldron avatar Jan 13 '20 17:01 gwaldron

Which forum thread are you referring to?

http://forum.osgearth.org/Bug-reports-osgearth-share-the-model-texture-td7593004.html

sxsim avatar Jan 17 '20 05:01 sxsim

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.

gwaldron avatar Jan 31 '20 12:01 gwaldron