Log in or register to post comments

how to use obj2opengl.pl ?

March 29, 2013 - 3:01am #1

 

Now, I have a 3-d model to .obj file extension, but I use Script obj2opengl.pl.
Please suggest how to apply step-by-step please?

how to use obj2opengl.pl ?

October 4, 2013 - 2:02am #7

canceled

how to use obj2opengl.pl ?

March 30, 2013 - 2:31am #6

Hi, the code changes needed are described  step-by-step here: 

https://developer.vuforia.com/forum/faq/android-how-do-i-replace-teapot

 

how to use obj2opengl.pl ?

March 29, 2013 - 11:29pm #5

AlessandroB wrote:

You need to install Perl, as that is a perl script.

 

Thanks for the advice. Now I convert file.
 
But I have a problem that when I use the .h file, script file, then convert the .obj file's .h, why is not the same at all method "static const unsigned short teapotIndices [NUM_TEAPOT_OBJECT_INDEX]", there are no.
 
Don't know if I need to change or add to the Script or not because this post. Link
 
Must enter code exactly that as well?
 
Thanks

 

how to use obj2opengl.pl ?

March 29, 2013 - 7:21am #4

You need to install Perl, as that is a perl script.

how to use obj2opengl.pl ?

March 29, 2013 - 7:12am #3

AlessandroB wrote:

hi,

if you want to convert your .obj file into a .h header file, you simply need to:

- copy your .obj file into the same directory where the obj2opengl.pl script is located

- open cmd console, and type:

    obj2opengl.pl my_model.obj

This should produce a file called "my_model.h"

Then you can put the header file (my_model.h) in the jni directory of your project and follow the detailed instructions reported here:

https://developer.vuforia.com/resources/dev-guide/replacing-teapot

 

 

I try to follow the steps.
 
Once I was done, and then press Enter, it will open the file with notepad, obj2opengl.pl!., and nothing happens at all.
 
What is or?

how to use obj2opengl.pl ?

March 29, 2013 - 5:28am #2

hi,

if you want to convert your .obj file into a .h header file, you simply need to:

- copy your .obj file into the same directory where the obj2opengl.pl script is located

- open cmd console, and type:

    obj2opengl.pl my_model.obj

This should produce a file called "my_model.h"

Then you can put the header file (my_model.h) in the jni directory of your project and follow the detailed instructions reported here:

https://developer.vuforia.com/resources/dev-guide/replacing-teapot

 

Log in or register to post comments