We developed two virtual reality demonstrations for electromagnetism. For statics, we use spherical building blocks and superposition to calculate the electric field of a user-generated configuration of charge. The electric field information is displayed on a three-dimensional grid using vector arrows. A second demonstration displays field information for electromagnetic fields generated by a particle moving along a user-generated path (at arbitrary speed). We used the Unity game creation engine to efficiently develop the demonstrations, and tested them on an HTC Vive VR headset with handheld controllers.

1.

The static electric field, for example, may only be a book-keeping device, or it may be a real physical entity from the point of view of Maxwell's E&M. In the context of a gravitational field, the electrostatic energy density generates a gravitational field that is detectable by neutral test charges, establishing, in a context external to E&M, that the fields and their energy content are real.

2.
Alan
Wolf
,
Stephen J.
Van Hook
, and
Eric
Weeks
, “
Field line diagrams don't work
,”
Am. J. Phys.
64
(
6
),
714
723
(
1996
).
3.
F.
Herrmann
,
H.
Hauptmann
, and
M.
Suleder
, “
Representations of electric and magnetic fields
,”
Am. J. Phys.
68
(
2
),
171
174
(
2000
).
4.
T. E.
Freeman
, “
One-, two-, or three-dimensional fields?
,”
Am. J. Phys.
63
(
3
),
273
274
(
1995
).
5.
John W.
Belcher
and
Stanislaw
Olbert
, “
Field line motion in classical electromagnetism
,”
Am. J. Phys.
71
(
3
),
220
228
(
2003
).
6.
Roger Y.
Tsien
, “
Pictures of dynamic electric fields
,”
Am. J. Phys.
40
,
46
56
(
1972
).
7.
Brian
Cabral
and
Casey
Leedom
, “
Imaging vector fields using line integral convolution
,” in
SIGGRAPH 93 Proceedings of the 20th annual conference on Computer graphics and interactive techniques (1993)
, pp.
263
270
.
8.
Martin
Falk
and
Daniel
Weiskopf
, “
Output-sensitive 3D line integral convolution
,”
IEEE Trans. Visualization Comp. Graph.
14
(
4
),
820
834
(
2008
).
9.
John C.
Hamilton
and
Judah L.
Schwartz
, “
Electric fields of moving charges: A series of four film loops
,”
Am. J. Phys.
39
,
1540
1542
(
1971
).
10.
R. H.
Good
, “
Dipole radiation: A film
,”
Am. J. Phys.
49
(
2
),
185
187
(
1981
).
13.

This is ironic, in the sense that three dimensional visualization would allow the correct density scaling of magnitude, but is difficult to see once immersed in the visualization.

14.
M. C.
Salzman
,
M. C.
Dede
, and
B.
Loftin
, “
ScienceSpace: Virtual realities for learning complex and abstract scientific concepts
,” in
Proceedings of IEEE Virtual Reality Annual International Symposium (1996)
, pp.
246
253
.
15.
Johanna
Pirker
,
Isabel
Lesjak
, and
Christian
Gürl
, “
Maroon VR: A room-scale physics laboratory experience
,” paper presented at the
17ᵗʰ IEEE International Conference on Advanced Learning Technologies
, ICALT2017, 2017. See <https://jpirker.com/maroon/>.
16.
Scott
Greenwald
, “
The electrostatic playground
,” <https://www.media.mit.edu/projects/vr-physics-lab/overview/>, see also Scott Greenwald, “The equipped explorer: Virtual reality as a medium for learning,” Ph.D. thesis, MIT Media lab (
2017
).
17.
See Scott Greenwald's <https://www.youtube.com/watch?v=8xMGSR4ZxHs>
18.
There are many useful resources for Unity itself, notably:
Joe
Hocking
,
Unity in Action: Multiplatform Game Development in C# with Unity 5
, (
Manning Publications
,
Shelter Island, NY
,
2015
); For some VR-specific tools, the authors used VRTK, available at: <https://vrtoolkit.readme.io> and documentation found there.
19.
J.
Franklin
,
Classical Field Theory
(
Cambridge U. P.
,
Cambridge
,
2017
).
21.
David J.
Griffiths
,
Introduction to Electrodynamics
, 4th ed. (
Pearson
,
San Francisco
,
2013
).
22.
Dominic
McGrath
,
Margaret
Wegener
,
Timothy J.
McIntyre
,
Craig
Savage
, and
Michael
Williamson
, “
Student experiences of virtual reality: A case study in learning special relativity
,”
Am. J. Phys.
78
,
862
(
2010
).
AAPT members receive access to the American Journal of Physics and The Physics Teacher as a member benefit. To learn more about this member benefit and becoming an AAPT member, visit the Joining AAPT page.