Giter Club home page Giter Club logo

scala-raytracer's People

Contributors

fabricecastel avatar

Stargazers

 avatar

Watchers

 avatar

scala-raytracer's Issues

Flesh out vecmath.scala wrapper for javax.vecmath package

The javax code does some pretty nasty stuff like:

v1.cross(v2, v3)

will set the v1 vector's value to be the result of v2 cross v3. Would be better to have a method defined in the Vector3D wrapper method that takes in a Vector3D and returns a new Vector3D rather than this mutation bullshit.

the wrapper is vecmath.scala

Anti-aliasing

Do a second pass after the initial aliased render and average N squared new rays per pixel whose colour value differs from its neighbours beyond an adjustable threshold

Add unit tests for specs

To run tests, use the "sbt test" command. There's a sample test suite under src>main>test>scala>TriangleSpec.scala for reference

Implement a polynomial solver

For now, we only need to be able to solve roots for polynomials of degree 2, though if we can also have higher degrees as a freebie I can't see why we shouldn't do it.

Implement a new Polysolver class for this purpose with a simple solve(a: Int, b: Int, c: Int) API that returns a List[Int] and disregards complex solutions

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.