OpenCLLink`
OpenCLLink`

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:
  • AspectRatio1.ratio of height to width of output
    ImageSize256width 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
    PerformanceGoalAutomatictarget 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"Automaticdevice on which OpenCL computation is performed
    "Floor"Trueenable or disable floor in rendering
    "MaxIterations"5number of iterations used in calculating distance estimate
    "Multisampling"Falsewhether to enable antialiasing; a number can be specified to denote the number of samples used per pixel for antialiasing
    "Platform"Automaticplatform on which OpenCL computation is performed
    "Precision"0.001epsilon distance between surface and ray to be considered a hit
    "Shadows"Trueenable or disable ray tracing of shadows
    "SingleFrame"Falsedisplay only one frame of rendering
    "SingleFrameParameters"Nonea list containing camera position, fractal parameters, and light position
    "SliderParameters"Nonespecify 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.65specularity 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:

Neat Examples  (1)

A custom distance-estimator function in OpenCL code:

This renders the fractal using the above function:

Wolfram Research (2010),OpenCLFractalRender3D,Wolfram 语言函数,https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLFractalRender3D.html.

文本

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 年

BibTeX

@misc{reference.wolfram_2024_openclfractalrender3d, author="Wolfram Research", title="{OpenCLFractalRender3D}", year="2010", howpublished="\url{https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLFractalRender3D.html}", note=[Accessed: 24-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_openclfractalrender3d, organization={Wolfram Research}, title={OpenCLFractalRender3D}, year={2010}, url={https://reference.wolfram.com/language/OpenCLLink/ref/OpenCLFractalRender3D.html}, note=[Accessed: 24-November-2024 ]}