Export/Wavefront


  • Select the model for use in the CAVE
  • Use Tools->Export->Object->Wavefront to save the object as a Wavefront file.
  • Use Dave's Wavefront library in your CAVE program or write your own custom CAVE code.
    
    
     
    MTL File Example

    newmtl mat1
    Ka 0.5000 0.5000 0.5000
    Kd 0.7000 0.7000 0.7000
    Ks 1.0000 1.0000 1.0000
    Ns 43.6364
    Ni 1.1273
    illum 2


    
    
     
    OBJ File Example

    # (c) Copyright 1992 Softimage Inc.
    # Sun Oct 6 17:28:32 1996

    o cube1

    mtllib wavedemo.mtl

    v -5.000000 0.014284 -5.000000
    v -5.000000 0.014284 5.000000
    v -5.000000 10.014284 5.000000
    v -5.000000 10.014284 -5.000000
    v 5.000000 0.014284 5.000000
    v 5.000000 10.014284 5.000000
    v 5.000000 0.014284 -5.000000
    v 5.000000 10.014284 -5.000000
    # 8 vertice

    vn -1.000000 0.000000 0.000000
    vn 0.000000 0.000000 1.000000
    vn 1.000000 0.000000 0.000000
    vn 0.000000 0.000000 -1.000000
    vn 0.000000 -1.000000 0.000000
    vn 0.000000 1.000000 0.000000
    # 6 normales

    # 0 texture vertices

    
    usemtl mat1
    f \
    1//1 2//1 3//1 4//1
    f \
    2//2 5//2 6//2 3//2
    f \
    5//3 7//3 8//3 6//3
    f \
    7//4 1//4 4//4 8//4
    f \
    7//5 5//5 2//5 1//5
    f \
    4//6 3//6 6//6 8//6
    # 6 elements

    Hrc Models