cl gltf
1.0.0A library to parse the glTF file format.
How To
For the purposes of this tutorial we'll assume the package org.shirakumo.fraf.gltf
has the local nickname gltf
. After loading the library, you can parse a glTF or GLB file as follows:
(gltf:with-gltf (gltf #p"my-model.gltf")
(describe gltf))
describe
will emit the full structure of the parsed glTF file. From there you can use the accessors from this package to traverse the structures and convert the information as you need.
Of particular importance are the accessor
s, which provide a convenient way to parse out the information from the raw underlying byte buffers that they index into. An accessor
is a sequence
, so you can simply use length
and elt
to traverse the data.
However, note that cl-gltf makes no assumptions about a math library or anything of the sort, so by default it will parse the data out to vectors of the respective element type (usually floats). That buffer will also be shared between elt
calls to avoid excessive consing. Thus, if you are just copying the data out of the buffers to another place, this should be ideal.
However, if you would like to customise the way the data is read out, such as to convert it into other structures automatically, you can do so. Either set the element-reader
function on the accessor, or provide a specialised method on the construct-element-reader
function. See the respective docstrings for more info.
To Do
The following are still left to do:
Loading from pointers or byte arrays
Direct support of the ratified extensions
Writing files
System Information
Definition Index
-
ORG.SHIRAKUMO.FRAF.GLTF
No documentation provided.-
EXTERNAL CLASS ACCESSOR
Representation of an attribute accessor into a buffer. This is a SEQUENCE and can be used as such. See BUFFER-VIEW See BYTE-OFFSET See COMPONENT-TYPE See ELEMENT-TYPE See SIZE See NORMALIZED See MAXIMUM See MINIMUM See START See BYTE-STRIDE See ELEMENT-READER See ELEMENT-WRITER See INDEXED-ELEMENT See NAMED-ELEMENT
-
EXTERNAL CLASS ANIMATION
Representation of an animation. See INDEXED-ELEMENT See NAMED-ELEMENT See CHANNELS See SAMPLERS
-
EXTERNAL CLASS ANIMATION-CHANNEL
Representation of an animation channel. See GLTF-ELEMENT See SAMPLER See TARGET
-
EXTERNAL CLASS ANIMATION-CHANNEL-TARGET
Representation of an animation channel target. See GLTF-ELEMENT See NODE See PATH
-
EXTERNAL CLASS ANIMATION-SAMPLER
Representation of a sampler for an animation-channel. See GLTF-ELEMENT See INPUT See OUTPUT See INTERPOLATION
-
EXTERNAL CLASS ASSET
Represents basic metadata about the GLTF file. See GLTF-ELEMENT See COPYRIGHT See GENERATOR See VERSION See MIN-VERSION
-
EXTERNAL CLASS BUFFER
Representation of an octet buffer. This is a SEQUENCE and can be used as such. Once the buffer is no longer required, it must be CLOSEd to free up potential resources kept by the buffer in the back. See START See BYTE-LENGTH See INDEXED-ELEMENT See URI-ELEMENT See NAMED-ELEMENT
-
EXTERNAL CLASS BUFFER-VIEW
Representation of a view into a buffer. This is a SEQUENCE and can be used as such. See BUFFER See START See BYTE-OFFSET See BYTE-LENGTH See BYTE-STRIDE See TARGET See INDEXED-ELEMENT See NAMED-ELEMENT
-
EXTERNAL CLASS CAMERA
Base type for cameras. See INDEXED-ELEMENT See NAMED-ELEMENT See ORTHOGRAPHIC-CAMERA See PERSPECTIVE-CAMERA
-
EXTERNAL CLASS GLTF
Base of a GLTF file's representation. A GLTF instance is a collection of subobjects, which may nest and refer to each other. Once you are done, you **must** call CLOSE on the instance to ensure backing buffers and other associated resources are properly freed. See PARSE See WITH-GLTF See GLTF-ELEMENT See URI See BUFFERS See BUFFER-VIEWS See ACCESSORS See ASSET See CAMERAS See MESHES See IMAGES See SAMPLERS See TEXTURES See MATERIALS See SKINS See NODES See ANIMATIONS See SCENES
-
EXTERNAL CLASS GLTF-ELEMENT
Base class for any part of a glTF representation See EXTENSIONS See EXTRAS See GLTF
-
EXTERNAL CLASS IMAGE
Representation of an image. An image may either be represented by an URI to another file, an inline data-uri, or a buffer-view that provides the image data. See INDEXED-ELEMENT See URI-ELEMENT See NAMED-ELEMENT See MIME-TYPE See BUFFER-VIEW
-
EXTERNAL CLASS INDEXED-ELEMENT
An element that has a base index within the gltf file's collection. See GLTF-ELEMENT See IDX
-
EXTERNAL CLASS MATERIAL
Representation of a mesh material description. See INDEXED-ELEMENT See NAMED-ELEMENT See PBR See NORMAL-TEXTURE See OCCLUSION-TEXTURE See EMISSIVE-TEXTURE See EMISSIVE-FACTOR See ALPHA-MODE See ALPHA-CUTOFF See DOUBLE-SIDED-P
-
EXTERNAL CLASS MESH
Representation of a mesh. See INDEXED-ELEMENT See NAMED-ELEMENT See PRIMITIVES See WEIGHTS
-
EXTERNAL CLASS MESH-PRIMITIVE
Representation of a mesh primitive -- a singular geometric object of a consistent material. See GLTF-ELEMENT See ATTRIBUTES See INDICES See MATERIAL See MODE See TARGETS
-
EXTERNAL CLASS NAMED-ELEMENT
An element with a potential name attached. See GLTF-ELEMENT See NAME
-
EXTERNAL CLASS NODE
Represents a node in the scene graph. A node may have transformation information associated with it, as well as several child nodes or a mesh. A node may also not have any children or meshes, such as in the case of bones or cameras. See CAMERA See PARENT See CHILDREN See SKIN See MESH See MATRIX See ROTATION See SCALE See TRANSLATION See WEIGHTS
-
EXTERNAL CLASS ORTHOGRAPHIC-CAMERA
-
EXTERNAL CLASS PBR
Representation of the PBR attributes used for a material. See GLTF-ELEMENT See ALBEDO See ALBEDO-FACTOR See METALLIC-FACTOR See ROUGHNESS-FACTOR See METALLIC-ROUGHNESS
-
EXTERNAL CLASS PERSPECTIVE-CAMERA
Representation of a perspective projection camera. See CAMERA See ASPECT-RATIO See FOV See ZFAR See ZNEAR
-
EXTERNAL CLASS SAMPLER
Representation of a texture sampler. See INDEXED-ELEMENT See NAMED-ELEMENT See MAG-FILTER See MIN-FILTER See WRAP-S See WRAP-T
-
EXTERNAL CLASS SCENE
Represents a the root node of a scene. See INDEXED-ELEMENT See NAMED-ELEMENT See NODES
-
EXTERNAL CLASS SKIN
Representation of a mesh's skinning information. See INDEXED-ELEMENT See NAMED-ELEMENT See INVERSE-BIND-MATRICES See SKELETON See JOINTS
-
EXTERNAL CLASS TEXTURE
Representation of a texture. See INDEXED-ELEMENT See NAMED-ELEMENT See SAMPLER See SOURCE
-
EXTERNAL CLASS TEXTURE-INFO
Representation of additional texture information. See GLTF-ELEMENT See TEXTURE See TEX-COORD See SCALE See STRENGTH
-
EXTERNAL CLASS URI-ELEMENT
An element with a URI attached. See GLTF-ELEMENT See URI See PATH
-
EXTERNAL FUNCTION PARSE
- FILE
Parses a glTF file and returns the constructed GLTF instance. This function can parse glTF files in both textual glTF format with external buffers, glTF format with embedded buffers, and GLB binary format from files, strings, and streams. Note: you **must** call CLOSE on the glTF file or its individual buffers when you are done with the file. Failing to do so will cause file descriptors or other resources to stay allocated indefinitely. It is therefore strongly recommended that you use WITH-GLTF to handle the resource cleanup safely. Consequently, any access to BUFFERs, BUFFER-VIEWs, or ACCESSORs after CLOSE has been called on the GLTF instance or the respective underlying buffer leads to undefined behaviour. DON'T DO IT. See WITH-GLTF See GLTF (type)
-
EXTERNAL GENERIC-FUNCTION ACCESSORS
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF ACCESSORS)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ALBEDO
- OBJECT
Accesses the texture-info for the albedo channel of the material. See TEXTURE-INFO See PBR
-
EXTERNAL GENERIC-FUNCTION (SETF ALBEDO)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ALBEDO-FACTOR
- OBJECT
Accesses the albedo-factor for the material. This should be an array of four float values representing the per-channel strength factors. See PBR
-
EXTERNAL GENERIC-FUNCTION (SETF ALBEDO-FACTOR)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ALPHA-CUTOFF
- OBJECT
Accesses the alpha cutoff value when the material is in mask mode. See MATERIAL
-
EXTERNAL GENERIC-FUNCTION (SETF ALPHA-CUTOFF)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ALPHA-MODE
- OBJECT
Accesses the alpha-blending mode of the material. Can be one of the following: :OPAQUE :MASK :BLEND See MATERIAL
-
EXTERNAL GENERIC-FUNCTION (SETF ALPHA-MODE)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ANIMATIONS
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF ANIMATIONS)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ASPECT-RATIO
- OBJECT
Accesses the view aspect ratio of the camera. See PERSPECTIVE-CAMERA
-
EXTERNAL GENERIC-FUNCTION (SETF ASPECT-RATIO)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ASSET
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF ASSET)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ATTRIBUTES
- OBJECT
Accesses the hash table of mesh attributes. The values are ACCESSORs The keys are keywords, out of: :POSITION :NORMAL :TANGENT :TEXCOORD_0 ... :COLOR_0 ... :JOINTS_0 ... :WEIGHTS_0 ... See ACCESSOR See MESH-PRIMITIVE
-
EXTERNAL GENERIC-FUNCTION (SETF ATTRIBUTES)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION BUFFER
- OBJECT
Returns the buffer indexed into by the buffer-view. See BUFFER See BUFFER-VIEW
-
EXTERNAL GENERIC-FUNCTION (SETF BUFFER)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION BUFFER-VIEW
- OBJECT
Returns the buffer-view this accessor indexes into. See ACCESSOR
-
EXTERNAL GENERIC-FUNCTION (SETF BUFFER-VIEW)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION BUFFER-VIEWS
- OBJECT
Accesses the array of buffer-view objects. See BUFFER-VIEW See GLTF
-
EXTERNAL GENERIC-FUNCTION (SETF BUFFER-VIEWS)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION BUFFERS
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF BUFFERS)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION BYTE-LENGTH
- OBJECT
Returns the length of the buffer in octets. See BUFFER See BUFFER-VIEW
-
EXTERNAL GENERIC-FUNCTION (SETF BYTE-LENGTH)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION BYTE-OFFSET
- OBJECT
Returns the offset in octets from the start of the buffer. See ACCESSOR See BUFFER-VIEW
-
EXTERNAL GENERIC-FUNCTION (SETF BYTE-OFFSET)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION BYTE-STRIDE
- OBJECT
Returns the number of bytes between valid elements in the buffer. Note that this may be NIL. See ACCESSOR See BUFFER-VIEW
-
EXTERNAL GENERIC-FUNCTION (SETF BYTE-STRIDE)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION CAMERA
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF CAMERA)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION CAMERAS
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF CAMERAS)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION CHANNELS
- OBJECT
Accesses the array of animation-channels. See ANIMATION-CHANNEL See ANIMATION
-
EXTERNAL GENERIC-FUNCTION (SETF CHANNELS)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION CHILDREN
- OBJECT
Accesses the array of child nodes. See NODE
-
EXTERNAL GENERIC-FUNCTION (SETF CHILDREN)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION COMPONENT-TYPE
- OBJECT
Returns the compound component type this accessor reads. Barring extensions, this can be one of: :SCALAR :VEC2 :VEC3 :VEC4 :MAT2 :MAT3 :MAT4 See ACCESSOR
-
EXTERNAL GENERIC-FUNCTION (SETF COMPONENT-TYPE)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION CONSTRUCT-ELEMENT-READER
- ELEMENT-TYPE
- COMPONENT-TYPE
Construct a reader function for the given element. ELEMENT-TYPE can be (barring extensions) one of the following: :SCALAR :VEC2 :VEC3 :VEC4 :MAT2 :MAT3 :MAT4 COMPONENT-TYPE can be (barring extensions) one of the following: :INT8 :UINT8 :INT16 :UINT16 :INT32 :UINT32 :INT64 :UINT64 :FLOAT :DOUBLE This function should return a function of one argument, a CFFI:FOREIGN-POINTER, and two return values: the read value at the pointer and a pointer to the memory region immediately following the read element. See ACCESSOR (type)
-
EXTERNAL GENERIC-FUNCTION CONSTRUCT-ELEMENT-WRITER
- ELEMENT-TYPE
- COMPONENT-TYPE
Construct a reader function for the given element. ELEMENT-TYPE can be (barring extensions) one of the following: :SCALAR :VEC2 :VEC3 :VEC4 :MAT2 :MAT3 :MAT4 COMPONENT-TYPE can be (barring extensions) one of the following: :INT8 :UINT8 :INT16 :UINT16 :INT32 :UINT32 :INT64 :UINT64 :FLOAT :DOUBLE This function should return a function of two arguments: the value to write and a CFFI:FOREIGN-POINTER, and one return value: a pointer to the memory region immediately following the read element. See ACCESSOR (type)
-
EXTERNAL GENERIC-FUNCTION COPYRIGHT
- OBJECT
Accesses a string noting the copyright information. See ASSET
-
EXTERNAL GENERIC-FUNCTION (SETF COPYRIGHT)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION DOUBLE-SIDED-P
- OBJECT
Accesses whether the material should be double-sided or not. See MATERIAL
-
EXTERNAL GENERIC-FUNCTION (SETF DOUBLE-SIDED-P)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ELEMENT-READER
- ELEMENT-TYPE
Accesses the function used to read out values from the underlying buffer memory. Unless manually set, this function is computed by calling CONSTRUCT-ELEMENT-READER using the accessor's component-type and element-type. See CONSTRUCT-ELEMENT-READER See ACCESSOR
-
EXTERNAL GENERIC-FUNCTION (SETF ELEMENT-READER)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ELEMENT-TYPE
- OBJECT
Returns the underlying type of values read by the accessor for each compound value. Barring extensions, this can be one of: :INT8 :UINT8 :INT16 :UINT16 :INT32 :UINT32 :INT64 :UINT64 :FLOAT :DOUBLE See ACCESSOR
-
EXTERNAL GENERIC-FUNCTION (SETF ELEMENT-TYPE)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ELEMENT-WRITER
- ELEMENT-TYPE
Accesses the function used to write values to the underlying buffer memory. Unless manually set, this function is computed by calling CONSTRUCT-ELEMENT-WRITER using the accessor's component-type and element-type. See CONSTRUCT-ELEMENT-WRITER See ACCESSOR
-
EXTERNAL GENERIC-FUNCTION (SETF ELEMENT-WRITER)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION EMISSIVE-FACTOR
- OBJECT
Accesses the emission factor of the emission-map. Should be an array of three floats. See MATERIAL
-
EXTERNAL GENERIC-FUNCTION (SETF EMISSIVE-FACTOR)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION EMISSIVE-TEXTURE
- OBJECT
Accesses the emission-map texture. See TEXTURE-INFO See MATERIAL
-
EXTERNAL GENERIC-FUNCTION (SETF EMISSIVE-TEXTURE)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION EXTENSIONS
- OBJECT
Accessor to opaque extension blobs. See GLTF-ELEMENT
-
EXTERNAL GENERIC-FUNCTION (SETF EXTENSIONS)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION EXTRAS
- OBJECT
Accessor to opaque extras blobs. See GLTF-ELEMENT
-
EXTERNAL GENERIC-FUNCTION (SETF EXTRAS)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION FOV
- OBJECT
Accesses the field of view value of the camera. See PERSPECTIVE-CAMERA
-
EXTERNAL GENERIC-FUNCTION (SETF FOV)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION GENERATOR
- OBJECT
Accesses a string noting the software used to generate the file. See ASSET
-
EXTERNAL GENERIC-FUNCTION (SETF GENERATOR)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION GLTF
- OBJECT
Returns the base GLTF instance this element is associated with. See GLTF-ELEMENT
-
EXTERNAL GENERIC-FUNCTION IDX
- OBJECT
Returns the index of the element within its collection. See INDEXED-ELEMENT
-
EXTERNAL GENERIC-FUNCTION (SETF IDX)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION IMAGES
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF IMAGES)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION INDICES
- OBJECT
Accesses the accessor of vertex indices. See ACCESSOR See MESH-PRIMITIVE
-
EXTERNAL GENERIC-FUNCTION (SETF INDICES)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION INPUT
- OBJECT
Accesses to the accessor that provides the times of the keyframes. See ACCESSOR See ANIMATION-SAMPLER
-
EXTERNAL GENERIC-FUNCTION (SETF INPUT)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION INTERPOLATION
- OBJECT
Accesses to the interpolation type of the animation sampler. Can be one of the following: :STEP :LINEAR :CUBICSPLINE See ANIMATION-SAMPLER
-
EXTERNAL GENERIC-FUNCTION (SETF INTERPOLATION)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION INVERSE-BIND-MATRICES
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF INVERSE-BIND-MATRICES)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION JOINTS
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF JOINTS)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION MAG-FILTER
- OBJECT
Accesses to the magnification filter of the sampler. Can be one of the following: :NEAREST :LINEAR See SAMPLER
-
EXTERNAL GENERIC-FUNCTION (SETF MAG-FILTER)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION MATERIAL
- OBJECT
Accesses the material used for the mesh primitive. See MATERIAL See MESH-PRIMITIVE
-
EXTERNAL GENERIC-FUNCTION (SETF MATERIAL)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION MATERIALS
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF MATERIALS)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION MATRIX
- OBJECT
Accesses the transformation matrix attached to the node. The matrix should be a 16-element float array representing the 4x4 matrix. See NODE
-
EXTERNAL GENERIC-FUNCTION (SETF MATRIX)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION MAXIMUM
- OBJECT
Returns a representation of the maximal value of any values this accessor may read. This is typically either a single scalar value or an array of values. See ACCESSOR
-
EXTERNAL GENERIC-FUNCTION (SETF MAXIMUM)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION MESH
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF MESH)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION MESHES
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF MESHES)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION METALLIC-FACTOR
- OBJECT
Accesses the metalness-factor for the material. See PBR
-
EXTERNAL GENERIC-FUNCTION (SETF METALLIC-FACTOR)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION MIME-TYPE
- OBJECT
Accesses to the string mime-type of the image. Should be either: "image/jpeg" "image/png" See IMAGE
-
EXTERNAL GENERIC-FUNCTION (SETF MIME-TYPE)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION MIN-FILTER
- OBJECT
Accesses to the minification filter of the sampler. Can be one of the following: :NEAREST :LINEAR :NEAREST-MIPMAP-NEAREST :LINEAR-MIPMAP-NEAREST :NEAREST-MIPMAP-LINEAR :LINEAR-MIPMAP-LINEAR See SAMPLER
-
EXTERNAL GENERIC-FUNCTION (SETF MIN-FILTER)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION MIN-VERSION
- OBJECT
Accesses a string specifying the minimum version required to parse the file successfully. See ASSET
-
EXTERNAL GENERIC-FUNCTION (SETF MIN-VERSION)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION MINIMUM
- OBJECT
Returns a representation of the minimal value of any values this accessor may read. This is typically either a single scalar value or an array of values. See ACCESSOR
-
EXTERNAL GENERIC-FUNCTION (SETF MINIMUM)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION MODE
- OBJECT
Accesses the "mode" of the vertices in the mesh. Can be one of the following: :POINTS :LINES :LINE-LOOP :LINE-STRIP :TRIANGLES :TRIANGLE-STRIP :TRIANGLE-FAN See MESH-PRIMITIVE
-
EXTERNAL GENERIC-FUNCTION (SETF MODE)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION NAME
- OBJECT
Accesses the name of the element. May be NIL or a STRING. See NAMED-ELEMENT
-
EXTERNAL GENERIC-FUNCTION (SETF NAME)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION NODE
- OBJECT
Accesses for the node that the channel animates. See NODE See ANIMATION-CHANNEL-TARGET
-
EXTERNAL GENERIC-FUNCTION (SETF NODE)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION NODES
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF NODES)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION NORMAL-TEXTURE
- OBJECT
Accesses the normal-map texture. See TEXTURE-INFO See MATERIAL
-
EXTERNAL GENERIC-FUNCTION (SETF NORMAL-TEXTURE)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION NORMALIZED
- OBJECT
Returns whether the values in the buffer are normalized or not. See ACCESSOR
-
EXTERNAL GENERIC-FUNCTION (SETF NORMALIZED)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION OCCLUSION-TEXTURE
- OBJECT
Accesses the occlusion-map texture. See TEXTURE-INFO See MATERIAL
-
EXTERNAL GENERIC-FUNCTION (SETF OCCLUSION-TEXTURE)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION OUTPUT
- OBJECT
Accesses to the accessor that provides the values of the keyframes. See ACCESSOR See ANIMATION-SAMPLER
-
EXTERNAL GENERIC-FUNCTION (SETF OUTPUT)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION PARENT
- OBJECT
Accesses the parent of the node. See NODE
-
EXTERNAL GENERIC-FUNCTION (SETF PARENT)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION PATH
- ELEMENT
Accesses for the property that the channel animates. Can be one of the following: :TRANSLATION :ROTATION :SCALE :WEIGHTS See ANIMATION-CHANNEL
-
EXTERNAL GENERIC-FUNCTION (SETF PATH)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION PBR
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF PBR)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION PRIMITIVES
- OBJECT
Accesses the array of mesh primitives that make up the mesh. See MESH-PRIMITIVE See MESH
-
EXTERNAL GENERIC-FUNCTION (SETF PRIMITIVES)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ROTATION
- OBJECT
Accesses the rotation quaternion attached to the node. Expressed as a 4-element float array. See NODE
-
EXTERNAL GENERIC-FUNCTION (SETF ROTATION)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ROUGHNESS-FACTOR
- OBJECT
Accesses the roughness-factor for the material. See PBR
-
EXTERNAL GENERIC-FUNCTION (SETF ROUGHNESS-FACTOR)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION SAMPLER
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF SAMPLER)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION SAMPLERS
- OBJECT
Accesses the array of animation-samplers See ANIMATION-SAMPLER See ANIMATION
-
EXTERNAL GENERIC-FUNCTION (SETF SAMPLERS)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION SCALE
- OBJECT
Accesses the scalar applied to each normal of the normal-map texture. See TEXTURE-INFO
-
EXTERNAL GENERIC-FUNCTION (SETF SCALE)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION SCENES
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF SCENES)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION SIZE
- OBJECT
Returns the number of elements this accessor may read. See ACCESSOR
-
EXTERNAL GENERIC-FUNCTION (SETF SIZE)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION SKELETON
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF SKELETON)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION SKIN
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF SKIN)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION SKINS
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF SKINS)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION SOURCE
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF SOURCE)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION START
- OBJECT
Returns a pointer to the start of the memory region represented by the buffer, view, or accessor. See BUFFER See BUFFER-VIEW See ACCESSOR
-
EXTERNAL GENERIC-FUNCTION STRENGTH
- OBJECT
Accesses the scalar for the strength of the occulsion-map texture. See TEXTURE-INFO
-
EXTERNAL GENERIC-FUNCTION (SETF STRENGTH)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION TARGET
- OBJECT
Accesses for the animation-channel-target. See ANIMATION-CHANNEL-TARGET See ANIMATION-CHANNEL
-
EXTERNAL GENERIC-FUNCTION (SETF TARGET)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION TARGETS
- OBJECT
Accesses the array of morph targets. See MESH-PRIMITIVE
-
EXTERNAL GENERIC-FUNCTION (SETF TARGETS)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION TEX-COORD
- OBJECT
Accesses the index of the texture coordinates used for the texture indexing. See TEXTURE-INFO
-
EXTERNAL GENERIC-FUNCTION (SETF TEX-COORD)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION TEXTURE
- OBJECT
Accesses the texture the texture-info supplements. See TEXTURE See TEXTURE-INFO
-
EXTERNAL GENERIC-FUNCTION (SETF TEXTURE)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION TEXTURES
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF TEXTURES)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION TRANSLATION
- OBJECT
Accesses the translation of the node. Expressed as a 3-element float array. See NODE
-
EXTERNAL GENERIC-FUNCTION (SETF TRANSLATION)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION URI
- OBJECT
Accesses the URI. May be NIL or a STRING. See URI-ELEMENT
-
EXTERNAL GENERIC-FUNCTION (SETF URI)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION VERSION
- OBJECT
Accesses a string noting the version of the glTF format. See ASSET
-
EXTERNAL GENERIC-FUNCTION (SETF VERSION)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION WEIGHTS
- OBJECT
-
EXTERNAL GENERIC-FUNCTION (SETF WEIGHTS)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION WRAP-S
- OBJECT
Accesses to the U-wrapping mode of the sampler. Can be one of the following: :CLAMP-TO-EDGE :MIRRORED-REPEAT :REPEAT See SAMPLER
-
EXTERNAL GENERIC-FUNCTION (SETF WRAP-S)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION WRAP-T
- OBJECT
Accesses to the V-wrapping mode of the sampler. Can be one of the following: :CLAMP-TO-EDGE :MIRRORED-REPEAT :REPEAT See SAMPLER
-
EXTERNAL GENERIC-FUNCTION (SETF WRAP-T)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION XMAG
- OBJECT
Accesses the horizontal magnification of the view. See ORTHOGRAPHIC-CAMERA
-
EXTERNAL GENERIC-FUNCTION (SETF XMAG)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION YMAG
- OBJECT
Accesses the vertical magnification of the view. See ORTHOGRAPHIC-CAMERA
-
EXTERNAL GENERIC-FUNCTION (SETF YMAG)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ZFAR
- OBJECT
Accesses the distance to the far clipping plane. See ORTHOGRAPHIC-CAMERA See PERSPECTIVE-CAMERA
-
EXTERNAL GENERIC-FUNCTION (SETF ZFAR)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL GENERIC-FUNCTION ZNEAR
- OBJECT
Accesses the distance to the near clipping plane. See ORTHOGRAPHIC-CAMERA See PERSPECTIVE-CAMERA
-
EXTERNAL GENERIC-FUNCTION (SETF ZNEAR)
- NEW-VALUE
- OBJECT
No documentation provided. -
EXTERNAL MACRO WITH-GLTF
- GLTF
- FILE
- &BODY
- BODY
Parses a glTF file and handles cleanup safely. GLTF must be a variable to which the GLTF instance is bound within the execution of BODY. It is **not** safe to let the GLTF instance escape from the body. See PARSE See GLTF (type)
-