Example:
model house.obj 1.0 1.0 1.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0

model wall.obj 1.0 1.0 1.0 90.0 0.0 1.0 0.0 -200.0 0.0 0.0 

model obj_file_name Sx Sy Sz Angle Rx Ry Rz Tx Ty Tz

obj_file_name: the file name of the mesh.
Sx Sy Sz: the scale value of each direction.
Angle Rx Ry Rz: "Angle" means the degree of rotation. Rx, Ry, and Rz are the rotation axis vector.
Tx Ty Tz: the transfer vector. It means that the origin of the model should move to (x, y, z).

Please note the matrix operation in OpenGL is in reversed order.

Go to top