Render custom .OBJ files in android

+12 votes
asked Dec 3, 2017 by banjampebenging (220 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.

1 Answer

0 votes
answered Sep 2, 2018 by valentinarambulo (280 points)
Hello, do you found any solution? help me please
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...