Ray tracing in the movie Interstellar

Click For Summary

Discussion Overview

The discussion revolves around the application of ray tracing in the context of the movie Interstellar, specifically focusing on the use of Boyer-Lindquist coordinates for the Kerr metric and the derivation of related equations for light rays. Participants explore theoretical aspects, numerical implementations, and programming challenges related to these concepts.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant references the use of Boyer-Lindquist coordinates for the Kerr metric and asks about the derivation of ray equations related to light rays' source points on the celestial sphere.
  • Another participant mentions that Kraniotis et al. derive geodesic equations in Boyer-Lindquist coordinates but notes that they do not complete the transition to a local frame.
  • Several participants express apprehension about the complexity of the equations and their ability to follow the derivations.
  • One participant shares their experience of implementing the equations in Python, indicating a practical application related to maximum time dilation around a Kerr black hole.
  • Another participant provides a link to a related discussion on time travel involving black holes.
  • Participants discuss programming issues encountered while running a Python script related to the Kerr metric, including error messages and debugging advice.
  • One participant successfully resolves a programming issue after receiving guidance from another participant.

Areas of Agreement / Disagreement

Participants generally share a common interest in the theoretical and practical aspects of ray tracing in the context of the Kerr metric, but there is no explicit consensus on the derivation of the equations or the programming challenges faced.

Contextual Notes

Some participants express uncertainty about the derivation of equations and the implementation details in Python, indicating potential limitations in their understanding or the resources available to them.

Who May Find This Useful

Readers interested in theoretical physics, ray tracing, black hole physics, and programming related to general relativity may find this discussion valuable.

etotheipi
https://arxiv.org/abs/1502.03808

They are using Boyer-Lindquist coordinates for the Kerr metric. As far as I understand they also introduced a camera-fixed basis defining spherical coordinates ##\theta_{cs}## and ##\phi_{cs}## to keep track of the directions of the light rays relative to the camera. Then from this they worked out the canonical momenta of the light rays and could finally solve numerically the following ray equations to figure out the source point ##(\theta', \phi')## of the rays on the celestial sphere:

1620237798354.png


I would like to know how these equations are derived? There is a reference to Gravitation by Misner/Thorne/Wheeler but I don't have that and don't think I'd know where to look in any case!
 
Physics news on Phys.org
Not sure if this is exactly what you're looking for, but Kraniotis et al derive geodesic equations in Boyer-Linquist coordinates. I don't think they do the last step into a local frame, but that doesn't seem too hard if you have the camera worldline.
 
  • Wow
Likes   Reactions: etotheipi
Ibix said:
Not sure if this is exactly what you're looking for, but Kraniotis et al derive geodesic equations in Boyer-Linquist coordinates. I don't think they do the last step into a local frame, but that doesn't seem too hard if you have the camera worldline.
Gosh, that looks slightly scary! Thanks, okay I'll try and follow it. But I'm worried that I won't be able to get very far. :nb)
 
etotheipi said:
Gosh, that looks slightly scary! Thanks, okay I'll try and follow it. But I'm worried that I won't be able to get very far. :nb)
I must say that I just implemented the equations in python...
 
  • Like
Likes   Reactions: etotheipi
Ibix said:
I must say that I just implemented the equations in python...
Wait actually? That's sick! What for (if it's not confidential :wink:)?
 
Fun, what else? :smile:

We did have a go at trying to work out the maximum time dilation you could get out of free-falling round a Kerr black hole. I used it for that - I think it was Steven Daryl who asked the question if you want to go looking for it.
 
Hey Ibix I don't know if I'm being slightly stupid but I tried to run your thing and I got:

Code:
Trying escape trajectory - L=0.0
Trying escape trajectory - L=19.77811071962939
Found - beginning optimisation
Traceback (most recent call last):
File "kerr.py", line 189, in <module>
optimiseLaunches(KerrEquatorialSpacetime(1,0.99),4)
File "kerr.py", line 176, in optimiseLaunches
optimiseLaunch(st,E,Lcra,Lesc,"Best_"+str(E)+"_Max_")
File "kerr.py", line 143, in optimiseLaunch
orbitData=st.orbit(TIMELIKE,INWARD,E,Ltry,10*RM,15*RM,0.001,1000)
NameError: name 'RM' is not defined
 
Somewhere between the st=KerrOrbitalSpacetime(whatever) line and the st.orbit(whatever) line, add the line RM=st.radiusM(). (Edit: or just copy the whole program from the thread again - the bug isn't in that version *cough*.)

Note that I wrote that program in python 2. I guess you've got python 3. You may find it doesn't work, although the differences aren't huge for this kind of programming.
 
Last edited:
  • Like
Likes   Reactions: Nugatory and etotheipi
  • #10
Thanks! It works, wooooo 😄

1620242994812.png
 
  • Like
Likes   Reactions: Leo Liu and Ibix

Similar threads

  • · Replies 40 ·
2
Replies
40
Views
22K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 28 ·
Replies
28
Views
5K
  • · Replies 29 ·
Replies
29
Views
6K