I want to control a rhino-view-camera by the movement of a wii-nunchuck. I get the values from the wii over an arduino (all buttons, accelerators and joystick) and want to use them now for camera movement.
the first problem is that I can only move an object relative to the values I get (means that when there are values from -1 to 1 this would be the whole range of movement). what I want to do is to add all values steady so that I can have an absolute movement of my object.
second problem is that there are no camera objects in grasshopper yet. is there a possibility to do it with .net?
damien,
I tested your definition, really nice work! it seems that camera controlling is not that difficult in .net (if you are not a total newbie like me). in your definition you flow along defined paths to evaluate the camera position and target. in my case it would be no problem to feed your .net component with calculated points, right?
what I want to say is that I just need to translate the wii-movements into point coordinates and put them into your .net component.
...thank you, now I am one step closer...
so, this is a part of my modified andrew payne wii-to-grasshopper definition.
on the left side there is the timer set to 50 ms. the vb-component is the interface to the arduino and the wii. on the right side there is the output string, each axis and button value seperated by a "," . now I want to add every 50 ms the first falue to all other first values that have been thrown out since the timer was started. I thought I could need a kind of counter, that adds 1 to a variable each time the solution is updated. with this variable I think I can set new branches to a tree with the latest value from the wii. so I get an tree I can feed a mass addition with.
any suggestions? or is there a smarter way - because I think that a tree created with this method would grow too big really soon...
dominik nuessen
I tested your definition, really nice work! it seems that camera controlling is not that difficult in .net (if you are not a total newbie like me). in your definition you flow along defined paths to evaluate the camera position and target. in my case it would be no problem to feed your .net component with calculated points, right?
what I want to say is that I just need to translate the wii-movements into point coordinates and put them into your .net component.
...thank you, now I am one step closer...
Feb 23, 2010
dominik nuessen
frankS, thanks for your suggestion. I will try it now! I wonder if I have to connect the 50 ms component to whatever accumulation component...?
Feb 23, 2010
dominik nuessen

on the left side there is the timer set to 50 ms. the vb-component is the interface to the arduino and the wii. on the right side there is the output string, each axis and button value seperated by a "," . now I want to add every 50 ms the first falue to all other first values that have been thrown out since the timer was started. I thought I could need a kind of counter, that adds 1 to a variable each time the solution is updated. with this variable I think I can set new branches to a tree with the latest value from the wii. so I get an tree I can feed a mass addition with.any suggestions? or is there a smarter way - because I think that a tree created with this method would grow too big really soon...
Feb 24, 2010