command | arg1 | arg2 | arg3 | Example |
|
exit |
|
|
|
exit |
open |
window/(window name) |
( -b | -p | -w ) *see below |
posx posy width height |
open window/test 0 0 640 480 |
close |
window/(window name) |
|
|
close window/test |
read |
model |
(model file name) |
|
read model test.mdl |
object |
(object file name) |
|
read object square.obj |
texture |
(texture file name) |
|
read texture picture.jpg |
write |
model |
(model file name) |
|
write model dummy.mdl |
add |
class/(class name) |
( scl | rot | trans ) |
x y z |
add class/eye trans 10 20 0 |
object/(object name) |
( scl | rot | trans ) |
x y z |
add object/circle rot 90 0 0 |
link |
window/(window name) |
scene/(scene name) |
|
link window/test scene/scene0 |
class/(class name) |
object/(object name) |
|
link class/root object/eye |
select |
scene/(scene name) |
camera/(camera name) |
|
select scene/scene0 camera/camera0 |
scene/(scene name) |
switch/(switch name) |
|
select scene/scene0 switch/switch0 |
scene/(scene name) |
background/(background name) |
|
select scene/scene0 background/background0 |
scene/(scene name) |
lmodel/(lmodel name) |
|
select scene/scene0 lmodel/lmodel0 |
scene/(scene name) |
class/(class name) |
|
select scene/scene0 class/class0 |
swap |
texture/(texture name) |
number( max 3 digits ) |
|
swap texture/number 23 |
set |
cwd |
directory |
|
set cwd /usr/local/home/data |
camera/(camera name) |
( dv | dh | pan | tilt | twist | aspect | near | far ) |
data |
set camera/camera0 pan 45 |
pos |
x y z |
set camera/camera0 pos 0 100 80 |
material/(material name) |
( ambient | diffuse | specular | emission ) |
r g b |
set material/material0 ambient 1 0 0 |
( shiness | opacity ) |
data |
set material/material0 opacity 1 |
lmodel/(lmodel name) |
ambient |
r g b |
set lmodel/lmodel0 ambient 1 0 0 |
localviewer |
( on | off ) |
set lmodel/lmodel0 localviewer off |
light/(light name) |
type |
( spot | para | point ) |
set light/light0 type spot |
( pos | dir ) |
x y z |
set light/light0 pos 1 20 -10 |
( ambient | color ) |
r g b |
set light/light0 ambient 1 0 0 |
spotlight |
spotx spoty |
set light/light0 spotlight 10 10 |
face |
( on | off ) |
set light/light0 face on |
class/(class name) |
( scl | rot | trans ) |
x y z |
set class/root trans 10 10 10 |
drwmode |
( off | face | line ) |
set class/root drwmode off |
object/(object name) |
( scl | rot | trans ) |
x y z |
set object/object0 trans 10 10 10 |
( map | smooth | backface ) |
( on | off ) |
set object/object0 backface off |
index |
number |
set object/object0 index 10 |
drawmode |
( off | line | face ) |
set object/object0 drawmode line |
texture/(texture name) |
wrap |
( repeat | clamp ) |
set texture/sky wrap repeat |
mapenv |
( modulate | decal ) |
set texture/sky mapenv modulate |
index |
number |
set texture/sky index 3 |
switch/(switch name) |
( antialias | cullback ) |
( on | off ) |
set switch/switch0 cullback on |
fog |
density r g b |
set switch/switch0 fog 0.1 0.1 0.1 0.1 |
background/(background name) |
color |
r g b |
set background/background0 color 0.2 0.8 0.4 |
new |
camera |
(camera name) |
|
new camera camera0 |
material |
(material name) |
|
new material material0 |
lmodel |
(lmodel name) |
|
new lmodel ldemo0 |
light |
(light name) |
|
new light light0 |
class |
(class name) |
|
new class class0 |
object |
(object name) |
|
new object object0 |
texture |
(texture name) |
|
new texture texture0 |
switch |
(switch name) |
|
new switch switch0 |
background |
(background name) |
|
new background background0 |
scene |
(scene name) |
|
new scene scene0 |
delete |
camera |
(camera name) |
|
delete camera camera0 |
material |
(material name) |
|
delete material material0 |
lmodel |
(lmodel name) |
|
delete lmodel ldemo0 |
light |
(light name) |
|
delete light light0 |
class |
(class name) |
|
delete class class0 |
object |
(object name) |
|
delete object object0 |
texture |
(texture name) |
|
delete texture texture0 |
switch |
(switch name) |
|
delete switch switch0 |
background |
(background name) |
|
delete background background0 |
scene |
(scene name) |
|
delete scene scene0 |
memget |
size |
|
|
memget 1024 |
memreg |
camera/(camera name) |
pos |
( x | y | z ) |
memreg camera/camera0 pos x |
lmodel/(lmodel name) |
ambient |
( red | green | blue ) |
memreg lmodel/lmodel0 ambient red |
light/(light name) |
( pos | dir ) |
( x | y | z ) |
memreg light/light0 pos z |
( ambient | color ) |
( red | green | blue ) |
memreg light/light0 ambient green |
spot |
( power | angle ) |
memreg light/light0 spot angle |
material/(material name) |
( ambient | diffuse | specular | emission ) |
( red | green | blue ) |
memreg material/material0 ambient blue |
( shiness | opacity ) |
|
memreg material/material0 shiness |
class/(class name) |
( scl | rot | trans ) |
( x | y | z ) |
memreg class/sample scl y |
drawmode |
|
memreg class/sample drawmode |
object/(object name) |
( scl | rot | trans ) |
( x | y | z ) |
memreg object/object0 scl y |
( index | drawmode ) |
|
memreg object/object0 index |
texture/(texture name) |
index |
|
memreg texture/texture0 index |
background/(background name) |
color |
( red | green | blue ) |
memreg background color red |
memunreg |
(offset number) |
|
|
memunreg 10 |
get |
picked |
|
|
get picked |
command.
get command return picked class name in GL window.
show picked count and all parent class name, if picked class have parent one.