Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2015-05-01

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:27 wjf__ joined #openframeworks
00:55 yung-render joined #openframeworks
01:07 wjf__ joined #openframeworks
01:09 pizthewiz joined #openframeworks
01:13 wjf__ joined #openframeworks
01:26 pizthewiz joined #openframeworks
01:59 pizthewiz joined #openframeworks
02:18 ar_tama joined #openframeworks
02:25 upho joined #openframeworks
02:27 Kyle1 joined #openframeworks
04:05 Kyle1 joined #openframeworks
04:08 jvcleave_ joined #openframeworks
05:08 Kyle1 joined #openframeworks
05:15 pizthewiz joined #openframeworks
06:08 pizthewiz joined #openframeworks
06:08 Kyle1 joined #openframeworks
06:24 ar_tama joined #openframeworks
07:09 ar_tama joined #openframeworks
07:09 Kyle1 joined #openframeworks
08:10 Kyle1 joined #openframeworks
08:50 mh_ joined #openframeworks
09:11 Kyle1 joined #openframeworks
09:14 mh_ joined #openframeworks
09:25 debuuu joined #openframeworks
09:29 mh_ joined #openframeworks
09:33 _mh joined #openframeworks
10:12 Kyle1 joined #openframeworks
10:21 makerbox joined #openframeworks
11:12 Kyle1 joined #openframeworks
13:05 Beliq joined #openframeworks
13:16 Kyle1 joined #openframeworks
13:33 Kyle1 joined #openframeworks
13:35 admsyn joined #openframeworks
13:39 jedahan joined #openframeworks
14:37 ar_tama joined #openframeworks
15:00 mh_ joined #openframeworks
15:39 Kyle1 joined #openframeworks
16:45 ar_tama joined #openframeworks
17:02 pizthewiz joined #openframeworks
17:07 GuidovanPossum joined #openframeworks
18:05 user385259 joined #openframeworks
18:47 debuuu joined #openframeworks
19:12 jacres joined #openframeworks
20:05 pizthewiz joined #openframeworks
20:15 alski joined #openframeworks
20:17 alski How are everyones projects going?
20:18 lampd1 okay; need to figure out how to properly rotate a camera with 3 axis accelerometer input
20:18 lampd1 but hey, they data is making it into my OF app :P
20:20 alski I'm dealing with three dimensional rotation right now as well.
20:22 alski What does the data look like lampd1? I would assume you just take it, scale it to degrees or radians, and then have rotateX() rotateY(), and rotateZ().
20:23 alski For me, my confusion is coming along with visualizing rotation as the entire matrix is changing. Global vs local transformation.
20:25 lampd1 Yeah, accel/rotation for X Y and Z
20:25 lampd1 I'm kind of there right now too alski, been looking at how SimpleCamera does its mouse rotation
20:25 lampd1 because it's pretty much exactly what I'm looking for
20:26 alski Have you isolated one of axis?
20:27 lampd1 How do you mean?
20:32 alski Have you gotten pitch to work? I'm just wondering because I was only really able to move forward one axis at a time.
20:33 alski Because you could take the pitch data you have, take the max and minimum and scale it/ convert it to degrees, and then apply the rotation.
20:35 alski On related note, is it possible to push the matrix, apply a rotation, pop it, apply another, then draw? Because my confusion happens when trying to affect pitch and yaw all within one push/pop matrix. It becomes harder to calculate when you have a tilted coordinate system.
20:37 lampd1 I haven't really gotten any of it to work like I want
20:37 lampd1 tbh am super green with OF
20:37 lampd1 and haven't written C++ in years
20:41 alski And I haven't dealt with any camera stuff, only just dealing with some rotation issues with mesh objects.
20:41 lampd1 yeah; I think i want to rotate the camera around my mesh object
20:41 lampd1 but it might be simpler to just rotate the mesh lol
20:42 lampd1 have kind of a crazy concept going on
20:42 lampd1 but if i can get it there...
20:42 lampd1 how I'm passing data into OF is kind of laughable right now
20:43 lampd1 instead of bitshifting I used ofxSimpleSerial to read serial printed strings and then parsed them with ofSplitString and converted the appropriate vector values back to floats
20:44 alski How are you doing it? I know a lot of people that have success with osc data.
20:44 alski Hmm.. I don't know if I can picture how you're doing it.
20:45 lampd1 arduino serial.print()'s string of "X, (somefloat), Y, (somefloat), Z, (somefloat)"
20:46 lampd1 then ofxSimpleSerial reads it into of as a string, and uses ofSplitString(message, ", ")
20:46 lampd1 once I do that I can do accx = ofToFloat(elements[2]);
20:46 lampd1 (elements being the var assigned to the splitstring output)
20:47 lampd1 oh and there's one more comma value before X in my output is why its using [2]
20:47 lampd1 it does some range calcs on the arduino side and sends them over too
20:48 alski Seems like there would be something on the arduino side that could organize the data a little better...
20:49 lampd1 well the 3 axis accelerometer I'm using has whitepapers that say you need to bitshift
20:49 lampd1 in order to serial.write things directly in a proper manner
20:49 lampd1 since they're float vals
20:49 lampd1 we'll probably eventually use a totally different protocol, but this was a hacky way to get input from the sensor for now and focus on the OF piece
20:53 lampd1 so... there are better ways, but i don't have time for them atm :P
20:53 lampd1 better != faster
21:02 GuidovanPossum I had an accelerometer program I used on my phone and you could stream the data to a udp socket and then parse it on the receiving side
21:03 lampd1 yeah; we'll prob do web socket or bluetooth eventually
21:03 lampd1 just prototyping w/ serial
21:07 GuidovanPossum the one I made was fun, I'd play a song and dance to it holding the phone, then take the accelerometer data and use it to control fractal generation and cameras and render the entire sequence, in the end you'd have a music video generated from you dancing to the song
21:38 alski Do any of you guys have experience with ofQuaternion?
21:42 lampd1 hahaha
21:42 lampd1 just wrote this line:             curRot = ofQuaternion(accx, cam.getXAxis(), accy, cam.getYAxis(), accz, cam.getZAxis());
21:43 lampd1 digging into it a bit right now ;)_
21:48 alski Haha after you mentioned the cam example I decided to go digging for more. I was making things way more complicated, quaternion turns out to be the way to go. Just need to figure out exactly what the angle needs to be...
21:49 lampd1 yeah
21:50 alski Gotta head out but good luck lampd1!
21:50 lampd1 you too! take it easy
22:06 futurestack joined #openframeworks
23:09 pizthewiz joined #openframeworks
23:26 alski joined #openframeworks
23:38 jedahan joined #openframeworks
23:56 alski joined #openframeworks

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary