We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Loading HDR texture on Runtime

Home Forums General Questions Loading HDR texture on Runtime

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #71562
    rodrigogama
    Participant

    I’m attempting to implement a feature where users can drop an .hdr file onto the page, and the scene’s HDR will be replaced with it. I already have a working file drop system; when users drop a .glb file, the scene loads at runtime.

    However, the logic for replacing the scene’s environment HDR doesn’t seem to work, as nothing happens after dropping the HDR file.

    Are there any limitations to this, or am I doing something wrong?

    Attachments:
    You must be logged in to view attached files.
    #71572
    kdv
    Participant

    The extention can be HDR and in this case the condition won’t be met.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #71588
    rodrigogama
    Participant

    I added the print statement just to make sure the condition was met, and it printed successfully when I dragged an HDR file.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.