test 06-03-23

This commit is contained in:
mpelissi 2023-03-06 11:57:43 +01:00
parent 5a8c88bd84
commit 637a22ed37
2 changed files with 291 additions and 8 deletions

View File

@ -0,0 +1,283 @@
{
"identite": {
"Firstname": "marie",
"Name": "pelissier",
"Age": "18",
"Sexe": "F"
},
"tache_N1": {
"obj_file": "dragon_update_user_study.obj",
"mesh": "dragon",
"position_init_idx_i": 5,
"position_init_idx_j": 2,
"theta_init": 0,
"delta_init": 3.9269908169872414,
"choix_poses": [
[
"choix1",
0,
3.9269908169872414,
5,
2
],
[
"choix2",
0,
3.141592653589793,
4,
2
],
[
"choix3",
0,
2.356194490192345,
3,
2
]
]
},
"tache_N2": {
"obj_file": "camel_update_user_study_normed.obj",
"mesh": "camel",
"position_init_idx_i": 7,
"position_init_idx_j": 1,
"theta_init": 0.7853981633974483,
"delta_init": 5.497787143782138,
"choix_poses": [
[
"choix1",
0.7853981633974483,
5.497787143782138,
7,
1
],
[
"choix2",
0.7853981633974483,
4.71238898038469,
6,
1
],
[
"choix3",
0.7853981633974483,
3.9269908169872414,
5,
1
]
]
},
"Analyse": {
"analyse_N1": {
"mesh": "dragon",
"idx": [
0
],
"mots": [
"1. De face"
]
}
},
"Interactions": [
{
"time": 1678098865103,
"type": "start"
},
{
"time": 1678098865646,
"type": "bouton commencer de contexte[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
},
{
"time": 1678098954666,
"type": "bouton commencer d'inscriptiontiti"
},
{
"time": 1678098954905,
"type": "Affichage Mesh random : dragon en idx_i, idx_j : (5, 2)"
},
{
"time": 1678098954905,
"type": "Affichage Mesh random : dragon en theta, delta : (0, 3.9269908169872414)"
},
{
"time": 1678098957319,
"type": "bouton pose n°1"
},
{
"time": 1678098957431,
"type": "fleche droite"
},
{
"time": 1678098957511,
"type": "bouton pose n°2"
},
{
"time": 1678098957606,
"type": "fleche droite"
},
{
"time": 1678098957703,
"type": "bouton pose n°3"
},
{
"time": 1678099003575,
"type": "bouton pose n°4"
},
{
"time": 1678099003575,
"type": "Affichage error 3 déjà fait"
},
{
"time": 1678099003670,
"type": "fleche droite"
},
{
"time": 1678099003766,
"type": "bouton pose n°4"
},
{
"time": 1678099003767,
"type": "Affichage error 3 déjà fait"
},
{
"time": 1678099003878,
"type": "fleche droite"
},
{
"time": 1678099004023,
"type": "bouton pose n°4"
},
{
"time": 1678099004023,
"type": "Affichage error 3 déjà fait"
},
{
"time": 1678099004679,
"type": "fleche haut"
},
{
"time": 1678099004839,
"type": "bouton pose n°4"
},
{
"time": 1678099004839,
"type": "Affichage error 3 déjà fait"
},
{
"time": 1678099004951,
"type": "fleche haut"
},
{
"time": 1678099005095,
"type": "bouton pose n°4"
},
{
"time": 1678099005095,
"type": "Affichage error 3 déjà fait"
},
{
"time": 1678099006183,
"type": "bouton valider"
},
{
"time": 1678099006448,
"type": "Affichage Mesh random : camel en idx_i, idx_j : (7, 1)"
},
{
"time": 1678099006448,
"type": "Affichage Mesh random : camel en theta, delta : (0.7853981633974483, 5.497787143782138)"
},
{
"time": 1678099008295,
"type": "bouton pose n°1"
},
{
"time": 1678099008391,
"type": "fleche droite"
},
{
"time": 1678099008487,
"type": "bouton pose n°2"
},
{
"time": 1678099008583,
"type": "fleche droite"
},
{
"time": 1678099008662,
"type": "bouton pose n°3"
},
{
"time": 1678099010296,
"type": "bouton valider"
},
{
"time": 1678099010296,
"type": "fin des choix."
},
{
"time": 1678099010311,
"type": "Début analyse n°1"
},
{
"time": 1678099013514,
"type": "ajout check sur : analyse n°1, mot 4. Eyes contact"
},
{
"time": 1678099014147,
"type": "ajout check sur : analyse n°1, mot 3. Debout"
},
{
"time": 1678099014915,
"type": "retrait check sur : analyse n°1, mot 4. Eyes contact"
},
{
"time": 1678099016515,
"type": "retrait check sur : analyse n°1, mot 3. Debout"
},
{
"time": 1678099017266,
"type": "ajout check sur : analyse n°1, mot 4. Eyes contact"
},
{
"time": 1678099017634,
"type": "retrait check sur : analyse n°1, mot 4. Eyes contact"
},
{
"time": 1678099018359,
"type": "ajout check sur : analyse n°1, mot 1. De face"
},
{
"time": 1678099018615,
"type": "ajout check sur : analyse n°1, mot 2. De profil"
},
{
"time": 1678099018921,
"type": "ajout check sur : analyse n°1, mot 3. Debout"
},
{
"time": 1678099019322,
"type": "retrait check sur : analyse n°1, mot 3. Debout"
},
{
"time": 1678099019847,
"type": "retrait check sur : analyse n°1, mot 1. De face"
},
{
"time": 1678099020359,
"type": "retrait check sur : analyse n°1, mot 2. De profil"
},
{
"time": 1678099022919,
"type": "ajout check sur : analyse n°1, mot 1. De face"
},
{
"time": 1678099023559,
"type": "Bouton valider analyse."
},
{
"time": 1678099023571,
"type": "Fin analyse"
}
]
}

View File

@ -1,17 +1,17 @@
function affichage_texte_contexte(){ function affichage_texte_contexte(){
// Texte // Texte
draw_rectangle(0,0,canvas.width, canvas.height, "rgb(3, 26, 33)", 1) // ou + clair 4, 38, 48 draw_rectangle(0,0,canvas.width, canvas.height, "rgb(3, 26, 33)", 1) // ou + clair 4, 38, 48
// ctx.strokeStyle = "rgb(255, 255, 255)" // Pour que le contour soit rouge ctx.strokeStyle = "rgb(255, 255, 255)" // Pour que le contour soit rouge
// ctx.fillStyle = "rgb(255, 255, 255)" // Pour que l'intérieur soit bleu ctx.fillStyle = "rgb(255, 255, 255)" // Pour que l'intérieur soit bleu
texte = "Hi, I'm Marie, do you want to participate in my study?" texte = "Hi, I'm Marie, do you want to participate in my study?"
// font = "58pt Courier" font = "58pt Courier"
// ctx.font = font ctx.font = font
// largeur = ctx.measureText(texte).width largeur = ctx.measureText(texte).width
// ctx.fillText(texte, (window.innerWidth/2)- (largeur/2), 100) ctx.fillText(texte, (window.innerWidth/2)- (largeur/2), 100)
print_text(handle_text(texte, (window.innerWidth/4), 100, "36pt Courier", (window.innerWidth/2))) //print_text(handle_text(texte, (window.innerWidth/4), 100, "42pt Courier", (window.innerWidth/1.8)))
ctx.drawImage(imgs['marie'], (window.innerWidth/3), (window.innerHeight/4), imgs['marie'].width*0.7, imgs['marie'].height*0.7 ) ctx.drawImage(imgs['marie'], (window.innerWidth/2)-((imgs['marie'].width*0.7)/2), (window.innerHeight/4), imgs['marie'].width*0.7, imgs['marie'].height*0.7 )
} }