OpenSceneGraph icon indicating copy to clipboard operation
OpenSceneGraph copied to clipboard

Load .obj's texture.png file fail: Error reading file texture.png: not implemented

Open HWZen opened this issue 2 years ago • 2 comments

platform: windows10

osg version: 3.6.5 get from vcpkg

Can load obj model but without texture, osg show Error reading file path/to/texture.png: not implemented Error reading file texture.png: not implemented 2 lines

Process load osgdb_obj.dll It needs other plugins?

HWZen avatar May 24 '22 16:05 HWZen

Did you manage to build the plugins? To get the plugins that depend on other libs to build, you need to tell vcpackage not only to build osg , but also the plugins. command seems to be something like: vcpkg install osg[plugins,tools] Laurens.

On Tue, May 24, 2022 at 6:44 PM HWZen @.***> wrote:

platform: windows10

osg version: 3.6.5 get from vcpkg

Can load obj model but without texture, osg show Error reading file path/to/texture.png: not implemented Error reading file texture.png: not implemented 2 lines

— Reply to this email directly, view it on GitHub https://github.com/openscenegraph/OpenSceneGraph/issues/1142, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXFTWXQTSZ62ZD25MPRUXTVLUBQHANCNFSM5W2GPP6A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

LaurensVoerman avatar May 25 '22 12:05 LaurensVoerman

Yes, It needs libpng and libjpeg, but vckpg did not build them automated. I rebuild osg when I install libpng and libjpeg, it works fine now.

HWZen avatar May 26 '22 05:05 HWZen