Common OpenGL issues

May 3, 2013 - 1:28am #1

The Vuforia native samples rely on the use of OpenGL ES (version 1.1 and 2.0) for rendering the video background as well as the 3D augmentation.

The following FAQs address the most common issues and topics on Vuforia SDK samples and the use of OpenGL ES.

How to replace the teapot 3D model:

https://developer.vuforia.com/forum/faq/android-how-do-i-replace-teapot

Topic locked

Vuforia and OpenGL ES

June 29, 2011 - 10:54am #1

OpenGL ES is the standard for rendering 3D content on mobile platforms. The QCAR samples show you how to set up an OpenGL rendering context and render simple 3D content (e.g. static, textured models) using OpenGL ES 1.1 or 2.0. QCAR does not provide support for loading standard model formats or rendering with animation, it's up to you to integrate 3rd party solutions (or write your own!) This forum is a place for the community to discuss all issues related to OpenGL ES. Our moderators will chime in where they can, but in general we do not provide support for most rendering issues.

Topic locked

How can I obtain vertex array of 3D Molde (.obj)?

July 18, 2018 - 4:25am #1

Hello guys, 

I am newbie on Vuforia. I am making an android application and want to change teapot for image target. I read many post about "Replacement of Teapot" but I understood it partically. I found some free 3D models(.obj) and opened it with notepad to get vertex arrays of model. There are many float numbers in mix form. I know that, I should change the vertex of teapot.java with new one. But I do not know how I do. I am not using NDK. How can I do it? And am I on right way?

Log in or register to post comments

Replace teapot with banana

February 4, 2018 - 9:41pm #1

Hi,

I managed to setup the default examples for image target, and I am able to see the teapot. 

I am trying to replace the teapot object with the banana object for image targets, but can't see the banana. Don't see any console errors either.

I have gone through most of the related posts in this forums and other places, but couldn't figure out why.

Here are what I have changed in code:

- Updated the scale factor

//    const float kObjectScaleNormal = 0.003f;

    const float kObjectScaleNormal = 100.f;

Log in or register to post comments

3D Object rendering

November 3, 2017 - 11:30am #1

Hello , Im new into 3D environment, so anyone can tell me how to render an obj file with multiple textures. I can only render an object with single texture, I dont know how to add multiple textures and load mtl files in Vuforia.. Please some one help me.. Thanks in advance

Log in or register to post comments

Any plans to add number recognition?

September 23, 2017 - 4:54am #1

Hi I am wondering if you have any plans to add number recognition to your unity asset?

The text recognition works very well but I would really need to be aböe to recognize numbers as well!

 

/Daniel

Log in or register to post comments

Replacing target shape with 2D Image

July 24, 2017 - 10:02pm #1

It has been achieved to replace the teapot with 2D image, but if I want to track the co ordinates of the target shape, what should I use?

If I use this code below from "How To Draw a 2D Image on top of a Target using OpenGL ES" 



Vuforia::Vec2F targetSize = ((Vuforia::ImageTarget *) trackable)->getSize();



It causes error in Android Studio saying "Image Target is abstract function"



What to do now to get the target coordinates and? 

Log in or register to post comments

opengles 2.0 error 1282 after call glDrawElements(…) method

July 18, 2017 - 3:26am #1

I have some troubles with opengles 2.0. Currently I trying to display 3D teapot model without success. Method GLES20.glDrawElements generate opengl error with number 1282 and nothing is displayed on screen.

My draw method code:

public void draw(float[] tfMVPMatrix) {

Log in or register to post comments

Digits recognize

April 26, 2017 - 7:18am #1

Hello. Can i recognize float numbers with vuforia?

Log in or register to post comments

How to Render Text

April 5, 2017 - 8:11am #1

Hello,

Log in or register to post comments