texture-space
List of: Scheme Extensions
Subjects: Texture Spaces
Contents: Rendering Base

Action: Creates a texture space.

Filename: rbase/rnd_scm/tmap_scm.cxx

APIs: api_rh_create_texture_space

Syntax: (texture-space type)

Arg Types: type string

Returns: texture-space

Description: Texture space controls how a a wrapped material entity is applied to a face or solid body. A texture space is applied to an entity using entity:set-texture-space.


The Advanced Rendering Component is required to display texture space on wrapped materials. However, in the Basic Rendering Component, the texture space may be created, its properties changed, and the texture space entity associated with a model entity. However, Basic Rendering Component does not display the results.


type is a string specifying the texture space type. The available texture space types include "arbitrary plane", "auto axis", "cylindrical", "spherical", "uv", "x plane", "y plane", and "z plane".

Example: ; texture-space

; Create a solid block.

(define block1 (solid:block


(position 0 0 0) (position 5 10 16)))

;; block1

; Create a solid sphere.

(define sphere1 (solid:sphere


(position -10 -10 -10) 10))

;; sphere1

; Create two texture spaces.

(define texture1 (texture-space "auto axis"))

;; texture1

(define texture2 (texture-space "spherical"))

;; texture2

; Set the textures onto the solids.

(entity:set-texture-space block1 texture1)

;; ()

(entity:set-texture-space sphere1 texture2)

;; ()
PDF/RBASE/03SCM.PDF
HTM/DATA/RBASE/RBASE/03SCM/0054.HTM