"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Convert .obj to .h

Hi,

while creating the .h file i received this lines in cmd

"defined <@array> is deprecated at C:\Perl\bin\obj2opengl.pl line 154

<Maybe you should just omit the defined<>?>"

what it means????????????????/ 

AlessandroB

Tue, 02/26/2013 - 21:29

Hi, does that message prevents you from building the .h file ?

if it is just a warning and the header file is generated, you could safely ignore it.

Otherwise, you may want to search the internet, as this is a Perl-specific issue; for instance, here is a thread discussing it:

Hi,

I have a cartoon.obj file. How to convert this .obj file into .h file? For example:- In Image target  teapot.h was created. so i wanna create cartoon.h then what should i do?

 

Thank u

Khushi

Hi khushi,

if you search the Forum, this has been discussed in many threads already;

here is a step-by-step tutorial as well:

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

 

hi,

I am new be in xcode dev. Thnnk's for reply, I check out document ,but i dont get how to define my cartoon vertex, Indices like teapotVertices and Indices.

for example:-

 

You need to use a tool that can convert a 3D model from OBJ file format (which is a popular format for 3D models) to a header file .h;

 

Both these links work for me:

https://developer.vuforia.com/forum/android/how-convert-obj-h

http://heikobehrens.net/2009/08/27/obj2opengl/

 

I've tried this a few times now, it used to work for me but no longer is. Could this be a Perl version issue?

 

I have my obj in the same folder as the perl script but when I run it I just get the error attached

You can ignore that warning message;  the tool should still be able to produce the output file (I sometime get the same warning message, but the output .h file is generated).

Thank you for help.

 

Using your advice I'm still getting the same warning and no .h file is being created. Checked around on the net and there isn't much around on this unfortunately

[quote=spacemonkey1985]

Thank you for help.

 

Using your advice I'm still getting the same warning and no .h file is being created. Checked around on the net and there isn't much around on this unfortunately

[/quote]

Hi, all, correct me if i'm wrong

maybe i have a missing point of understanding "how to convert obj to h"

1. putting all file together in one folder (including obj2opengl.pl file)

ex : C:\perl64\bin\