prysm icon indicating copy to clipboard operation
prysm copied to clipboard

Raytracing

Open brandondube opened this issue 2 years ago • 2 comments

This is the catch-all bucket for things needed for prysm to do raytracing

brandondube avatar Aug 15 '21 17:08 brandondube

Heya, I'd like to play around with prysm's raytracer for modeling a reflective system I'm working with. Do you have an example raytrace I could take a look at to help me get started?

zhangderby avatar Oct 11 '23 16:10 zhangderby

There are actually two secret tutorials hidden in the docs source,

https://github.com/brandondube/prysm/blob/master/docs/source/tutorials/Raytracing-Fundamentals.ipynb

https://github.com/brandondube/prysm/blob/master/docs/source/tutorials/Raytracing-OAP-Trains.ipynb

However I think neither actually runs at the moment, due to a breaking change in the plotting functions.

Unfortunately the raytracer is not very useful right now. It can give you the position and direction cosines of arbitrary rays sequentially traced through a system, but if you want to do most anything useful like make an OPD map, it does not have the logic to find EP/XP reference spheres, or do the equally inclined chords talked about in Hopkins' 50+ page monster of a raytracing paper.

If you wanted to add those I would merge the PR in a heartbeat ;)

brandondube avatar Oct 12 '23 03:10 brandondube