By eternanymous
on Wed, 05/29/2013 - 04:31
hii moderator...
how can i replace 3d model at the ImageTargets sample ?I've change *.obj file to *.h and include into ImageTargets.cpp in /jni directoryI've change "input data" and "draw data"
//input dataglVertexPointer(3, GL_FLOAT, 0, comidaVerts);glNormalPointer(GL_FLOAT, 0, comidaNormals);glTexCoordPointer(2, GL_FLOAT, 0, comidaTexCoords);//draw dataglDrawArrays(GL_TRIANGLES, 0, comidaNumVerts); and last I've comipe with ndk-build..no error message but when I tracking chips image, the screen back to about screenplease help me
replace 3d model
Hi, the code that you posted is only valid in OpenGL ES 1.1;
by default the samples use OpenGL ES 2.0;
you should modify the code for 2.0; see the lines starting with glVertexAttribPointer( ... ), and set your verrtex arrays there.
replace 3d model
do you mean like this ?
replace 3d model
The code looks correct, bt make sure you have done all the steps as explained here:
https://developer.vuforia.com/forum/faq/android-how-do-i-replace-teapot
replace 3d model
oke,, I try u'r link..
comidaNumVerts = 732 - is it large ?
replace 3d model
No, 732 is not large.
replace 3d model
now object already exists, but very small
how can I make it look bigger ?
replace 3d model
If you look at ImageTargets.cpp, you can find a variable called kObjectScale.
This is initialized to 3.0 in the sample, you can increase that.
replace 3d model
now my problem with texture..
my object already looks large, but using texture teapot..
how can I make texture like TextureTeapot.png or textureBanana.png with my 3Dmodel ?
how to include the texture in object ?