Log in or register to post comments

Showing translucent texture when detecting marker.

April 8, 2013 - 4:39am #1

Hi, I am following VideoPlayback Sample project in Xcode. I set my own markers and Images and videos as well. Images and Videos are coming from Webservice. So all code working fine but sometime when  I upload image on CMS, on few Images it shows translucent Images on markers but not all Images. What I have observed after changing types and size of Images, It mostly show .png Image fine but not show .JPG(not all but few of them). I also change resolutions and dimensions of Image but couldn't get any hint that what exactly Image I need to uplaod to make stable output. Also it perform well on iPhone5(iOS6.1) and iPhone4S(iOS6.0) but only occuring issue in iPhone4(iOS4.3). I also update lates SDK of Vuforia on today. 

I attached screenshot of Images. On iOS 6.png it show proper Images but on iOS4.3 it shows translucent Image. 

Kindly guide me what and where I am doing wrong and also what is standard or guide lines for Image to show as a texture?

Thanks in advance. 

Cheers.

AttachmentSize
Image icon iOS 4.png750.19 KB
Image icon iOS 6.png890.65 KB

Showing translucent texture when detecting marker.

May 13, 2013 - 1:22am #10

Like I said:

You can enable the states when required and disable them when not required.

ENABLE_TRANSPARENCY

    Render Glass

DISABLE_TRANSPARENCY

    Render Solid Object

 

You may have more luck searching elsewhere as this is not a Vuforia issue.

 

Do a web search for blending and transparency in OpenGL ES.  

 
HTH
 
N

Showing translucent texture when detecting marker.

May 12, 2013 - 10:42pm #9

dear NalinS i need transperency on glass only not on entire solid model glass is only 25% of the model.

Showing translucent texture when detecting marker.

May 9, 2013 - 6:06am #8

You can enable the states when required and disable them when not required.

HTH

N

Showing translucent texture when detecting marker.

May 9, 2013 - 4:02am #7

Dera it helped, but the issue is it put transperency on entire model that is not required.

kindly suggest something. thanks

Showing translucent texture when detecting marker.

April 9, 2013 - 2:32am #6

Awesome!  glad I could help :)

Showing translucent texture when detecting marker.

April 9, 2013 - 1:21am #5

Thanks Nalin, It Worked!!! Thanks for help.

Showing translucent texture when detecting marker.

April 8, 2013 - 7:15am #4

Alpha channel images have transparency, so you can see through them as a result of blending.

The sample has a VuforiaSizzleReel_1.png which has no alpha (this is the keyframe textures that shows at the beginning) along with a icon_play.png which does have an alpha channel.

This icon is blended on top as you can see from the following code:

 

            // Blend the icon over the background

            glEnable(GL_BLEND);

            glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

You can disable blending by replacing this code with the following:

 

            glDisable(GL_BLEND);

If you do this in the videoplayback sample, the play icon will appear with a black border which replaces the previous transparent border, because now no blending is taking place.

Chances are that some of your images have an alpha channel so you can either convert them to straight RGB or disable blending as shown above.

 

HTH

N

 

 

Showing translucent texture when detecting marker.

April 8, 2013 - 6:24am #3

 

  • Do any of the images have an Alpha channel

What If Images have Alpha Channel?

  • Are these images meant to be image targets? i.e. is the dollar bill meant to be from the camera feed or is it an image target?

Yes the Image target and this is meant a simple 2d Images which shows when marker detects, like "Play button Image" before video playing on marker.

  •  Is the ios4.png showing that the video is translucent?  as opposed to the images being translucent?

This not happen with Video only for Images and ios4.png and ios6.png have same Images.

  • What do you mean?  Are you talking about Image Targets? To show as a texture for what?

I meant again like play button Image, if I want to change play button Image so what should I need to do for replace Image I am talking about Image resolution and Types, because I am adding random Image few will become translucent and others shows proper Image.

Showing translucent texture when detecting marker.

April 8, 2013 - 5:10am #2

HI Aleem,

A few questions:

  • Do any of the images have an Alpha channel
  • Are these images meant to be image targets? i.e. is the dollar bill meant to be from the camera feed or is it an image target?
  • Is the ios4.png showing that the video is translucent?  as opposed to the images being translucent?

 

what are guide lines for Image's types and dimensions to show as a texture?

What do you mean?  Are you talking about Image Targets? To show as a texture for what?

 

N

 

Log in or register to post comments