Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.29 KB

README.md

File metadata and controls

29 lines (21 loc) · 1.29 KB

Matlab codes

For simulation, you can start from ray_tracing_main.m. And there also other codes for visualization data produced by c++ program.

NOTE: It is only a prototype for testing my algorithms. Later developing will be based on c++ codes.

What can these codes do?

  • It can do ray tracing with several specific ice crystal shape (see next section) and display the result.
  • Arbitrary orientation of crystals, including uniform distributed in an angle range, uniform distributed on a sphere, Gaussian distributed with given mean and standard deviation.
  • Multi-wave result visualization. It reads the binary file produced by C++ version and visulize the result. It depends on my another project Spectrum Renderer.
  • Crystal shape visualization.

Supported ice crystal shape.

  • Hexagonal prism/plate. Shape parameters are: ratio = height / radii.
  • Pyramidal. Shape parameters are: ratios = [height1, height2, height3] / radii, where heights are measured along c-axis, from top to bottom.

TODO list

  • Add more crystal shapes.
  • Add custom crystal shapes. Maybe compact with .obj file format.