Creating a Prism

   2382   2   0
User Avatar
Member
27 posts
Joined: 6月 2016
オフライン
Hey all,

any idea how to create the light lines from the prism?

I've got dispersion working fine and understand that, but can't seem to get the separate light rays entering/exiting with respective colours?

Attachments:
orig_667525.jpg (528.7 KB)

User Avatar
Member
504 posts
Joined: 7月 2005
オフライン
Hi,

just as an idea:

you can create a random number for each ray, which can be used to map the ray onto different colors and indices of refraction.

Here is an experimental example (VEX).
Edited by Aizatulin - 2020年2月27日 15:10:08

Attachments:
prisma_dispersion.hipnc (111.4 KB)

User Avatar
Member
27 posts
Joined: 6月 2016
オフライン
Very cool! Thanks
  • Quick Links