OpenCLFractalRender3D


renders a three-dimensional fractal with image size being the specified width and height.

更多信息更多信息

  • The OpenCLLink application must be loaded using Needs["OpenCLLink"].
  • 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; creates a 4D fractal using quaternions with a 3D slice being rendered, creates a 3D fractal, and uses the distance estimator in the 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)基本范例 (5)

First, load the OpenCLLink application:

In[1]:=
Click for copyable input

This renders a Mandelbrot 3D fractal (Mandelbulb) and allows the user to adjust the parameters using Manipulate:

In[2]:=
Click for copyable input
In[3]:=
Click for copyable input

This defines the frame parameters: camera position, fractal parameters, and light position:

In[1]:=
Click for copyable input

This renders a single frame of the 3D Julia set fractal, rendering it as an image:

In[2]:=
Click for copyable input
Out[2]=

This changes the surface color of the fractal:

In[3]:=
Click for copyable input
Out[3]=

This defines the frame parameters: camera position, fractal parameters, and light position (the same as the previous example):

In[1]:=
Click for copyable input

This renders a single frame of the 3D Mandelbulb fractal, varying the maximum number of iterations:

In[2]:=
Click for copyable input

This shows the result in a grid:

In[3]:=
Click for copyable input
Out[3]=

This renders a set of frames with varying fractal exponent:

In[1]:=
Click for copyable input

This shows the result in a grid:

In[2]:=
Click for copyable input
Out[2]=

This defines the frame parameters: camera position, fractal parameters, and light position:

In[1]:=
Click for copyable input

This renders a single frame of the 3D Julia set fractal, rendering it as an image:

In[2]:=
Click for copyable input
Out[2]=
New to Mathematica? Find your learning path »
Have a question? Ask support »