Coder Social home page Coder Social logo

Comments (3)

JonShemitz avatar JonShemitz commented on August 22, 2024
mSceneObject.getTransform().setRotation(1.0f,
BoundsValues.getFloatList().get(0),
BoundsValues.getFloatList().get(0),
BoundsValues.getFloatList().get(0));
// ...
mSceneObject.getTransform().setRotation(1.0f,
BoundsValues.getFloatList().get(1),
BoundsValues.getFloatList().get(1),
BoundsValues.getFloatList().get(1));

This is probably a genuine bug - but what are the values returned by BoundsValues.getFloatList().get(0) and BoundsValues.getFloatList().get(1)? Please try to give us self-contained bug reports that we can reproduce and triage.

from gearvrf.

santhyago avatar santhyago commented on August 22, 2024
private static final float UNPICKED_COLOR_R = 0.7f;
private static final float UNPICKED_COLOR_G = 0.7f;
private static final float UNPICKED_COLOR_B = 0.7f;
private static final float UNPICKED_COLOR_A = 1.0f;
BoundsValues.getFloatList().get(0) = Float.MIN_VALUE = 1.4E-45
BoundsValues.getFloatList().get(1) = Float.MAX_VALUE = 3.4028235E38
mSceneObject = getColorBoard(1.0f, 1.0f);
private GVRSceneObject getColorBoard(float width, float height) {
        GVRContext gvrContext = TestDefaultGVRViewManager.mGVRContext;
        ColorShader mColorShader = new ColorShader(gvrContext);
        GVRMaterial material = new GVRMaterial(gvrContext, mColorShader.getShaderId());
        material.setVec4(ColorShader.COLOR_KEY, UNPICKED_COLOR_R, UNPICKED_COLOR_G, UNPICKED_COLOR_B, UNPICKED_COLOR_A);
        GVRSceneObject board = new GVRSceneObject(gvrContext, width, height);
        board.getRenderData().setMaterial(material);
        return board;
}

from gearvrf.

JonShemitz avatar JonShemitz commented on August 22, 2024

BoundsValues.getFloatList().get(1) = Float.MAX_VALUE

Thanks - it's probably an over (or under) flow error. Would you take a look, @guodongrong? jni/objects/components/transform.h defines

float rotation_pitch() const {
    return glm::pitch(rotation_);
}

I see that glm::pitch() takes an precision type parameter, but I don't know enough about (quaternions or) glm to start poking around.

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.