home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Learn 3D Graphics Programming on the PC
/
Learn_3D_Graphics_Programming_on_the_PC_Ferraro.iso
/
rwwin
/
rfrobot3.rw_
/
rfrobot3.bin
Wrap
Text File
|
1995-11-14
|
3KB
|
134 lines
# Simple hierarchical model of a robot arm for RenderWare(tm).
ModelBegin
GeometrySampling Solid
ProtoBegin Base
LightSampling Facet
Surface 0.7 0.6 0.8
Color 0.0 0.0 1.0
Cylinder 0.2 1.0 0.5 12
Translate 0.0 0.2 0.0
Cylinder 1.0 0.5 0.3 12
Translate 0.0 1.0 0.0
Color 0.9 0.0 0.0
LightSampling Vertex
Hemisphere 0.3 3
ProtoEnd
ProtoBegin UpperFinger
Surface 0.5 0.7 0.3
Color 1.0 0.8 0.0
LightSampling Facet
ClumpBegin
Tag 7 # Tag 7 is the upper finger
Color 0.5 0.7 0.3
LightSampling Facet
Translate 0.0 0.2 0.0
Block 0.3 0.3 0.1
ClumpEnd
ProtoEnd
ProtoBegin Finger
Surface 0.5 0.7 0.3
Color 1.0 0.8 0.0
LightSampling Facet
Translate 0.0 0.35 0.0
Block 0.3 0.4 0.1
TransformBegin
Translate 0.0 0.2 0.0
TransformBegin
Color 0.9 0.0 0.0
LightSampling Vertex
Rotate 0.0 0.0 1.0 90.0
Translate 0.05 -0.15 0.0
Cylinder 0.3 0.05 0.05 6
Disc 0.0 -0.05 6
Disc 0.3 0.05 6
TransformEnd
Translate 0.0 0.05 0.0
ProtoInstance UpperFinger
TransformEnd
ProtoEnd
ProtoBegin Hand
Surface 0.6 0.4 0.8
Color 0.0 0.9 0.9
LightSampling Vertex
Sphere 0.15 4
TransformBegin
ClumpBegin
Tag 5 # Tag 5 is the first finger.
Rotate 1 1 1 30
ProtoInstance Finger
ClumpEnd
TransformEnd
TransformBegin
ClumpBegin
Tag 6 # Tag 6 is the second finger.
Rotate 1 1 1 -30
ProtoInstance Finger
ClumpEnd
TransformEnd
TransformEnd
ProtoEnd
ProtoBegin ForeArm
Surface 0.6 0.4 0.8
Color 0.9 0.0 0.0
LightSampling Vertex
Sphere 0.2 4
ClumpBegin
Tag 1113 # Tag for the forearm is 3
Color 0.9 0.9 0.0
Translate 0.0 0.2 0.0
Disc 0.0 -0.2 6
Cylinder 2.05 0.2 0.15 6
Disc 2.05 0.15 6
Translate 0.0 2.20 0.0
ClumpBegin
Tag 1114 # Tag for the hand is 4
ProtoInstance Hand
ClumpEnd
ClumpEnd
ProtoEnd
ProtoBegin Arm
Surface 0.6 0.4 0.8
Color 0.0 0.9 0.0
LightSampling Vertex
ClumpBegin
Disc 0.0 -0.3 6
Cylinder 2.0 0.3 0.2 6
Disc 2.0 0.2 6
Translate 0.0 2.2 0.0
ClumpBegin
ProtoInstance ForeArm
ClumpEnd
ClumpEnd
ProtoEnd
ClumpBegin
Translate 0.0 -3.0 -10.0
ProtoInstance Base
TransformBegin
Translate 0.0 1.2 0.0
ClumpBegin
Tag 1112 # Tag for the upper arm is 2
TransformBegin
Translate 0.0 0.3 0.0
Rotate 1 1 1 30
ProtoInstance Arm
TransformEnd
Tag 1111 # Tag for the second arm is 1
TransformBegin
Translate 0.0 0.3 0.0
Rotate 1 1 1 -30
ProtoInstance Arm
TransformEnd
ClumpEnd
TransformEnd
ClumpEnd
ModelEnd