vancegroup / vr-jugglua

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

IntersectVisitor:getHitList(osg.LineSegment) method not found. #127

Closed lpberg closed 10 years ago

lpberg commented 10 years ago

VRJuggLua is not able to find IntersectVisitor:getHitList(osg.LineSegment)

gist: https://gist.github.com/lpberg/5ca2887bbef185e78724

rpavlik commented 10 years ago

I'd try stepping through this on a Linux debug build.

rpavlik commented 10 years ago

OK, so it turns out that osgIntrospection didn't register a converter from T * to const T * even though it's a simple static cast. I've figured it out and updated the cppintrospection and osg (mine) repos: haven't yet updated the windows osg binaries to include the fix for this and a bunch of other improvements, but you're welcome to do so (you'll just need to build and copy the osgwrapper*.dll files as well as osgIntrospection.dll/lib, and of course the headers - this should keep you from having to totally re-build OSG and all its deps. VR JuggLua re-build then required because of header changes.)

rpavlik commented 10 years ago

(see https://github.com/rpavlik/cppintrospection/commit/1602de0c96035487a1ff1f391ceaa9a57a16aaee for the deceptively simple-looking patch)

rpavlik commented 10 years ago

OK, so with the latest osg binaries I just built on Windows, https://gist.github.com/rpavlik/e72a234a8e21f3d33759 runs successfully. I'll close this bug once I get the binaries up in the repo.

rpavlik commented 10 years ago

Fixed in the latest snapshots!