I’m trying to render a TV screen in eevee, in a dark environment with a little bit of volumetric scattering. I currently have an area light in front of the screen to simulate the light emitted by the screen, but it would be nice to be able to use the video texture that I’m using for the screen to set the colour and the brightness of the area light. Is that possible any way?
Interesting! Please post your results when you find a solution. I’m not very well experienced in eevee, but can’t you set the texture on an emission shader and disable camera visibility? (or would that only work in cycles?)
I can’t help with the drivers but, if you want bounce light from a solid object and your emissive object is in screen space and isn’t fully occluded maybe this would work: Fake SSGI in Eevee There’s a blend file bit futher down.
That looks really good, but really I’m just trying to get the emission shader to create some nice beams of light in the volumetrics. That said, having a load of area lights for multiple TV screens (I’m experimenting with a video wall at the moment) slow eevee down quite a lot, so maybe faking the volumetric effect from each screen would be a better way to go about it
Only way I know to get samples from texture to numeric data is animation nodes (extra nodes branch). First time actually using it so this is the best solution I could come up with:
Output the color rgb info to empty’s location (coudn’t get AN to change object properties for whatever reason)
Add drivers to light’s rgb values from empty’s transforms.
Getting the average would just be getting multiple samples and dividing. Don’t know if there’s better built in fuctionality in there for it, google gives decent amount of results, but I didn’t dive deeper into those.
Blend file (requires animation nodes with extra nodes):
Edit: I also had trouble with AN texture input seemingly randomly stop reading values from the image sequence, changing any property in the texture tab fixed it.