obj_modeller(model) Modellers obj_modeller(model)
NAME
obj_modeller - a modeller for Wavefront obj files
DESCRIPTION
The obj_modeller class provides an interface between Wavefront OBJ files and the LYMB rendering classes.
SUPERCLASS
modeller
INSTANCE VARIABLES
filename
is the name of the file containing the OBJ model.
If the environment variable OBJ_PATH is defined, it
is used to search for the file. Many OBJ files can
be found in ${LYMB_ROOT}/models/obj.
EXAMPLE
/* Illustrate the obj modeller class */
/* In: scripts/model/obj.scr */
/* Set OBJ_PATH environment variable to ${LYMB_ROOT}/models/obj */
obj_modeller new: `adinomodel'
filename=`Viewpoint/dinasaur.obj'
;
camera new: `c1'
range=[adinomodel bounds?]
position=(1,0,0)
focal_point=(0,0,0)
view_up=(0,0,1)
azimuth:30
elevation: -30
default!
on!
;
actor new: `dino'
modeller=adinomodel
;
renderer new: `aren'
actors=[actor instances?]
cameras=c1
render!
;
SEE ALSO
actor, modeller, off_modeller, byu
Please send comments and suggestions toconsult@rpi.edu