These are chat archives for highfidelity/hifi

11th
May 2014
Jeremiah Biard
@kzzch
May 11 2014 14:46
erm for the sit script is it meant to be sitting on the ground or on a voxel?
Jeremiah Biard
@kzzch
May 11 2014 15:37
I can't seem to get this function to work, is it still part of the js API? Quat.fromVec3(const glm::vec3& vec3);
Mika Impola
@polac
May 11 2014 15:55
I think you need to add Degrees or Radians in the end.

I mean

fromVec3Degrees
or
fromVec3Radians

Jeremiah Biard
@kzzch
May 11 2014 15:57
lol. is there a way i can update that document to reflect that?
Mika Impola
@polac
May 11 2014 15:58
which document?
I am checking available functions from the code. This one you can see here:
https://github.com/highfidelity/hifi/blob/master/libraries/script-engine/src/Quat.h
Mika Impola
@polac
May 11 2014 16:03
Heh :) I just updated it. Hopefully HiFi guys do not get mad.
Can you see my update also?
Jeremiah Biard
@kzzch
May 11 2014 16:05
Yep, and I can't see why they would
Thanks for your help
Jeremiah Biard
@kzzch
May 11 2014 16:26
Hey, @polac, can you take a look at me in world and tell me if it looks like I'm sitting?
not sure how to pan my camera around and check myself
Mika Impola
@polac
May 11 2014 16:45
Select View->Fullscreen Mirror
@kzzch You know that I am also making a script for sitting :)
Thijs Wenker
@thoys
May 11 2014 16:47
@polac the same job? lol
@kzzch @polac both worklist jobs are still in bidding mode, are you guys experimenting how to do it first? lol
Jeremiah Biard
@kzzch
May 11 2014 16:48
the fullscreen mirror just shows my head
yeah i'm just experimenting really
Mika Impola
@polac
May 11 2014 16:48
me too :)
Thijs Wenker
@thoys
May 11 2014 16:48
@webdood too
lol
Jeremiah Biard
@kzzch
May 11 2014 16:48
i think i'm actually at the point where it looks like i'm sitting, i just need to move the torso down
Mika Impola
@polac
May 11 2014 16:49
@thoys @kzzch come and see me I am sitting :)
Jeremiah Biard
@kzzch
May 11 2014 16:49
it's hard to tell how it looks from behind thoguh
i'm at you now
Thijs Wenker
@thoys
May 11 2014 16:49
@polac be right there
Jeremiah Biard
@kzzch
May 11 2014 16:49
er, i was before i closed the client :p
Mika Impola
@polac
May 11 2014 16:49
@kzzch use the down arrow to back up in the full mirror
Jeremiah Biard
@kzzch
May 11 2014 16:51
your sit looks more natural
Mika Impola
@polac
May 11 2014 16:51
thanks! Your head isn't that natural
I am pending the spine and shoulders also
have you animated yours already?
Jeremiah Biard
@kzzch
May 11 2014 16:52
I don't have the button made yet either
no
Mika Impola
@polac
May 11 2014 16:52
sooo.... should we bid against each other?
Jeremiah Biard
@kzzch
May 11 2014 16:52
running the script makes you sit and stopping it makes you stand, and i don't have the torso moving when i sit, basically just lifting my legs up
eh
i don't even know what to bid
i'm doing it more to learn than anything
Mika Impola
@polac
May 11 2014 16:54
You do not know about the worklist or what do you mean?
Jeremiah Biard
@kzzch
May 11 2014 16:54
I don't know how much it's worth
Thijs Wenker
@thoys
May 11 2014 16:54
or you could both do a different job https://worklist.net/19607 and https://worklist.net/19521 are both about sitting
Jeremiah Biard
@kzzch
May 11 2014 16:54
Yeah I was thinking of doing the sit on the edge of the voxel one too
Mika Impola
@polac
May 11 2014 16:55
Oh, man! So, this is competition now...
Jeremiah Biard
@kzzch
May 11 2014 16:56
lol, i'm not very competitive :(
Mika Impola
@polac
May 11 2014 16:56
too bad that in my part of the world it is already bed time. So, you probably get this one done while I am sleeping.
Jeremiah Biard
@kzzch
May 11 2014 17:10
@thoys i can barely hear you, the audio keeps breaking up
Philip Rosedale
@PhilipRosedale
May 11 2014 20:46
hey thanks so much for working on those sit scripts, guys! very cool to checkin and see all the activity, plus the PR for the windows fix.
Jeremiah Biard
@kzzch
May 11 2014 20:47
no problem! having a blast playing with the scripting interface
Philip Rosedale
@PhilipRosedale
May 11 2014 20:47
I just pulled that glTexture fix, if anyone with windows ATI can verify fixed, that would be great.
Judas
@judasshuffle
May 11 2014 20:47
ah just getting smokey to try it
Thijs Wenker
@thoys
May 11 2014 20:48
@PhilipRosedale I verified it
Philip Rosedale
@PhilipRosedale
May 11 2014 20:48
regarding sitting, first step is a nice animation and button to 'get up' regardless of where you are.
@thoys thank you.
Thijs Wenker
@thoys
May 11 2014 20:49
no problem
Hehe I guess next meeting will be crowded now
Philip Rosedale
@PhilipRosedale
May 11 2014 20:51
what we are thinking for chairs as a good UX is that when you are Close to a chair object you see an action button floating over it. then when you click the button you sit, and probably hitting a move key or otherwise applying thrust (with hydraMove, etc) stands you up again.
but we have to figure out the right plumbing for that.
Jeremiah Biard
@kzzch
May 11 2014 20:52
sounds neat!
Thijs Wenker
@thoys
May 11 2014 20:52
How will an object be marked as a chair? Will it be some kind of meta-data? @PhilipRosedale
Jeremiah Biard
@kzzch
May 11 2014 20:53
there was a function in LSL to give objects sit targets if i remember correctly
Judas
@judasshuffle
May 11 2014 20:54
@PhilipRosedale smokey can see avatars on ati thanks to all who fixed it :)
Thijs Wenker
@thoys
May 11 2014 20:55
thank @talentraspel , he fixed it
Judas
@judasshuffle
May 11 2014 20:56
thanks @talentraspel u made alotta people happy :)
Thijs Wenker
@thoys
May 11 2014 20:59
It might sound complicated, but he changed some 1's to 0's :P https://github.com/highfidelity/hifi/pull/2829/files
Mika Impola
@polac
May 11 2014 21:05
Here is my sitting script if you want to try: https://www.dropbox.com/s/a0afz9i9tdv2ndd/sit.js
@PhilipRosedale
I am using the rock_clothes.fst
What is included in #19521? Just wondering @PhilipRosedale comment about "action button floating above."
Thijs Wenker
@thoys
May 11 2014 21:12
@polac are you not using any semicolons on purpose?
Mika Impola
@polac
May 11 2014 21:13
unnecessary boilerplate.(?)
Thijs Wenker
@thoys
May 11 2014 21:14
@polac not sure, I always use semicolons in JS ;p
Mika Impola
@polac
May 11 2014 21:16
I usually do not code in JS so...
Thijs Wenker
@thoys
May 11 2014 21:16
hehe ok
Mika Impola
@polac
May 11 2014 21:17
@thoys did you try it or just reviewed?
Thijs Wenker
@thoys
May 11 2014 21:18
I just looked at it, let me try it
Mika Impola
@polac
May 11 2014 21:19
you need to use the rock_clothes or at least I think so, because it looks like the joint names are different in every fst.
Thijs Wenker
@thoys
May 11 2014 21:21
hmm, I wonder if theres a way to see when you pressed the spacebar to reset the avatar joints
Mika Impola
@polac
May 11 2014 21:22
oh, there is that kind of functionality... Let me check.
Judas
@judasshuffle
May 11 2014 21:22
the wiki post on avatar bones changes the convention all the way through
Jeremiah Biard
@kzzch
May 11 2014 21:23

var jointList = MyAvatar.getJointNames();

for (var i = 0; i < jointList.length; i++ ) {
print(i + ": " +jointList[i]);
}

that'll give you all the joint names
MyAvatar.clearJointData(jointList[i]);
Mika Impola
@polac
May 11 2014 21:24
yep, but if you have rightUpLeg and r_leg_hip, how do you know that they actually are the samething?
Jeremiah Biard
@kzzch
May 11 2014 21:25
putting that in instead of the print statement will reset all joints to default
Mika Impola
@polac
May 11 2014 21:26
Aah... so I just happened to use nonstandard fst. Need to fix it.
Judas
@judasshuffle
May 11 2014 21:28
i dunno if they need capital letters or not, in the wiki they change some have caps and some dont
Jeremiah Biard
@kzzch
May 11 2014 21:29
i'd go with what shows up when you use MyAvatar.getJointNames()