Lookat Objects

Look at objects are fairly simple.

lookat <target> <path>

Lookat Objects - www.vim3d.com

Below is the scene file to create this scene.

#created by Dan Lynch
#camera
add camera
name Cam0
zNear 0.100000
zFar 500.000000
fovy 90.000000
position -47.669403 27.814037 -47.669403
camera lookat -31.669403 18.814037 -31.669403
up 0.000000 1.000000 0.000000
matrix 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000


#geometry
add grid 10 10
name g
rotate 90 1 0 0

diffuse 0.800000 0.800000 0.800000 1.000000
specular 0.000000 0.000000 0.000000 1.000000
ambient 0.200000 0.200000 0.200000 1.000000
shininess 50.000000 
matrix 1.000000 0.000000 0.000000 0.000000 0.000000 -0.001754 -0.999998 0.000000 0.000000 0.999998 -0.001754 0.000000 0.000000 0.000000 0.000000 1.000000



#geometry
file objects/grid.obj
name p
diffuse 0.800000 0.800000 0.800000 1.000000
specular 0.000000 0.000000 0.000000 1.000000
ambient 0.200000 0.200000 0.200000 1.000000
shininess 50.000000 
matrix 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000



#light
add light
name l
diffuse 0.000000 0.000000 1.000000 1.000000
specular 1.000000 1.000000 1.000000 1.000000
ambient 0.100000 0.100000 0.100000 0.100000
light constant 1.000000
light linear 0.100000
light quadratic 0.000000
light ltype 2
light cutoff 60.000000
light spot -1.000000 -1.000000 0.000000
matrix -0.869029 0.122721 -0.479277 -48.932060 -0.408761 0.367649 0.835308 7.700286 0.278713 0.921821 -0.269332 -19.233353 0.000000 0.000000 0.000000 1.000000

add light
name l0


#geometry
copy g p align geo
name Copy0
diffuse 0.800000 0.800000 0.800000 1.000000
specular 0.000000 0.000000 0.000000 1.000000
ambient 0.200000 0.200000 0.200000 1.000000
shininess 50.000000 
matrix 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000
##lookat Copy0 l0 0 188000000 children
children lookat l0

#geometry
file objects/terrain.obj
name Geo0
diffuse 0.800000 0.800000 0.800000 1.000000
specular 0.000000 0.000000 0.000000 1.000000
ambient 0.200000 0.200000 0.200000 1.000000
shininess 50.000000 
matrix 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000 1.000000



#light
add light
name Light0
diffuse 1.000000 0.000000 0.000000 1.000000
specular 1.000000 1.000000 1.000000 1.000000
ambient 0.100000 0.100000 0.100000 0.100000
light constant 1.000000
light linear 0.100000
light quadratic 0.000000
light ltype 2
light cutoff 60.000000
light spot -1.000000 -1.000000 0.000000
matrix 0.122340 0.897137 -0.424442 -11.172249 0.900223 0.079757 0.428057 13.200007 0.417880 -0.434463 -0.797869 -4.666933 0.000000 0.000000 0.000000 1.000000


#light
add light
name Light1
diffuse 0.000000 1.000000 0.000000 1.000000
specular 1.000000 1.000000 1.000000 1.000000
ambient 0.100000 0.100000 0.100000 0.100000
light constant 1.000000
light linear 0.100000
light quadratic 0.000000
light ltype 2
light cutoff 60.000000
light spot -1.000000 -1.000000 0.000000
matrix -0.988204 0.092466 0.122077 -43.557938 0.047119 0.942057 -0.332125 25.499973 -0.145714 -0.322455 -0.935302 27.718563 0.000000 0.000000 0.000000 1.000000



#references

s l0
disp none