Giter Site home page Giter Site logo

Comments (3)

skelterjohn avatar skelterjohn commented on August 24, 2024

I think that, if you're working with opengl, it'd be better to use a matrix lib written specifically with opengl in mind. That is, only 3x3 or 4x4 matrices, backed by float32s. I know that at least one package like this exists, but I'm having a lot of trouble tracking it down.

I'm not going to built float32 support into go.matrix, but it'd be straightforward and fast to write your own function that, for instance, took a DenseMatrix and turned it into a row-major []float32.

from go.matrix.

Nvveen avatar Nvveen commented on August 24, 2024

Although I think the overhead for such a conversion is too big for OpenGL requirements, I think I agree go.matrix might be a bit much for the user case scenario's OpenGL development entails.

from go.matrix.

skelterjohn avatar skelterjohn commented on August 24, 2024

Right. For typical opengl stuff you need only the basic matrix operations -
scale, add, multiply. These things will be super fast if you are only
dealing with 4x4 matrices and you can hard-code everything. For trickier
things that go.matrix can offer, like the various decompositions, the time
spent doing the decomp will overwhelm the time spent converting it between
formats.

On Tue, Jan 29, 2013 at 10:47 AM, Neal van Veen [email protected]:

Although I think the overhead for such a conversion is too big for OpenGL
requirements, I think I agree go.matrix might be a bit much for the user
case scenario's OpenGL development entails.


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-12840904.

from go.matrix.

Related Issues (11)

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.