Creating a Prism
1870
2
0
-
- ludwigvon
- Member
- 27 posts
- Joined: June 2016
- Offline
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)
-
- Aizatulin
- Member
- 495 posts
- Joined: July 2005
- Offline
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 - Feb. 27, 2020 15:10:08
Attachments:
prisma_dispersion.hipnc (111.4 KB)
-
- ludwigvon
- Member
- 27 posts
- Joined: June 2016
- Offline
Very cool! Thanks