Re: [osg-users] Android osgPlugins

2015-04-27 Thread Rafa Gaitan
Hi, Yes indeed is related to the STL. Recent versions of the NDK should have better support but I always find problems with that. In the end I always copy the gnustl_static library from the android ndk to the OSG_SDK, but the android ndk should support it without that kind of workarounds. Could

Re: [osg-users] Absolute_Rf to Relative_Rf coordinates

2015-04-27 Thread Robert Osfield
Hi Joao, Subgraphs under a ABSOLUTE_RF Transform are effectively in their own local world coordinate frame, they don't related to other word coordinate frames. You can relate to them view the eye coordinate frame if you want though, or shift them from one world coordinate frame into eye

Re: [osg-users] osg::LineSegment intersect with Box and Sphere inconsistency

2015-04-27 Thread Wojciech Lewandowski
I believe both can be correct but it looks like in Box case r1 is ratio of segment length measured from start and r2 measured backwards from the segment end. For Sphere both r1 and r2 are measured from start. So here is the inconsistency... Cheers, Wojtek 2015-04-27 12:38 GMT+02:00 Robert Osfield

Re: [osg-users] osg::LineSegment intersect with Box and Sphere inconsistency

2015-04-27 Thread Robert Osfield
Hi Wojtek, Thanks for the test code. I've built it on my system with OSG svn/trunk and get the same values reported. The values don't look appropriate in either case, I don't know the cause of the issue yet so am doing a code review now. Robert. On 25 April 2015 at 13:11, Wojciech Lewandowski

[osg-users] Absolute_Rf to Relative_Rf coordinates

2015-04-27 Thread João
I'm displaying some text in a 3D scene using a transform with an absolute reference frame. I now need to find out what the world coordinates of the text are, is that any way to easily obtain that information?

Re: [osg-users] Enabling Vsync gives dramatic increase in latency

2015-04-27 Thread Jan Ciger
On Mon, Apr 27, 2015 at 3:20 PM, Björn Blissing bjorn.bliss...@vti.se wrote: Well, this is pretty much exactly my method. But instead of an oscilloscope I sample the signal with a A/D capture card at 10KHz. Here is the promised data about the Oculus Rift DK1 DK2: Oculus Rift DK1 + Vsync

[osg-users] How to switch two state of animation Object smoothly?

2015-04-27 Thread Nguyen Quang Nam
Hi Robert, I have two animations of an Object, such as Jog.FBX and Run.FBX. Whel an animation is Jog, i want finish it's duration before moving to Run state ( or vice versa ), but i don't know how to do this. Could you show me the way ( or book, link, knowledge ...) that i can switch

Re: [osg-users] osg::LineSegment intersect with Box and Sphere inconsistency

2015-04-27 Thread Wojciech Lewandowski
Hi Robert, I am little concerned that some end user code will be using these intersects methods and working around their inconsistency, so if we fix them then we could end up breaking end user code. I am one of those users now ;-). However, I adopt easily. Others may not notice the change,

Re: [osg-users] osg::LineSegment intersect with Box and Sphere inconsistency

2015-04-27 Thread Robert Osfield
Hi Wojtek, On 27 April 2015 at 12:15, Wojciech Lewandowski w.p.lewandow...@gmail.com wrote: I believe both can be correct but it looks like in Box case r1 is ratio of segment length measured from start and r2 measured backwards from the segment end. For Sphere both r1 and r2 are measured from

Re: [osg-users] Enabling Vsync gives dramatic increase in latency

2015-04-27 Thread Björn Blissing
d_a_heitbrink wrote: What we did for our test was trigger a A/D deviceto I think a go from 0 to 5v, and a we added a line in our fragment shader to over ride the color and set it to white, or black depending on a value of a uniform. We change the Uniform to 1 (to set it to white) and

Re: [osg-users] Enabling Vsync gives dramatic increase in latency

2015-04-27 Thread Björn Blissing
Some minor notes about the latest numbers. First of all, the Oculus units were used as pure screens, i.e. no lens distortion shaders. For DK2 this means running the unit in extended mode. (To be able to run via Direct Mode I would have to modify my test program to use the Oculus SDK.)

Re: [osg-users] osg::LineSegment intersect with Box and Sphere inconsistency

2015-04-27 Thread Robert Osfield
Hi Wojtek, On 27 April 2015 at 13:16, Wojciech Lewandowski w.p.lewandow...@gmail.com wrote: I am one of those users now ;-). However, I adopt easily. Others may not notice the change, though. Perhaps better solution would be to leave the functionality as is and clearly rename and/or comment

Re: [osg-users] osg::LineSegment intersect with Box and Sphere inconsistency

2015-04-27 Thread Robert Osfield
Hi Wojtek, I have decided I'd rather change the method name and break the build rather than silently change the behaviour of method in a way that could break end user code. What I have gone for is: --- include/osg/LineSegment (revision 14855) +++ include/osg/LineSegment (working copy)