8. Scene Objects
Metadata
Strategy
abstract
class Strategy
extends Object
StrategySimple
class StrategySimple
extends Strategy
StrategyPreview
class StrategyPreview
extends Strategy
| property | type | default | description |
| start | integer | 8 | |
| end | integer | 1 | |
StrategyAntialiasUniform
class StrategyAntialiasUniform
extends Strategy
| property | type | default | description |
| threshold | double | 0.3 | |
| strength | integer | 3 | |
XYZPigment
class XYZPigment
extends Pigment
| property | type | default | description |
| pattern | Pattern | | |
| colormap | ColorMap | | |
Pigment
abstract
class Pigment
extends Object
SolidColorPigment
class SolidColorPigment
extends Pigment
| property | type | default | description |
| color | color | <rgbt <1, 1, 1, 0> | |
MultiLayerPigment
class MultiLayerPigment
extends Pigment
| property | type | default | description |
| _layers | Pigment | | |
| filter | double | 1 | |
ColorMapFont
class ColorMapFont
extends ColorMap
| property | type | default | description |
| font | string | | |
| text | string | | |
| color1 | color | | |
| color2 | color | | |
ColorMap
abstract
class ColorMap
extends Object
SimpleColorMap
class SimpleColorMap
extends ColorMap
| property | type | default | description |
| color1 | color | <rgbt <0, 0, 0, 0> | |
| color2 | color | <rgbt <1, 1, 1, 0> | |
ColorMapListEntry
class ColorMapListEntry
extends Object
| property | type | default | description |
| value | double | 0 | |
| color | color | <rgbt <1, 1, 1, 0> | |
ColorMapList
class ColorMapList
extends ColorMap
| property | type | default | description |
| _entry | ColorMapListEntry | | |
ColorMapBitmap
class ColorMapBitmap
extends ColorMap
| property | type | default | description |
| image | string | | |
| backgroundcolor | color | <rgb <1, 1, 1> | |
ColorMap2DFunction
class ColorMap2DFunction
extends ColorMap
| property | type | default | description |
| function | Function2D | | |
| background | color | <rgbt <0, 0, 0, 0> | |
Function2D
class Function2D
extends Object
| property | type | default | description |
| colormap | ColorMap | | |
Function2DMandelbrot
class Function2DMandelbrot
extends Function2D
| property | type | default | description |
| colormap | ColorMap | | inherited |
| rmin | double | -2 | |
| imin | double | -1.3 | |
| rmax | double | 1 | |
| imax | double | 1.3 | |
| iteration | integer | 32 | |
Function2DJulia
class Function2DJulia
extends Function2D
| property | type | default | description |
| colormap | ColorMap | | inherited |
| rmin | double | -2 | |
| imin | double | -2 | |
| rmax | double | 2 | |
| imax | double | 2 | |
| iteration | integer | 32 | |
| rbase | double | -0.1 | |
| ibase | double | 0.8 | |
Pattern
abstract
class Pattern
extends Object
| property | type | default | description |
| transform | Transformation | | |
CheckerPattern
class CheckerPattern
extends Pattern
| property | type | default | description |
| transform | Transformation | | inherited |
| size | double | 1 | |
GradientPattern
class GradientPattern
extends Pattern
| property | type | default | description |
| transform | Transformation | | inherited |
| direction | vector | <1, 0, 0> | |
| noise | double | 0 | |
| turbulence | double | 0 | |
| lambda | double | 2.5 | |
| octaves | double | 10 | |
| omega | double | 0.5 | |
OnionPattern
class OnionPattern
extends Pattern
| property | type | default | description |
| transform | Transformation | | inherited |
| noise | double | 0 | |
| turbulence | double | 0 | |
| lambda | double | 2.5 | |
| octaves | double | 10 | |
| omega | double | 0.5 | |
WoodPattern
class WoodPattern
extends Pattern
| property | type | default | description |
| transform | Transformation | | inherited |
| noise | double | 0.2 | |
| turbulence | double | 0 | |
| lambda | double | 2.5 | |
| octaves | double | 10 | |
| omega | double | 0.5 | |
| xturbulence | double | 0 | |
| yturbulence | double | 0 | |
| zperturbation | double | 0.9 | |
| zfrequency | double | 2 | |
| zoffset | double | 0 | |
| znoise | double | 0.7 | |
BozoPattern
class BozoPattern
extends Pattern
| property | type | default | description |
| transform | Transformation | | inherited |
| noise | double | 0.2 | |
| turbulence | double | 0 | |
| frequency | double | 1 | |
MarblePattern
class MarblePattern
extends Pattern
| property | type | default | description |
| transform | Transformation | | inherited |
| noise | double | 0.2 | |
| turbulence | double | 0 | |
| frequency | double | 1 | |
DentPattern
class DentPattern
extends Pattern
| property | type | default | description |
| transform | Transformation | | inherited |
| noise | double | 0.2 | |
| turbulence | double | 0 | |
| frequency | double | 1 | |
CylindricPattern
class CylindricPattern
extends Pattern
| property | type | default | description |
| transform | Transformation | | inherited |
RadialPattern
class RadialPattern
extends Pattern
| property | type | default | description |
| transform | Transformation | | inherited |
PlanarPattern
class PlanarPattern
extends Pattern
| property | type | default | description |
| transform | Transformation | | inherited |
| tile | boolean | true | |
Normal
abstract
class Normal
extends Object
| property | type | default | description |
| transform | Transformation | | |
PatternNormal
class PatternNormal
extends Normal
| property | type | default | description |
| transform | Transformation | | inherited |
| pattern | Pattern | | |
| size | double | 1 | |
BumpmapNormal
class BumpmapNormal
extends Normal
| property | type | default | description |
| transform | Transformation | | inherited |
| bumpmap | Bumpmap | | |
| size | double | 1 | |
Bumpmap
abstract
class Bumpmap
extends Object
ColorMapBumpmap
class ColorMapBumpmap
extends Bumpmap
| property | type | default | description |
| pattern | Pattern | | |
| colormap | ColorMap | | |
Texture
abstract
class Texture
extends Object
| property | type | default | description |
| transform | Transformation | | |
| normal | Normal | | |
SimpleTexture
class SimpleTexture
extends Texture
| property | type | default | description |
| transform | Transformation | | inherited |
| normal | Normal | | inherited |
| pigment | Pigment | | |
| finish | Finish | | |
Finish
class Finish
extends Object
| property | type | default | description |
| ambient | double | 0.1 | |
| diffuse | double | 0.6 | |
| specular | double | 0.4 | |
| specular_size | double | 0.25 | |
| reflection | double | 0 | |
| refraction | double | 0 | |
| metallic | double | 0 | |
| ior | double | 1 | |
UnionBounded
class UnionBounded
extends Primitive
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| point1 | vector | <0, 0, 0> | |
| point2 | vector | <1, 1, 1> | |
| _objects | Primitive | | |
Triangle
class Triangle
extends Primitive
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| point1 | vector | <0, 0, 0> | |
| point2 | vector | <1, 0, 0> | |
| point3 | vector | <1, 1, 0> | |
Torus
class Torus
extends Primitive
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| center | vector | <0, 0, 0> | |
| radiusA | double | 1 | |
| radiusB | double | 0.25 | |
Terrain
class Terrain
extends Primitive
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| resolution | integer | 100 | |
| height | HeightFunction | | |
HeightFunction
abstract
class HeightFunction
extends Primitive
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | | inherited |
TestFunction
class TestFunction
extends HeightFunction
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | | inherited |
| func | integer | 134658752 | |
HybridMultifractal
class HybridMultifractal
extends HeightFunction
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | | inherited |
| h | double | 0.25 | |
| lacunarity | double | 0 | |
| octaves | double | 7.56464 | |
| offset | double | 0.7 | |
| scale | vector | <1, 1, 1> | |
SpotLight
class SpotLight
extends PointLight
| property | type | default | description |
| transform | Transformation | | inherited |
| color | color | <rgbt <1, 1, 1, 0> | inherited |
| fade_power | double | 0 | inherited |
| fade_distance | double | 1e+10 | inherited |
| location | vector | <0, 0, 0> | inherited |
| points_to | vector | <0, 0, 0> | |
| radius | double | 2 | |
| falloff | double | 3 | |
Sphere
class Sphere
extends Primitive
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| center | vector | <0, 0, 0> | |
| radius | double | 1 | |
Primitive
abstract
class Primitive
extends Object3D
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | |
| produce_caustics | boolean | | |
PointLight
class PointLight
extends Light
| property | type | default | description |
| transform | Transformation | | inherited |
| color | color | <rgbt <1, 1, 1, 0> | inherited |
| fade_power | double | 0 | inherited |
| fade_distance | double | 1e+10 | inherited |
| location | vector | <0, 0, 0> | |
Plane
class Plane
extends Primitive
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| normal | vector | <0, 1, 0> | |
| distance | double | 0 | |
PerspectiveCamera
class PerspectiveCamera
extends Camera
| property | type | default | description |
| transform | Transformation | | inherited |
| exposure | Exposure | | inherited |
| location | vector | <0, 0, 0> | |
| look_at | vector | <0, 0, 0> | |
| up | vector | <0, 1, 0> | |
| angle | double | 45 | |
| aspect_ratio | double | 1 | |
ParallelCamera
class ParallelCamera
extends Camera
| property | type | default | description |
| transform | Transformation | | inherited |
| exposure | Exposure | | inherited |
| location | vector | <0, 0, 0> | |
| look_at | vector | <0, 0, 0> | |
| up | vector | <0, 1, 0> | |
| view_width | double | 1 | |
| aspect_ratio | double | 1 | |
Light
abstract
class Light
extends Object3D
| property | type | default | description |
| transform | Transformation | | inherited |
| color | color | | |
| fade_power | double | | |
| fade_distance | double | | |
LathePoint
class LathePoint
extends Object
| property | type | default | description |
| p | point | | |
Lathe
class Lathe
extends Primitive
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| _points | LathePoint | | |
FastUnion
class FastUnion
extends CSG
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| _objects | Primitive | | inherited |
| bounded_by | BoundingShape | | inherited |
| objects | Collection | | inherited |
| _sharp_subdivision | boolean | true | |
| _subdivision_threshold_1 | integer | 5 | |
| _subdivision_threshold_2 | integer | 3 | |
Exposure
abstract
class Exposure
extends Object
ExposureClipped
class ExposureClipped
extends Exposure
ExposureRealistic
class ExposureRealistic
extends Exposure
| property | type | default | description |
| exposure | double | 1 | |
Cylinder
class Cylinder
extends Primitive
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| center1 | vector | <0, 0, 0> | |
| center2 | vector | <0, 1, 0> | |
| radius | double | 1 | |
CSG
abstract
class CSG
extends Primitive
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | | inherited |
| _objects | Primitive | | |
| bounded_by | BoundingShape | | |
| objects | Collection | | |
Union
class Union
extends CSG
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| _objects | Primitive | | inherited |
| bounded_by | BoundingShape | | inherited |
| objects | Collection | | inherited |
Merge
class Merge
extends CSG
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| _objects | Primitive | | inherited |
| bounded_by | BoundingShape | | inherited |
| objects | Collection | | inherited |
Intersect
class Intersect
extends CSG
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| _objects | Primitive | | inherited |
| bounded_by | BoundingShape | | inherited |
| objects | Collection | | inherited |
Difference
class Difference
extends CSG
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| _objects | Primitive | | inherited |
| bounded_by | BoundingShape | | inherited |
| objects | Collection | | inherited |
Cone
class Cone
extends Primitive
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| center1 | vector | <0, 0, 0> | |
| radius1 | double | 1 | |
| center2 | vector | <0, 1, 0> | |
| radius2 | double | 0 | |
Camera
abstract
class Camera
extends Object3D
| property | type | default | description |
| transform | Transformation | | inherited |
| exposure | Exposure | | |
Box
class Box
extends Primitive
| property | type | default | description |
| transform | Transformation | | inherited |
| texture | Texture | | inherited |
| produce_caustics | boolean | false | inherited |
| point1 | vector | <0, 0, 0> | |
| point2 | vector | <1, 1, 1> | |
BoundingShape
abstract
class BoundingShape
extends Object3D
| property | type | default | description |
| transform | Transformation | | inherited |
BoundingBox
class BoundingBox
extends BoundingShape
| property | type | default | description |
| transform | Transformation | | inherited |
| point1 | vector | <0, 0, 0> | |
| point2 | vector | <0, 0, 0> | |
World
class World
extends Object
| property | type | default | description |
| _objects | Primitive | | |
| _lights | Light | | |
| background_color | color | <rgb <0, 0, 0> | |
| ambient_light | color | <rgbt <1, 1, 1, 0> | |
Transformation
abstract
class Transformation
extends Object
TransformationList
class TransformationList
extends Transformation
| property | type | default | description |
| _transforms | Transformation | | |
Translate
class Translate
extends Transformation
| property | type | default | description |
| translate | vector | <0, 0, 0> | |
Scale
class Scale
extends Transformation
| property | type | default | description |
| scale | vector | <1, 1, 1> | |
Rotate
class Rotate
extends Transformation
| property | type | default | description |
| rotate | vector | <0, 0, 0> | |
Matrix
class Matrix
extends Transformation
| property | type | default | description |
| a | vector | <1, -0, 0> | |
| b | vector | <-0, 1, -0> | |
| c | vector | <0, -0, 1> | |
Scene
class Scene
extends Object
| property | type | default | description |
| world | World | | |
| strategy | Strategy | | |
| _cameras | Camera | | |
| adc_bailout | double | 0.0039 | |
| max_trace_level | integer | 10 | |
| automatic_bounding | boolean | true | |
| bounding_threshold | integer | 5 | |
| caustics | boolean | false | |
Object3D
abstract
class Object3D
extends Object
| property | type | default | description |
| transform | Transformation | | |
Object
abstract
class Object
Collection
class Collection
extends Object
| property | type | default | description |
| count | integer | 0 | |
|