Render custom .OBJ files in android

0 votes
asked Dec 3 by banjampebenging (120 points)

Hi

in HelloAR android example the BoxRenderer renders a box on the target. but I want to render cusom .OBJ files.

i parsed the obj file and extracted vertices and faces successfully. 

i replaced my own renderer with the BoxRenderer and received projection and trans matrices(from HelloAr class just like BoxRenderer) and calculated the position of the vertex (in vertex shader) like this : 

gl_Position = proj*trans*coord;

where coord (i assume is the current vertex (x,y,z)?)

but it renders nothing when finds the image target.

please share some code for rendering custom .obj files.

thanks in advance.

Please log in or register to answer this question.

Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...