OpenCLFractalRender3D
OpenCLFractalRender3D[width,height]
renders a three-dimensional fractal with image size being the specified width and height.
更多信息和选项
- The OpenCLLink application must be loaded using Needs["OpenCLLink"].
- OpenCLFractalRender3D requires your system to have OpenCLLink support. See "OpenCLLink Setup" for more information.
- The following options can be given:
-
AspectRatio 1. ratio of height to width of output ImageSize 256 width of output Method "Triplex" method used for fractal rendering; "Quaternion" creates a 4D fractal using quaternions with a 3D slice being rendered, "Triplex" creates a 3D fractal, and "Custom" uses the distance estimator in the "IterateIntersectFunction" option PerformanceGoal Automatic target rendering performance "BoundingRadius" 2. radius of bounding sphere of fractal "Color" {1., 0.35, 0.15} suface color of fractal in RGB real values "Device" Automatic device on which OpenCL computation is performed "Floor" True enable or disable floor in rendering "MaxIterations" 5 number of iterations used in calculating distance estimate "Multisampling" False whether to enable antialiasing; a number can be specified to denote the number of samples used per pixel for antialiasing "Platform" Automatic platform on which OpenCL computation is performed "Precision" 0.001 epsilon distance between surface and ray to be considered a hit "Shadows" True enable or disable ray tracing of shadows "SingleFrame" False display only one frame of rendering "SingleFrameParameters" None a list containing camera position, fractal parameters, and light position "SliderParameters" None specify lower bound, upper bound, starting value, and step value for the fractal parameters of Manipulate "SpecularExponent" 30. specular exponent of Phong shading of surface "Specularity" 0.65 specularity of the surface for Phong shading "TargetPrecision" "Single" precision used in calculation "Type" "Mandelbrot" type of fractal to be rendered
范例
打开所有单元关闭所有单元基本范例 (5)
First, load the OpenCLLink application:
This renders a Mandelbrot 3D fractal (Mandelbulb) and allows the user to adjust the parameters using Manipulate:
This defines the frame parameters: camera position, fractal parameters, and light position:
This renders a single frame of the 3D Julia set fractal, rendering it as an image:
This changes the surface color of the fractal:
This defines the frame parameters: camera position, fractal parameters, and light position (the same as the previous example):
This renders a single frame of the 3D Mandelbulb fractal, varying the maximum number of iterations:
This shows the result in a grid:
This renders a set of frames with varying fractal exponent:
This shows the result in a grid:
This defines the frame parameters: camera position, fractal parameters, and light position:
This renders a single frame of the 3D Julia set fractal, rendering it as an image:
文本
Wolfram Research (2010),OpenCLFractalRender3D,Wolfram 语言函数,https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLFractalRender3D.html.
CMS
Wolfram 语言. 2010. "OpenCLFractalRender3D." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLFractalRender3D.html.
APA
Wolfram 语言. (2010). OpenCLFractalRender3D. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLFractalRender3D.html 年