Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Interactively visualize the camera setup relative to the scene and lighting of 3D graphics
ResourceFunction["Visualize3DView"][graphics] generates an interactive visualization of the 3D graphics illustrating the various viewing parameters. |
Visualize the 3D view of a simple Graphics3D expression under default viewing options:
| In[1]:= |
| Out[1]= | ![]() |
An additional visualization of the screen space ViewCenter is displayed when 3D Graphic is panned (by holding Shift):
| In[2]:= | ![]() |
| Out[2]= | ![]() |
The visualization works on the output of Plot3D:
| In[3]:= |
| Out[3]= | ![]() |
PointLight is visualized as points in the color of the lights:
| In[4]:= |
| Out[4]= | ![]() |
DirectionalLight is visualized as arrows with the color of the lights, placed just outside the PlotRange:
| In[5]:= | ![]() |
| Out[6]= | ![]() |
Interactively investigate the setup of the camera relative to a scene to understand the rendered image:
| In[7]:= | ![]() |
| Out[10]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License