specularEnvironmentMaps not working with 3D Tiles
- Dominant language
- JavaScript
- Stars
- 15.7k
- Forks
- 3.9k
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 34
Description
Related community forum thread: https://community.cesium.com/t/how-to-use-specularenvironmentmaps-in-3dtiles/12001
When trying to set the specularEngironmentMaps for 3D tileset, the user is running into the following error:

The example is using a tileset from Cesium SampleData folder.
Sandcastle reproducing error: [link](https://sandcastle.cesium.com/index.html#c=jVZtb9s2EP4rnL/UARKJpChKSh1jQ7r3DB2adBg2Dykt0TEbiRRIyo5b9L/vJFu23ATzjCAgj3f33D135GklLFopuZYWXSEt1+haOtVUwR+dbDwb5d3+2mgvlJZ2Njp7PdMzrRZo/M3WMHC51DJwtcybUtjv9UpZoyup/W+idrdNXRvrZXGGPs80QmulC7MORCmtH7cChGaju6VyaG7N2kEchZEOaeOR25qi3jOSB9eoAt/BbNR6aCP60ga1OtYB+PfvbtBVqzMbLb2v3WUYbhMKclOFdTMvVR7eCl3kwvlS3oqqLuUb4UX4qIQV9/xeLLy02hh9Tx/v1bwMHv3TbPR6C1aZQpYdBgAEQQh/AxdbKqM3d6qULvxZOy90LovD6q1VEKbwyujQt0rSBx+d0Z3/mQ5D1BHzVdpoLRyqrYFEnCxQ45R+QD8a81DKVw79oErRaYLGR5n7AN2ZXhttTGORWevLzjlBF+gN7EojCuSX8mBrZSmFk2jck/ag/LKZd6Q9dEjhYqcb7nTdWdA5peD0XaPRh7x6kBpdXPhNLa+ANFgWsi7N5iqshV+G3oSm8XXj0X6vKvEgg2VhPwToLQRk0cLYSniHhJVIlM70PSGL4BhlKcv6Q6sOaiUydcup20YUQUR34lF2KYK2tALsUW7kYqHytgLgX28Z+PXuTwSZyU7Q81IhpXf34pdbBOS7JbCG5rKERu777gbj4xt0LSBMp4SOujbHAUkwi2MS4zQijNLznZRHJCatLMOUZL004xnnCcc0zRIezfTZruNuyD35T5wLHGDO4xhTME+zKI3OezGlOE1xHCeMY5bukHCSplGMcUYZJzQZIp1KCINzznCWsCSNM9I7ZHFCWITBZZrEUS/lEcvSDAM0pyQewpzOB9zxOOJRRGhKDulwlmFOogT4iw/iGJM0Y5gBC5gOcOg9PQkEjiKapDwjSZoNPCbwy+KEZlnKD2LOIADGWBzh6BiJnGKORSxmcQbRQ2JszxyUnMYZJpiROOmlMbAIooTDMRnC4JP5YAL1ATOaMLKvDwYWOY9SGhES8700odBrOIUiccKHMKfrA93McQqNhTFnh0owHmUsgubKWIKTA29JzGkG5YQuTYedQE8XCLMM+ILiEOi7AxLIk4ynhHOWJoeUUrhrcN8I5hlND0BHN/8K/Q1X97y7WO3/btmuoF+6/926ldJuRf/Zedk92F+FPHzypR9/3k644a+x5eV+cJwfn385Gw4WcH00YWurKuXVSrpAFMV4F0Br0qkHVopi87s1lXIygHdLj/c66GqKdrHsXH4yprozQyftYT+FXA2vr8pF+ZOwldEqvz7mbEjhM9MXvwPA6Nlobuf2WWDal34NMY8Xjc7bhxuNpbXGnvUhH30zbI860I6u0flo4vymlNOey29V1X03ANNjmMhewkSGJ9+F8yZ/hAhz5/p8J+HQdFKoFVLF1QtfPSgvhXNwsmjK8lZ9krPRdBKC/jPTdmrARH67krYUm1ZtSaY3W2EQBJMQti9bemPKuQCwfSYTL+aDxFrB3BSb6bBrJt5Oj7to4ovpTVMp3X5kIOHRX1LD/J6EIH+u+XWHTpRuh3I3tmcjK/QD5IrAG+zgUrVr8QRr2q2dl/X2gMCugM+eizlUC0QrUTbyEpV9IN/5bRjnqDt5X4MynL/q4F4Nkn45EC+ffIsH1MOO/U+wZ26fkQCCIX+wPWIY9oMSDOv2Lw)
This Sancastle is created based on the [Image Based Lighting Sandcastle](https://sandcastle.cesium.com/index.html?src=Image-Based%20Lighting.html) in the documentation.
Contributor guide
Research direction
Start with the linked Sandcastle reproduction and compare it with the Image Based Lighting Sandcastle from the documentation. Read the 3D Tiles and image-based-lighting entry points involved in the reproduction, then verify the fix by loading the SampleData tileset with specularEnvironmentMaps without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100