By silverboy65
on Thu, 11/13/2014 - 09:27
Hi
I use vuforia in android (java). I want replace building.txt with other 3d object. I have a 3d cube in a .obj file and i want convert it to .txt file.
my .obj file is like this:
# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware# File Created: 11.11.2014 15:15:21 ## object Box001# v -25.9754 0.0000 28.7076v -25.9754 0.0000 -18.8244v 24.6450 0.0000 -18.8244v 24.6450 0.0000 28.7076v -25.9754 31.5608 28.7076v 24.6450 31.5608 28.7076v 24.6450 31.5608 -18.8244v -25.9754 31.5608 -18.8244# 8 vertices vn 0.0000 -1.0000 -0.0000vn 0.0000 1.0000 -0.0000vn 0.0000 0.0000 1.0000vn 1.0000 0.0000 -0.0000vn 0.0000 0.0000 -1.0000vn -1.0000 0.0000 -0.0000# 6 vertex normals vt 1.0000 0.0000 0.0000vt 1.0000 1.0000 0.0000vt 0.0000 1.0000 0.0000vt 0.0000 0.0000 0.0000# 4 texture coords g Box001s 2f 1/1/1 2/2/1 3/3/1 4/4/1 s 4f 5/4/2 6/1/2 7/2/2 8/3/2 s 8f 1/4/3 4/1/3 6/2/3 5/3/3 s 16f 4/4/4 3/1/4 7/2/4 6/3/4 s 32f 3/4/5 2/1/5 8/2/5 7/3/5 s 64f 2/4/6 1/1/6 5/2/6 8/3/6 # 6 polygonsand i converted it to .txt file like this:
24-25.97540.000028.7076-25.97540.0000-18.824424.64500.0000-18.824424.64500.000028.7076-25.975431.560828.707624.645031.560828.707624.645031.5608-18.8244-25.975431.5608-18.8244180.0000-1.0000-0.00000.00001.0000-0.00000.00000.00001.00001.00000.0000-0.00000.00000.0000-1.0000-1.00000.0000-0.0000121.00000.00000.00001.00001.00000.00000.00001.00000.00000.00000.00000.0000 but when i run application, object that is displayed is not a cube . how can I convert .obj file to .txt? We have faces in .obj file but where are they used in .txt file?