I Ray tracing in the movie Interstellar

Click For Summary
The discussion centers on the use of Boyer-Lindquist coordinates for the Kerr metric in ray tracing for the movie Interstellar. Participants explore the derivation of ray equations and the implementation of these equations in Python, highlighting the complexity involved. One user mentions using the equations to analyze time dilation effects around a Kerr black hole. There are also technical exchanges about coding issues and compatibility between Python versions. Overall, the conversation emphasizes the intersection of theoretical physics and practical programming in simulating black hole behavior.
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 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 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 Nugatory and etotheipi
  • #10
Thanks! It works, wooooo 😄

1620242994812.png
 
  • Like
Likes Leo Liu and Ibix

Similar threads

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