AlchemyViewer / Alchemy

Alchemy is a Second Life compatible viewer striving to be at the forefront of stability, performance, and technological advancement in the open-source metaverse viewer field.
https://www.alchemyviewer.org
GNU Lesser General Public License v2.1
14 stars 10 forks source link

[Bug]: Material Upload of GLTF does not recognize Diffuse & Normal #18

Closed SagaVortex closed 1 week ago

SagaVortex commented 2 weeks ago

Environment

Alchemy Beta 7.1.9.2492 (64bit) Release Notes

You are at 8.1, 199.8, 21.6 in Darter located at simhost-0bcc34323c1ea6cea.agni SLURL: http://maps.secondlife.com/secondlife/Darter/8/200/22 (global coordinates 288520.0, 275400.0, 21.6) Second Life Server 2024-06-11.9458617693 Release Notes

CPU: AMD Ryzen 9 5900X 12-Core Processor (3952.8 MHz) Memory: 31999 MB Concurrency: 24 OS Version: Linux 6.9.5-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sun, 16 Jun 2024 19:06:18 +0000 x86_64 Graphics Card Vendor: AMD Graphics Card: AMD Radeon RX 7900 XT (radeonsi, navi31, LLVM 17.0.6, DRM 3.57, 6.9.5-zen1-1-zen)

OpenGL Version: 4.6 (Core Profile) Mesa 24.1.1-arch1.1

Window size: 3440x1394 Font Size Adjustment: 96pt UI Font: Default Monospace Font: Default Chat Font: SansSerif Script Font: Monospace UI Scaling: 1 Draw distance: 128m Bandwidth: 10000kbit/s LOD factor: 3 Render quality: 5 Texture memory: 20480MB Texture cache: 11795MB / 14744MB (80.0% used) Disk cache: 16383MB / 16384MB (100.0% used)

RestrainedLove API: RLV v3.4.3 / RLVa v2.5.0.2492 libcurl Version: libcurl/7.54.1 OpenSSL/1.1.1w zlib/1.3.0.zlib-ng nghttp2/1.59.0 J2C Decoder Version: OpenJPEG Runtime: 2.4.0 Audio Driver Version: FMOD Studio 2.02.22 Dullahan: 1.14.0 CEF: 118.4.1+g3dd6078+chromium-118.0.5993.54 Chromium: 118.0.5993.54 LibVLC Version: 3.0.16 Voice Server Version: Not Connected Compiler Version: GCC 110400 Packets Lost: 0/74676 (0.0%) June 18 2024 11:40:18

Description

This is a report I also made towards LL about the gltf uploader failing me for unknown reasons. https://feedback.secondlife.com/bug-reports/p/material-upload-of-gltf-does-not-recognize-diffuse-normal

Trying to export my material in Blender as a gltf or glb results in the SL uploader only recognizing the metallic-roughness. This is despite the exported file working fine to reimport back into Blender, and also confirming that the textures themselves are not an issue for SL.

I tried several Blender versions and 2 different computers with the same results. I see the same issue when trying the official LL viewer on Windows gltf-upload-bug_Saga-Vortex.zip

I attached the example file with my gltf and the original blend file used to create it.

Reproduction steps

  1. Try to upload material from the supplied example gltf
  2. It will only offer to upload metallic-roughness
DarlCat commented 2 weeks ago

Did some poking at this, findings below. Don't think it means much but definitely interesting.

I tried previewing the included gltf file inworld using scene preview, and got this result image

I exported a .glb file from the .blend, and see this in a web preview utility. The inworld test of the .glb is the same as the .gltf above. image

RyeMutt commented 2 weeks ago

Did some of my own investigation and determined that the textures failing to load were exported as 16bpp PNG. That's currently not supported in the viewers uploader. You'd want to set blender to export PNG as 8bpp.

SagaVortex commented 1 week ago

yes @RyeMutt is right >,< I can now use the material uploader if I change the texture settings. A bummer for the normal texture.

Sad the uploader can not give you an error about it or that LL did not figure this out when I approached them with these files. Thank you a ton for taking a look <3