Platonic Solids

From Ultrafractal Wiki

Jump to: navigation, search

Platonic Solids is a Transformation in sam.ufx.


Contents

What is it?

This transformation draws the five Platonic Solids. These are the five polyhedron which admit one type of regular polygons as sides. They are the tetrahedron, the cube, the octahedron, the dodecahedron and the icosahedron. Some pseudo 3D tools such as lightning and a kind of fog effect are available. The object rotation/translation part has been borrowed to Frederik Slijkerman's well known 3D mapping, so these parameters work the same.


Parameters

Polyhedron

Choose your polyhedron...

Side Type

The sides can be either solid, "framed" (the inside is transparent) or "unframed" (the border is transparent). The Mix types set some sides to "Frame" and other ones to "Solid".

Mode

  • Mapping : The standard mode. The image is mapped on the sides of the polyhedron.
  • Lightning : It should be used on a "Pixel" formula with the "Gradient" coloring in Standard.ucl. A black and white gradient is appropriate. It simulate the lightning produced by a source set at the point defined by the "Light Source (x/y/z)" parameters. You may have to change the color density to get a convincing result.
  • Ghost : It should also be used on "Pixel" with the "Gradient" coloring. The distance to the observer determine the color of the pixel. With some practice, it can be used to give a nice volume impression. It could also produce a kind of fog effect.
  • Sides A/B/C/D/E : Allow you to color some tiles separately (on some polyhedrons, not all of these parameters will have an effect).

X/Y/Z Rotation/Translation

These parameters are the same as in the "3D Mapping" transformation. The x axis is horizontal, the y axis vertical and the z axis perpendicular to the screen.

Mapping Center/Rotation/Magnification

Define which part of the original image will be mapped on the sides.

Frame Width

The frame width for the "Frame", "Unframe" and "Mixt" side types.

Light Source (x/y/z)

The location of the light source for the "Lightning" mode.


Example

Image:Cube.jpg

Copyright 2001 Samuel Monnier


cube {
; Copyrights 2001 S. Monnier
; http://www.envy.nu/s31415/index/index.htm
fractal:
  title="cube" width=600 height=600 author="Samuel" created="May 28, 2001"
  numlayers=4
layer:
  mapalpha=0 method=multipass caption="New Layer 4" opacity=100 visible=yes
  alpha=yes mergemode=overlay
mapping:
  center=0.00401908363444444444/-0.0431402920465555556
  magn=2.41312741312741313 angle=0 numtransforms=2
transform:
  filename="sam.uxf" entry="PlatonicSolids" p_shape="Cube (Hexahedron)"
  p_mode="Solid" p_mode2="Mapping" p_rotx=45 p_roty=34 p_rotz=0 p_transx=0
  p_transy=0 p_transz=5 p_center=0/0 p_rot=0 p_magn=1 p_fwidth=0.02 p_l1=-3
  p_l2=4 p_l3=2
transform:
  filename="sam.uxf" entry="PolygonalScissor" p_order=4 p_inout="Inside"
  p_c=0/0 p_rot=0 p_size=0.48
formula:
  filename="sam.ufm" entry="pixeldis1" maxiter=100 percheck=normal
inside:
  transfer=none repeat=yes
outside:
  filename="sam.ucl" entry="SFBMII" transfer=linear repeat=yes
  p_noise="Perlin" p_noisep=0.2/0.5 p_f1="Original" p_fp1=1/0
  p_f2="Original" p_fp2=1/0 p_mode="Normal" p_beta=1 p_power=2 p_pp=0/1
  p_pptype="Cartesian" p_ppp=1/1 p_size=0.3 p_rot=28 p_mstep=1 p_fmm=40/1
  p_interp="Logarythmic" p_cc=0 p_cbl=1 p_ctl=0 p_cbr=0 p_ctr=0 p_eps=0.006
  p_seed=123094
gradient:
  smooth=no numnodes=2 index=97 color=13158600 index=221 color=0
layer:
  method=multipass caption="Layer 1" opacity=100 visible=yes alpha=no
  mergemode=multiply
mapping:
  center=0.00401908363444444444/-0.0431402920465555556
  magn=2.41312741312741313 angle=0 numtransforms=1
transform:
  filename="sam.uxf" entry="PlatonicSolids" p_shape="Cube (Hexahedron)"
  p_mode="Solid" p_mode2="Lightning" p_rotx=45 p_roty=34 p_rotz=0
  p_transx=0 p_transy=0 p_transz=5 p_center=0/0 p_rot=0 p_magn=1
  p_fwidth=0.02 p_l1=-0.2 p_l2=1 p_l3=2
formula:
  filename="sam.ufm" entry="pixeldis1" maxiter=100 percheck=normal
inside:
  transfer=none repeat=yes
outside:
  filename="Standard.ucl" entry="Gradient" transfer=linear repeat=yes
  p_type="Linear"
gradient:
  smooth=no numnodes=2 index=177 color=0 index=249 color=16777215
layer:
  mapalpha=0 method=multipass caption="New Layer 1" opacity=67 visible=yes
  alpha=yes
mapping:
  center=0.00401908363444444444/-0.0431402920465555556
  magn=2.41312741312741313 angle=0 numtransforms=2
transform:
  filename="sam.uxf" entry="PlatonicSolids" p_shape="Cube (Hexahedron)"
  p_mode="Solid" p_mode2="Mapping" p_rotx=45 p_roty=34 p_rotz=0 p_transx=0
  p_transy=0 p_transz=5 p_center=0/0 p_rot=0 p_magn=1 p_fwidth=0.02 p_l1=-3
  p_l2=4 p_l3=2
transform:
  filename="sam.uxf" entry="PolygonalScissor" p_order=4 p_inout="Inside"
  p_c=0/0 p_rot=0 p_size=0.48
formula:
  filename="sam.ufm" entry="pixeldis1" maxiter=100 percheck=normal
inside:
  transfer=none repeat=yes
outside:
  filename="Standard.ucl" entry="Gradient" transfer=linear repeat=yes
  p_type="Linear"
gradient:
  smooth=no numnodes=2 index=64 color=0 index=341 color=16777215
layer:
  mapalpha=0 method=multipass caption="New Layer 2" opacity=100 visible=yes
  alpha=yes mergemode=softlight
mapping:
  center=0.00401908363444444444/-0.0431402920465555556
  magn=2.41312741312741313 angle=0 numtransforms=1
transform:
  filename="sam.uxf" entry="PlatonicSolids" p_shape="Cube (Hexahedron)"
  p_mode="Solid" p_mode2="Mapping" p_rotx=45 p_roty=34 p_rotz=0 p_transx=0
  p_transy=0 p_transz=5 p_center=0/0 p_rot=0 p_magn=0.25 p_fwidth=0.02
  p_l1=-3 p_l2=4 p_l3=2
formula:
  filename="sam.ufm" entry="pixeldis1" maxiter=100 percheck=normal
inside:
  transfer=none repeat=yes
outside:
  filename="sam.ucl" entry="SFBMII" transfer=linear repeat=yes
  p_noise="Perlin" p_noisep=0.2/0.5 p_f1="Sharp" p_fp1=1/0 p_f2="Original"
  p_fp2=1/0 p_mode="Normal" p_beta=1 p_power=2 p_pp=0/1
  p_pptype="Cartesian" p_ppp=1/1 p_size=1 p_rot=28 p_mstep=1 p_fmm=40/1
  p_interp="Logarythmic" p_cc=0 p_cbl=1 p_ctl=0 p_cbr=0 p_ctr=0 p_eps=0.006
  p_seed=123094
gradient:
  smooth=no numnodes=2 index=262 color=2171169 index=376 color=14606046
}
  
Personal tools