Coder Social home page Coder Social logo

Comments (8)

chenchao1407 avatar chenchao1407 commented on August 22, 2024

I will take a look at that later.

Do you mind sending your test sample to me? My email address is [email protected]

from gearvrf.

JonShemitz avatar JonShemitz commented on August 22, 2024

Yes, please do send along test code - I did a quick smoke test, and saw no flickering:

GVRTextViewSceneObject sceneObject, sceneObject2;

/* snip */

@Override
public void onInit(GVRContext gvrContext) {
    GVRScene nextMainScene = gvrContext.getNextMainScene();

    sceneObject = new GVRTextViewSceneObject(gvrContext, mActivity);
    textSize = sceneObject.getTextSize();

    sceneObject2 = new GVRTextViewSceneObject(gvrContext, mActivity);

    // set the scene object position
    sceneObject.getTransform().setPosition(0.0f, 0.0f, -2.0f);
    sceneObject2.getTransform().setPosition(0.1f, 0.1f, -1.0f);

    // add the scene object to the scene graph
    nextMainScene.addSceneObject(sceneObject);
    nextMainScene.addSceneObject(sceneObject2);

    sceneObject2.setText("scene object 2");
}

from gearvrf.

nathanalmeida avatar nathanalmeida commented on August 22, 2024

I've sent the code to chen`s email

from gearvrf.

chenchao1407 avatar chenchao1407 commented on August 22, 2024

Hi Nathan

I tested with your codes and I don't see the view flickering. Can you tell me what device you used to test? Is it Qualcomm chipset(adreno) or Samsung chipset(mali)?

from gearvrf.

nathanalmeida avatar nathanalmeida commented on August 22, 2024

It is a Qualcomm.

It's the scene objects that flick when we keep moving our head. Have you run the sample in Oculus?

from gearvrf.

chenchao1407 avatar chenchao1407 commented on August 22, 2024

Yeah. I still can't see flickering or blinking. What is your android version?

Thanks in advance.

from gearvrf.

nathanalmeida avatar nathanalmeida commented on August 22, 2024

My android version is 5.0.1

I am using a note 4, but I noticed that on S6 it is harder to notice this with only 2 GVRTextViewSceneObjects. Please change the sample code I sent to:

for (int i = 0; i < 5; i++) {
...

It is easier to see it when there are more objects in scene.

Now with more objects, they are also blinking.

from gearvrf.

chenchao1407 avatar chenchao1407 commented on August 22, 2024

Hi.
We just found there are two side effects we can see in your sample. One is because that in your sample, every GVRTextViewSceneObject has the same Z-value and they are overlapping with each other so there will be kind of Z-offer fighting effect. Actually all 2-D SceneObjects will trigger such effect in that case and I am not quite sure if it is a bug.

Another thing we can see is like flickering while moving head, maybe it is what you talked about. It is caused by the bad performance of SurfaceTexture and I just make a work around patch. Maybe you can take a look at it #134

from gearvrf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.