Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
H3D.org Feeds

Forum Index


Board index » All Posts




Re: extracting elements from a vec3f
#1
Just popping in
Just popping in


Thank you very much! This is exactly what I was looking for!

Posted on: 11/10 15:25
Top


Re: extracting elements from a vec3f
#2
Webmaster
Webmaster


In python or C++?
python code
#find the code in the manual to get an instance of the haptics device. Let us say you have done this and the haptics device is in a variable called hd. Then do the following
hd.trackerVelocity.getValue().x


It works the same way in C++ but with -> instead of . in some of the places due to it being pointers.
hd - The device instance as I pointed out above
trackerVelocity - Access to the field
getValue() - Get the value of the field. The value will be of type Vec3f()
x - The x component of the value of the field.

Posted on: 11/10 9:10
Top


extracting elements from a vec3f
#3
Just popping in
Just popping in


Hello everyone,

I'm very new to H3DAPI. Gone through most of the tutorials, but I can't figure out how to extract an element of a Vec3f vector.

For example, using H3D::H3DHapticsDevice Class Reference, there's a function called trackerVelocity. This data is in a SFVec3f format. I want to access the three Cartesian velocities separately and store them to a variable to further manipulate using regular python math operations.

Thank you very much to anyone willing to spare their time to help!

Regards,
EzraBiom

Posted on: 11/9 16:33
Top


Re: Freeglut error when starting Quadbufferstereo application
#4
Quite a regular
Quite a regular


Hi,
Yeah I saw that this morning when i got to the Office. Updated the Externals and using it now! Thx for the update!

Posted on: 10/16 10:21
Top


Re: Freeglut error when starting Quadbufferstereo application
#5
Webmaster
Webmaster


Hello,

We had to revert to previous revisions of freeglut due to some kind of bug. Please update External and try now.

Posted on: 10/16 9:39
Top


Re: Freeglut error when starting Quadbufferstereo application
#6
Webmaster
Webmaster


Then the problem was as I guessed.
Use the old freeglut until we have dealt with it then.
Will set it up in our task management system.

Posted on: 10/11 15:54
Top


Re: Freeglut error when starting Quadbufferstereo application
#7
Quite a regular
Quite a regular


Yes, latest trunk version of H3D!
Revision 479 of the externals seems to be an upgrade of freeglut to 3.0.0 and from there the problems starts. 478 works fine as before! I did not revert H3DAPI in the testing!


Posted on: 10/11 14:21
Top


Re: Freeglut error when starting Quadbufferstereo application
#8
Webmaster
Webmaster


Latest trunk that is I assume?
So you got an updated freeglut build?
Please just revert External freeglut to a previous version and see if it works then.
If so then we need to figure out what is missing.

Otherwise please update H3DAPI to a previous revision as well.

Posted on: 10/11 13:47
Top


Freeglut error when starting Quadbufferstereo application
#9
Quite a regular
Quite a regular


Hi!

Background:
Latest H3D-version compiled with the vs2015 Externals.
Uses Nvidia Vision 3D with Quad Buffer Stereo
Worked like a week ago when compiling it together.
Starting the application without quad buffer stereo does work as usual...

Error text:
freeglut (H3DLoad): ERROR: No display callback registered for window 1.

Any ideas to solve this? :)

Posted on: 10/10 15:21
Top


Re: PlanarReflector anaglyph fix
#10
Just popping in
Just popping in


Hello!

Thanks you for pointing out on how to properly provide patches. I'll do it ASAP.

Best regards, Innokentiy.

Posted on: 10/3 22:33
Top



TopTop
(1) 2 3 4 ... 959 »






(C) 2012 SenseGraphics AB    ---    Powered by XOOPS