How do you add post processing or Bloom through Needle in Blender? I was wondering how the integration worked for Bloom in the sample scene but that error blocks me. I couldn’t find any docs on post processing in Blender.
To address the CORS error you’re encountering, you can run a local server configured to correctly handle CORS requests. Since the issue involves fetching a script, you may want to check your local server or use a service like cors-anywhere
to bypass this restriction during testing.
For implementing post-processing effects such as Bloom in Blender using Needle Engine, you can refer to the scripts used by Needle Engine. Based on the details from the documents provided:
-
Setting Up the Bloom Effect:
- Create a
BloomEffect
using Needle’s Volume component system. - Code example for adding Bloom in Needle:
const bloom = new BloomEffect({ intensity: 1.5, threshold: 0.5, scatter: 0.5 }); const volume = new Volume(); volume.addEffect(bloom); gameObject.addComponent(volume);
- Create a
-
In Blender, if using Eevee, ensure Bloom settings are properly configured, this includes settings like intensity, threshold, and scatter. These settings are exported to Needle Engine as part of the post-processing effects (see the documentation) (see the documentation).
-
For more information or examples, check out the Needle Engine documentation for post-processing where built-in effects like Bloom are demonstrated (see features overview).
These steps will help you correctly integrate and utilize Bloom in Blender with Needle Engine’s capabilities, circumventing the CORS issue for practical development. Let me know if you need further details on setting up the local server or anything else!
24 replies left
thread_m1PyzxhmCcZSbUE7jFwKwFeX
Reply to this message to continue the conversation
Hi, the bot is right, we’re exporting Bloom when it’s setup in blender - have you tried the Blender Bloom sample? blender samples - Google Drive
I’ll try if it works still the same in 4.3 because I believe they wanted to change how this works in Blender
Edit: yes it changed in 4.3 but should work in <= 4.2
I got the sample to build in 4.2.4 after an error or two but the Bloom wasn’t working in the web preview. I’ll try again on monday as I have a Blender project I wanted to use the Bloom in myself.
Are there other post processing effects I can export from Blender like Depth of field and the auto focus helper for depth of field?
In Blender < 4.3 we supported Bloom and Ambient Occlusion but not DoF. But you can add these effects at runtime to the Volume/PostprocessingHandler using TS
I see that in Blender 4.2 they removed the bloom also as I am using Blender 4.2, I’ll just look into adding them via the PostProcessingHandler using TS as you say