By Omen_20
on Wed, 06/20/2012 - 17:03
Hi, I've done some OpenGL in C++ before with GLUT but everything in ImageTargets is overwhelming me. The basic stuff I've done in Java for Android wasn't nearly as involved.
My first problem is trying to find out how to get the origin of a Trackable. Looking at the API I'm thinking it may be within the pose matrix? Once I have the origin I will be putting it into an array, and then I want to pass that array to glVertexPointer and then run glDrawArrays with a line strip.
I see that in
Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargetsRenderer_initRendering
is where the teapot is being rendered on each trackable. If I'm going to draw lines between the origin of each trackable, would I want to do my rendering here or somewhere else?
Thanks!
Re: Basic OpenGL drawing
Re: Basic OpenGL drawing
Re: Basic OpenGL drawing
Re: Basic OpenGL drawing
Re: Basic OpenGL drawing
Re: Basic OpenGL drawing
Re: Basic OpenGL drawing
Re: Basic OpenGL drawing
Re: Basic OpenGL drawing
Re: Basic OpenGL drawing