vancegroup / vr-jugglua

VR JuggLua: A Framework for VR Applications Combining Lua, OpenSceneGraph, and VR Juggler
Boost Software License 1.0
11 stars 12 forks source link

Faulty math operation behavior #101

Closed rpavlik closed 11 years ago

rpavlik commented 12 years ago

Should be declarative/modular and type driven. For instance, you can multiply two vectors of the same size together - dot product. you can multiply an vec3 by a matrix or the other order (implied transpose). You can multiply two matrices together. Can multiply a vector by a scalar (though OSG only has a one-sided operator for this).

rpavlik commented 11 years ago

OK, so after a long time, and two attempts using template metaprogramming (Both of which worked in gcc and clang, but both of which blew up vc 2008's compiler), I've resolved this by using code generation before compilation, with Lua and a template system. This compiles on Windows and Linux, and works properly.