Code Monkey home page Code Monkey logo

embree.net's People

Contributors

amenzies avatar davepermen avatar tomcrypto avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

embree.net's Issues

Missing .dlls

The following files appear to be missing in the download zip:
embree.dll, tbb.dll, tbbmalloc.dll

MathLibrary Matrix Invert is wrong

It should be (Something like):

public static Matrix Invert(Matrix mat)
        {
            // Work out determinant of the 3x3 submatrix.
            var det = mat.U.X * (mat.V.Y * mat.W.Z - mat.W.Y * mat.V.Z)
                    - mat.V.X * (mat.W.Z * mat.U.Y - mat.W.Y * mat.U.Z)
                    + mat.W.X * (mat.U.Y * mat.V.Z - mat.V.Y * mat.U.Z);

            if (Math.Abs(det) < 0)
                throw new ArgumentException("Matrix is not invertible");


            float ux = mat.V.Y * mat.W.Z - mat.V.Z * mat.W.Y;
            float uy = mat.W.Y * mat.U.Z - mat.U.Y * mat.W.Z;
            float uz = mat.U.Y * mat.V.Z - mat.U.Z * mat.V.Y;
            float vx = mat.W.X * mat.V.Z - mat.V.X * mat.W.Z;
            float vy = mat.U.X * mat.W.Z - mat.W.X * mat.U.Z;
            float vz = mat.V.X * mat.U.Z - mat.U.X * mat.V.Z;
            float wx = mat.V.X * mat.W.Y - mat.W.X * mat.V.Y;
            float wy = mat.W.X * mat.U.Y - mat.U.X * mat.W.Y;
            float wz = mat.U.X * mat.V.Y - mat.V.X * mat.U.Y;

            Vector inv_u = new Vector(ux, uy, uz);
            Vector inv_v = new Vector(vx, vy, vz);
            Vector inv_w = new Vector(wx, wy, wz);

            // Transform the translation column by this inverse matrix.
            var inv_t = -(mat.T.X * inv_u + mat.T.Y * inv_v + mat.T.Z * inv_w);

            return new Matrix(inv_u, inv_v, inv_w, inv_t);
        }

Error running sample code

Hi, this project is a great help for c# developers. I would like to use Embree in a c# project. However I am having some problems using the sample code.

_Embree.NET Sample

[+] 64-bit mode.
[+] Building a test scene.
[!] Error: An invalid operation was attempted on an Embree object.

========= STACK TRACE =========

at Embree.RTC.CheckLastError() in s:\Raytracer\Embree.NET-master\Library\Native.cs:line 92
at Embree.Scene`1.Commit() in s:\Raytracer\Embree.NET-master\Library\Embree.cs:line 257
at Sample.Renderer..ctor() in s:\Raytracer\Embree.NET-master\Sample\Program.cs:line 179
at Sample.Program.Main(String[] args) in s:\Raytracer\Embree.NET-master\Sample\Program.cs:line 325_

Could you help me to figure this out? Thank you.

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.