Back to Browse

How to provide 3D graph and Biofeedback in VR using Lua Script in D-Flow?

441 views
May 17, 2022
8:37

How to provide 3D graph and Biofeedback in VR using Lua Script in D-Flow? You want to study how the subjects behave if they see a graph of e.g. ground reaction forces or joint angles, etc. You also want to access the details of this biofeedback so a script would be ideal. How can you do this app? This simple app here using Lua in D-Flow shows you one way of doing it. How do you use this simple app in your studies? Here is the Lua code: -- initialization g = g or 0 -- Create a graph if g == 0 then g = graph.create() print("graph created") print(g) end -- get the value value = inputs.get(1) -- set the values graph.setvalue(g, 1, value) graph.setposition(g, {0, 5, -4}) graph.setwidth(g, 10) graph.setlabels (g, 'X values', 'Y values') graph.settitle (g, 'This is my first 3D Graph') graph.redraw(g) #DFlow #Lua #Script #Biofeedback

Download

0 formats

No download links available.

How to provide 3D graph and Biofeedback in VR using Lua Script in D-Flow? | NatokHD