kishan-dada / panoramagl-android

Automatically exported from code.google.com/p/panoramagl-android
0 stars 0 forks source link

PanaromaGL 0.2 beta hotspot issue #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create hotspot using json file.
2. Click on hotspot, onclick doesn't trigger.
3. It rather triggers if clicked slightly right and upward from the place where 
panaroma actually created.

What is the expected output? What do you see instead?
I'm expecting click event should trigger on clicking hotspot but I am seeing 
hotspot click event is getting trigger if clicked slight up and right. 

What version of the product are you using? On what operating system?
I'm using 0.2 beta. Android Nexus 7

Please provide any additional information below.
Android version 4.3

Original issue reported on code.google.com by shi...@gmail.com on 29 Nov 2013 at 3:31

GoogleCodeExporter commented 9 years ago
I've got the same problem. Anybody solved the problem?

Original comment by jakubo...@gmail.com on 2 Jan 2014 at 1:50

GoogleCodeExporter commented 9 years ago
When you run the hello world, you notice the hotspot is not in the centre of 
the screen. However pressing the centre of the screen hits the hotspot.

Original comment by alanatbu...@gmail.com on 6 May 2014 at 11:37

GoogleCodeExporter commented 9 years ago
I have seen this on motorola Xoom. Running 4.0.4

Original comment by alanatbu...@gmail.com on 6 May 2014 at 11:39

GoogleCodeExporter commented 9 years ago
It's down to the unusual use of viewport.

In PLRenderer I have fixed by this:

public boolean resizeFromLayer(GL11ExtensionPack gl11ep)

  mViewport.x=0;
  mViewport.y=0;
  mViewport.width = mSize.width;
  mViewport.height = mSize.height;  

public void render(GL10 gl)

  float viewportscale = PLConstants.kViewportScale
                        * mViewport.width / (float) PLConstants.kViewportSize;
  gl.glScalef(1.0f, mViewport.width / (float) mViewport.height,                     viewportscale);

Original comment by alanatbu...@gmail.com on 6 May 2014 at 1:52