Scene description language
   HOME

TheInfoList



OR:

A scene description language is any description language used to describe a
scene Scene (from Greek σκηνή ''skēnḗ'') may refer to: Arts, entertainment, and media Music * Scene (subculture), a youth subculture from the early 2000s characterized by a distinct music and style. Groups and performers * The Scene who reco ...
to a 3D renderer, such as a ray tracer. The scene is written in a
text editor A text editor is a type of computer program that edits plain text. Such programs are sometimes known as "notepad" software (e.g. Windows Notepad). Text editors are provided with operating systems and software development packages, and can be ...
(which may include
syntax highlighting Syntax highlighting is a feature of text editors that are used for programming, scripting, or markup languages, such as HTML. The feature displays text, especially source code, in different colours and fonts according to the category of terms ...
), as opposed to being modeled in a graphical way, but a 3D modelling program may allow for a scene to be exported to a specified scene description language. Some scene description languages may include variables, constants, conditional statements, and while and
for loop In computer science a for-loop or for loop is a control flow statement for specifying iteration. Specifically, a for loop functions by running a section of code repeatedly until a certain condition has been satisfied. For-loops have two par ...
s. For example,
3DMLW 3DMLW (''3D computer graphics, 3D Markup Language, Markup Language for World Wide Web, Web'') is a discontinued open-source project, and a XML, XML-based Markup Language for representing interactive 3D computer graphics, 3D and 2D computer graphic ...
and
X3D X3D is a royalty-free ISO/IEC standard for declaratively representing 3D computer graphics. File format support includes XML, ClassicVRML, Compressed Binary Encoding (CBE) and a draft JSON encoding. X3D became the successor to the Virtual Re ...
are
XML Extensible Markup Language (XML) is a markup language and file format for storing, transmitting, and reconstructing arbitrary data. It defines a set of rules for encoding documents in a format that is both human-readable and machine-readable ...
-based scene description languages;
YafaRay YafaRay (formerly YafRay) is a free and open-source ray tracing program that uses an XML scene description language. There is a YafaRay addon for Blender 2.78. The ray tracer is licensed under the GNU Lesser General Public License (LGPL). His ...
also employs an XML-based language. Tao Presentations uses XL as a dynamic document description language.
POV-Ray The Persistence of Vision Ray Tracer, most commonly acronymed as POV-Ray, is a cross-platform ray-tracing program that generates images from a text-based scene description. It was originally based on DKBTrace, written by David Kirk Buck and Aaro ...
has its own
Turing-complete In computability theory, a system of data-manipulation rules (such as a computer's instruction set, a programming language, or a cellular automaton) is said to be Turing-complete or computationally universal if it can be used to simulate any ...
language.


Examples

POV-Ray The Persistence of Vision Ray Tracer, most commonly acronymed as POV-Ray, is a cross-platform ray-tracing program that generates images from a text-based scene description. It was originally based on DKBTrace, written by David Kirk Buck and Aaro ...
#declare the_angle = 0; #while (the_angle < 360) box #declare the_angle = the_angle + 45; #end
3DMLW 3DMLW (''3D computer graphics, 3D Markup Language, Markup Language for World Wide Web, Web'') is a discontinued open-source project, and a XML, XML-based Markup Language for representing interactive 3D computer graphics, 3D and 2D computer graphic ...
X3D X3D is a royalty-free ISO/IEC standard for declaratively representing 3D computer graphics. File format support includes XML, ClassicVRML, Compressed Binary Encoding (CBE) and a draft JSON encoding. X3D became the successor to the Virtual Re ...
Tao Presentations clear_color 0, 0, 0, 1 light 0 light_position 1000, 1000, 1000 draw_sphere with 1..50 rotatey 0.05 * mouse_x text_box 0, 0, 800, 600, extrude_depth 25 extrude_radius 5 align_center vertical_align_center font "Arial", 300 color "white" text "3D" line_break font_size 80 text zero hours & ":" & zero minutes & ":" & zero seconds draw_sphere N -> locally color_hsv 20 * N, 0.3, 1 translate 300*cos(N*0.1+time), 300*sin(N*0.17+time), 500*sin(N*0.23+time) sphere 50 zero N -> if N < 10 then "0" & text N else text N


See also

* List of 3D graphics file formats *
VRML VRML (Virtual Reality Modeling Language, pronounced ''vermal'' or by its initials, originally—before 1995—known as the Virtual Reality Markup Language) is a standard file format for representing 3-dimensional (3D) interactive vector graph ...
*
X3D X3D is a royalty-free ISO/IEC standard for declaratively representing 3D computer graphics. File format support includes XML, ClassicVRML, Compressed Binary Encoding (CBE) and a draft JSON encoding. X3D became the successor to the Virtual Re ...
3D computer graphics Domain-specific programming languages Articles with example code {{graphics-software-stub