Hi fellow 3Jser,
I am trying to figure out how to animate change in the intensity(power) of point light and export this animation to a GLTF/GLB file format and import it into my web portfolio.
What I want to do is I want the light to go from 100w to 50w to 100w in a cycle as part of 5 second animation but whenever I export my blender file as glb with necessary checkbox selected I still haven’t had any luck .
test.blend (892.1 KB)
Is there anyone who can help me figure out what am I doing wrong.
Thanks Lots in Advance.
I don’t think you’ll be able to export that from Blender sorry, at least not without writing a custom Blender export script. It’s necessary to animate the light intensity in three.js.
1 Like
I understand. Though have you seen any examples for custom light animations in threejs that could provide some basis what I am trying to achieve?
Also do you know what is limiting it?
This example is one you could review:
https://threejs.org/examples/?q=animation#misc_animation_keys
In the same way it animates opacity over time, you could create a keyframe track modifying light intensity over time. Tools like https://www.theatrejs.com/ can also be used in the browser with three.js to animate specific properties in a more Blender-like workflow.