Coder Social home page Coder Social logo

hacube's People

Contributors

likang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hacube's Issues

魔方旋转到正面时存在一道阴影裂缝

如下图:

bug_feedback

复现步骤:

不修改代码,旋转魔方到正面,角度刚刚好时会出现该问题。

也可通过代码直接复现问题,reset时注释掉旋转的代码,如下:

// file lib/cube.dart 
  void reset() {
    cameraTransform.setIdentity();
    cameraTransform
      ..setIdentity()
      ..setEntry(3, 2, -0.0015);
      // from https://medium.com/flutter-io/perspective-on-flutter-6f832f4d912e
      // ..rotate(Vector3(0.0, 1.0, 0.0), -math.pi / 4) // rotate left 45c
      // ..rotate(Vector3(1.0, 0.0, -1.0), -math.pi / 8); // show the orange face
    pieces.forEach((p) {
      p.reset();
      positionMap[p.position] = p;
    });
    cameraChanged();
  }

最后,非常感谢大佬开源本项目,3D魔方真的很酷!

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.