Actual flare doesnt' show up in official lensflare example

lens-flare

#1

Hi,

I copied the exact code from the official three.js example and when I run the file no errors appear. However, the lensflare appears to be missing, as you can see here:

All I can see is the emitted light, with no actual source. What could be the cause? The code is exactly the same.

Thank you!


#2

just a thought, what if the lensflare textures are not successfully loading.


#3

be sure to check in your console for assets that might not be loaded. You may need to include XHR and ‘Requests’ in the filter. Also see that the request returned 200, not 404 or some other error.


#4

And read this: https://threejs.org/docs/#manual/en/introduction/How-to-run-things-locally
Three.js uses textures for flares in this example and in your case it loads them from your local disk.


#5

As far as I can see, there’s no reason why the textures shouldn’t load. All my paths are correct, and I’ve changed Chrome’s local files security policy, so all my textures from other projects load well. Could the lensflare code itself have an issue?


#6

When I include those filters, all I see is “1 hidden”. I don’t know what that means, or how to unhide it.


#7

Try Firefox :slight_smile: