Testicular Slingshot Posted January 16, 2022 Share Posted January 16, 2022 I've been fiddling with compiling the official viewer, and it seems OpenJPEG 1.5 is broken in the latest build. I've looked around and found Kitty Barnett's patch in Catznip for v2.3, which sorta works, but I've noticed when textures aren't fully loaded, they appear corrupted looking. I've noticed that Firestorm is using v2.4 for OS builds, and I can't figure out what they did to make it fully work. Any help on this would be appreciated. Link to comment Share on other sites More sharing options...
Henri Beauchamp Posted January 16, 2022 Share Posted January 16, 2022 (edited) OpenJPEG v1.5 and newer got totally crippled for SL usage purposes. The JPEG2000 level of details plain does not work with those versions (they can only decode textures successfully at full LOD), and JPEG2000 encoding is also bogus with them. That's why I kept OpenJPEG v1.4.0.635, fixed/improved with many patches, either backported from newer versions for security fixes, or created by me (and recently from Kathrine Jansma for an AVX2 optimization) for the Cool VL Viewer (the patched version has been made part of my viewer sources for these reasons)... However, please be aware that the ”rainbow textures” you are experiencing may also be the result of bugs in libcurl's HTTP pipelining code (the only 100% working and safe version of libcurl with regard to pipelining is v7.47 with LL's patches, as used by default in my viewer)... Edited January 16, 2022 by Henri Beauchamp 1 Link to comment Share on other sites More sharing options...
Testicular Slingshot Posted January 16, 2022 Author Share Posted January 16, 2022 8 hours ago, Henri Beauchamp said: OpenJPEG v1.5 and newer got totally crippled for SL usage purposes. The JPEG2000 level of details plain does not work with those versions (they can only decode textures successfully at full LOD), and JPEG2000 encoding is also bogus with them. That's why I kept OpenJPEG v1.4.0.635, fixed/improved with many patches, either backported from newer versions for security fixes, or created by me (and recently from Kathrine Jansma for an AVX2 optimization) for the Cool VL Viewer (the patched version has been made part of my viewer sources for these reasons)... However, please be aware that the ”rainbow textures” you are experiencing may also be the result of bugs in libcurl's HTTP pipelining code (the only 100% working and safe version of libcurl with regard to pipelining is v7.47 with LL's patches, as used by default in my viewer)... Mind if I snag your version of it? Link to comment Share on other sites More sharing options...
Henri Beauchamp Posted January 16, 2022 Share Posted January 16, 2022 40 minutes ago, Testicular Slingshot said: Mind if I snag your version of it? It is Open Source. Feel free ! 🙂 2 Link to comment Share on other sites More sharing options...
Ansariel Hiller Posted January 16, 2022 Share Posted January 16, 2022 Not sure what OpenJPEG version or package you used, but 1.5 and the newer 2.x versions until now don't support partial decodes, hence textures will be broken. There is a years-old pull request on the OpenJPEG repository to add partial decode support, so if you try to build an OpenJPEG package yourself, you will have to include the changes from the pull request. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now