Giter VIP home page Giter VIP logo

codef's People

Contributors

fpoy avatar n0namen0 avatar p01 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codef's Issues

License?

Under what license is this library?

using codef_3d.js

I am trying to convert the Mindbomb 3D Ball Screen from JS/Codef to C# for conversion to C++/DirectX which I have wanted to do for years but I am having problems with the perspective calculations.

There seems to be no documentation for codef_3d.js

I have tried to separate the shape definition from the transformation but I still don't understand how this works.

Given this setup:
my3d=new codef3D(ballcanvas, 400, 40, 1, 900 );
my3d.vectorball_img(myobjworm, ball );
my3d.group.scale.x=my3d.group.scale.y=my3d.group.scale.z=30;
my3d.group.position.z = mover;
And these rotations:
my3d.group.rotation.x+=0.00;
my3d.group.rotation.y+=0.04;
my3d.group.rotation.z+=0.00;

Is this updating a COPY of the shapes definition:
my3d.group.children[i].position.y = siny-2;

But how is this transformed for display into real x,y coordinates?
Are the bobs transformed and then sorted in Z-order so the furthest away are displayed first?
What are the perspective calculations given the depth of the field and current mover position?

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.