Graphics3D
Graphics3D[primitives__, opts___]
represents 3D graphical image.
Use lines, polygons, cylinders, spheres, etc. to build up a 3D graphics scene
Graphics3D[{Blue, Cylinder[], Red, Sphere[{0, 0, 2}], Black, Thick,
Line[{{-2, 0, 2}, {2, 0, 2}, {0, 0, 4}, {-2, 0, 2}}],
Yellow, Polygon[{{-3, -3, -2}, {-3, 3, -2}, {3,
3, -2}, {3, -3, -2}}], Green, Opacity[.3],
Cuboid[{-2, -2, -2}, {2, 2, -1}]}]
Use plot functions to automatically create Graphics3D from different types of data
Plot3D[Sin[x y], {x, 0, 3}, {y, 0, 3}, ColorFunction -> "Rainbow", Mesh -> None]
Graphics3D[ Table[With[{p = {i, j, k}/5}, {RGBColor[p], Opacity[.75], Cuboid[p, p + .15]}], {i, 5}, {j, 5}, {k, 5}]]
Options
ImageSize
Accepts _Integer
or {width_Integer, height_Interger}
Lighting
Default is True
. It sets the default ambient lighting
ViewProjection
Sets the default camera for the scene. Default value is "Orthographic"
"Orthographic"
"Perspective"
Boxed
Draws a wireframe box around the objects in the scene. Default is False
.
BoxRatios
Sets the 3D aspect ratio of the whole scene. By the default Graphics3D does not rescale the scene. It accepts {sx_Real, sy_Real, sz_Real}
, where sx
are real positive numbers.
"SleepAfter"
Stops rendering after N milliseconds (1000
by the default). The rendering process can be wake up by any changes in camera or scene objects.
"Renderer"
Sets the rendering engine
"Rasterization"
default"PathTracing"
photorealistic images (high computing load to GPU). See examples here
"Lightmap"
Sets an URL to an HDR light-map. Currently only remote sources are supported.
"AcesToneMapping"
By the default is False
"BackgroundAlpha"
Sets the transparency of the background. By the default is 0
Options for "PathTracing"
If "Renderer"
is set to a photorealistic one, there are more options available to choose from
"Bounces"
Number of bounces for a ray (default is 5
)
"FadeDuration"
If there not enough samples, the renderer falls back to the rasterization and slowly fades into a low-res texture generated by a path-tracer. The default is 300
(milliseconds)
"RenderDelay"
Delay the path-tracer. The default is 100
"MinSamples"
The default is 5
"MultipleImportanceSampling"
By the default is False
. Set to True
to work with MeshFogMaterial, PointLight and SpotLight primitives.
"SamplesPerFrame"
The default is 1
"EnvironmentIntensity"
The artificial ambient lighting intensity. The default is 1
Dynamics
See primitives Sphere, Polygon and etc for it