Author Topic: Dispersion of light  (Read 2672 times)

2019-11-15, 17:16:55

chado

  • Active Users
  • **
  • Posts: 7
    • View Profile
Hello, everyone!
I have a question. Does anybody know how to make a dispersion of light from headlights?

2019-11-15, 17:51:39
Reply #1

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12711
  • Marcin
    • View Profile
In reality those are caustics, so you could model the headlight, enable dispersion for the glass (there is a dispersion checkbox inside a Corona Mtl), and enable caustics in the material and in Render Setup > Performance. But this may be quite expensive to render.
Another option is faking it somehow, for example using multiple colored lights.
Or you could try this: https://forum.corona-renderer.com/index.php?topic=11630.0

Good luck! [tm]
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2019-11-15, 19:07:22
Reply #2

Br0nto

  • Active Users
  • **
  • Posts: 47
    • View Profile
For my headlights I added an invisible light blocker preventing the "real" lights from shining through, and then faked the headlight beams with IES lights positioned just outside the headlight glass. Then it's just a matter of finding an IES that looks right for your headlight type. I just eyeballed it, since I wouldn't know where to start to find an exact headlight spec IES. You could also use IES profiles for the spill near the car, while using larger, more normal beams of light for the primary focus.

2019-11-16, 07:08:54
Reply #3

chado

  • Active Users
  • **
  • Posts: 7
    • View Profile
Thanks for answers!

Br0nto, I used IES, but I don't know how to make fake dispersion.
I should use 2 or 3 IES with a different colors?

2019-11-16, 15:46:25
Reply #4

sprayer

  • Active Users
  • **
  • Posts: 794
    • View Profile
Br0nto
You can make own IES for example with this small program from Karba
http://lightonline.ru/files/Programs/IESGen4.rar

2019-11-18, 15:34:25
Reply #5

Br0nto

  • Active Users
  • **
  • Posts: 47
    • View Profile
Br0nto, I used IES, but I don't know how to make fake dispersion.
I should use 2 or 3 IES with a different colors?

By "fake" I meant that the only light was coming from the IES and spotlights, rather than from any actual caustic/refraction effect coming from inside the headlights. I'm honestly not sure what you mean in this context. Both my lights were a similar color so it would appear that they are parts of the same light.

Br0nto
You can make own IES for example with this small program from Karba
http://lightonline.ru/files/Programs/IESGen4.rar

Nifty, thanks!

2019-11-23, 17:00:20
Reply #6

chado

  • Active Users
  • **
  • Posts: 7
    • View Profile
Thanks for all!
I will try & show you my results later...