Git Product home page Git Product logo

molang-grapher's People

Contributors

jannisx11 avatar sirlich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

molang-grapher's Issues

Using variable.particle_age in ternary expression returns wrong result

While playing a bit with molang grapher, I discovered, that seemingly the same expression is evaluated very differently:

This is evaluated correctly:

1 - (time == 0 ? 0 : math.pow(2, (time * 10) - 10))

but this don't:

1 - (variable.particle_age == 0 ? 0 : math.pow(2, (variable.particle_age * 10) - 10))

The same bug happens when using this expression in snowstorm, so it might be an issue with MolangJS or both usages of this library have a bug.

Viewer ignores aliases

According to the documentation, this expression math.cos(q.anim_time*360)*10 should work perfectly fine and display a cosine wave. Unfortunately, in the current state of the grapher, the q.anim_time is ignored completely and it is treated as math.cos(360)*10 which is just a straight line. Using q.anim_time rather than query.anim_time works perfectly fine within the Blockbench program, so it seems fitting that the grapher should reflect that and show the proper graph.

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.