Environmental lighting - setting hdr map #202
-
Hello Thomas, thank you for adding support for setting custom hdr maps, we are thrilled with this feature. Unfortunately, I'm not able to import any own hdr map I'm trying to use. I have downloaded multiple hdr files from Poly Haven and first tried to add it to resources raw folder, but it doesn't work with it, it throws some numeric exception when trying to read from this location. Then I tried to add the hdr files to public github repo and reference the url in the code, but the hdr file isn't loaded, the model is just black. When I use the two maps from your environmental lights sample, it's working. Can you please help me to find out, how to use my own hdr files? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, I have to duplicate the doc for each file loading functions but here are the infos about the fileLocation format. Your GitHub file hosting can only be accessed from outside if they are on github.io (from what I remember) |
Beta Was this translation helpful? Give feedback.
Hi,
I have to duplicate the doc for each file loading functions but here are the infos about the fileLocation format.
sceneform-android/core/src/main/java/com/gorisse/thomas/sceneform/util/ResourceLoader.kt
Lines 25 to 41 in ac8efbb