From: Norman Geist (norman.geist_at_uni-greifswald.de)
Date: Mon Dec 01 2014 - 03:15:36 CST

Dear Christian,

 

I would 1st of all try to add a delay between the rotation_matrix updates. Just guessing I would think about 100 updates per second are enough as it is similar to the fps of the graphics window/monitor itself. Updating more frequent is not noticeable. So a delay of about 10 ms could already solve the problem.

 

Norman Geist.

 

Von: Christian Wohlschlager [mailto:Christian.Wohlschlager_at_jku.at]
Gesendet: Samstag, 29. November 2014 13:58
An: norman.geist_at_uni-greifswald.de
Betreff: Antw: AW: vmd-l: Oculus Rift DK2

 

Dear Norman !

 

Thanks alot for the reply with a c++ Programm i open a socket and i send it to vmd where i listen with remote_cl and the it beeing executet,

 

i check in my Programm the Rotation and the scale Matrix from the oculus rift, and then i send it with a socket to vmd where molinfo .. rotaion_matrix is beiing executed. ( if i turn my head right the molekil rotated in left so it gives me the sense of the object is still same with Forward and backward

(Ah gerate habe ich deine E-Mail Addresse geschaut du sprichts deutsch)

 

this works for 10 Secounds and than it stalls i dont know know whats the reason (maybe the reason is i dont whit for the answere for each command )

i think i have to rewrite the remote_ct . i alson dont know if the Speed is fast enough for the oculus rift.

 

 

Danke

 

Christian wohlschlager

 

 

-- Johannes Kepler Universitaet

-- Christian Wohlschlager

-- Altenbergerstr.69

-- 4040 Linz Austria

-- Tel: +43 732 2468 8595

- Mail:christian.wohlschlager_at_jku.at

>>> "Norman Geist" <norman.geist_at_uni-greifswald.de> 28.11.14 12.34 Uhr >>>

Hi Christian,

 

I also notice that VMD gets stalled when writing something to the console while it’s still doing something else. Like entering a command while vmd is still wrapping f.i. So you might want to add a delay between your writes of the rotation matrix and see if this solves it.

 

But, actually I don’t really understand your problem description as you say you send data to oculus rift, but seem to write data to vmd. So could you please explain more detailed what exactly you do and how you call your C tool?

 

Norman Geist.

 

Von: owner-vmd-l_at_ks.uiuc.edu [mailto:owner-vmd-l_at_ks.uiuc.edu] Im Auftrag von Christian Wohlschlager
Gesendet: Freitag, 28. November 2014 10:47
An: vmd-l_at_ks.uiuc.edu
Betreff: vmd-l: Oculus Rift DK2

 

Hey you all !

I made a small C Programm , sending the head coordinates (rotation matrix and scale matrix) to the oculus rift. Well this works, i execute .>

   molinfo top set {rotate_matrix] {{{....}}}

works yes. but after some time (1 Minute or so ) the vmd gets stalled ,seems (only seems) to me that vmd is setting to much of roation and scale matrices so it get stalled, Am i right ( i dont hope so) or does anybody have a better idea to send the coordniates to vmd. ???

thank you

christian

 

-- Johannes Kepler Universitaet

-- Christian Wohlschlager

-- Altenbergerstr.69

-- 4040 Linz Austria

-- Tel: +43 732 2468 8595

- Mail:christian.wohlschlager_at_jku.at