ajout mesh lavoue
This commit is contained in:
parent
4f987abc15
commit
e9b1909997
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,4 +1,6 @@
|
|||||||
node_modules
|
node_modules
|
||||||
grahics/Tutorial/wolf*
|
grahics/Tutorial/wolf*
|
||||||
graphics/Tutorial/wolf*.png
|
graphics/Tutorial/wolf*.png
|
||||||
outputs/*
|
outputs/*
|
||||||
|
|
||||||
|
get_3dmesh_names.ipynb
|
||||||
|
188338
graphics/3DMesh/A380_update_normed_centered_user_study.obj
Normal file
188338
graphics/3DMesh/A380_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
154570
graphics/3DMesh/Harley_update_normed_centered_user_study.obj
Normal file
154570
graphics/3DMesh/Harley_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
79992
graphics/3DMesh/MaxPlanck_update_normed_centered_user_study.obj
Normal file
79992
graphics/3DMesh/MaxPlanck_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
60000
graphics/3DMesh/bimba_update_normed_centered_user_study.obj
Normal file
60000
graphics/3DMesh/bimba_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
79996
graphics/3DMesh/blade_update_normed_centered_user_study.obj
Normal file
79996
graphics/3DMesh/blade_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
79996
graphics/3DMesh/bunny_update_normed_centered_user_study.obj
Normal file
79996
graphics/3DMesh/bunny_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
79996
graphics/3DMesh/camel_update_normed_centered_user_study.obj
Normal file
79996
graphics/3DMesh/camel_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
82077
graphics/3DMesh/carVasa_update_normed_centered_user_study.obj
Normal file
82077
graphics/3DMesh/carVasa_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
59934
graphics/3DMesh/carter_update_normed_centered_user_study.obj
Normal file
59934
graphics/3DMesh/carter_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
80032
graphics/3DMesh/casting_update_normed_centered_user_study.obj
Normal file
80032
graphics/3DMesh/casting_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
80012
graphics/3DMesh/chair107_update_normed_centered_user_study.obj
Normal file
80012
graphics/3DMesh/chair107_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
79996
graphics/3DMesh/cow_update_normed_centered_user_study.obj
Normal file
79996
graphics/3DMesh/cow_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
60000
graphics/3DMesh/dinosaur_update_normed_centered_user_study.obj
Normal file
60000
graphics/3DMesh/dinosaur_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
79984
graphics/3DMesh/dragon_update_normed_centered_user_study.obj
Normal file
79984
graphics/3DMesh/dragon_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
79996
graphics/3DMesh/fandisk_update_normed_centered_user_study.obj
Normal file
79996
graphics/3DMesh/fandisk_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
60008
graphics/3DMesh/flowerpot_update_normed_centered_user_study.obj
Normal file
60008
graphics/3DMesh/flowerpot_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
60000
graphics/3DMesh/gorgoile_update_normed_centered_user_study.obj
Normal file
60000
graphics/3DMesh/gorgoile_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
79893
graphics/3DMesh/hand_update_normed_centered_user_study.obj
Normal file
79893
graphics/3DMesh/hand_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
79996
graphics/3DMesh/horse_update_normed_centered_user_study.obj
Normal file
79996
graphics/3DMesh/horse_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
79996
graphics/3DMesh/igea_update_normed_centered_user_study.obj
Normal file
79996
graphics/3DMesh/igea_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
59042
graphics/3DMesh/james_update_normed_centered_user_study.obj
Normal file
59042
graphics/3DMesh/james_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
60012
graphics/3DMesh/meca_update_normed_centered_user_study.obj
Normal file
60012
graphics/3DMesh/meca_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
60000
graphics/3DMesh/michael3_update_normed_centered_user_study.obj
Normal file
60000
graphics/3DMesh/michael3_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
60000
graphics/3DMesh/michael8_update_normed_centered_user_study.obj
Normal file
60000
graphics/3DMesh/michael8_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
79984
graphics/3DMesh/octopus_update_normed_centered_user_study.obj
Normal file
79984
graphics/3DMesh/octopus_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
80008
graphics/3DMesh/prot_update_normed_centered_user_study.obj
Normal file
80008
graphics/3DMesh/prot_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
80000
graphics/3DMesh/rockerArm_update_normed_centered_user_study.obj
Normal file
80000
graphics/3DMesh/rockerArm_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
79996
graphics/3DMesh/torso_update_normed_centered_user_study.obj
Normal file
79996
graphics/3DMesh/torso_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
59993
graphics/3DMesh/turbine_update_normed_centered_user_study.obj
Normal file
59993
graphics/3DMesh/turbine_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
80016
graphics/3DMesh/vase_update_normed_centered_user_study.obj
Normal file
80016
graphics/3DMesh/vase_update_normed_centered_user_study.obj
Normal file
File diff suppressed because it is too large
Load Diff
@ -29,6 +29,7 @@
|
|||||||
<script src="/static/OBJLoader2.js"></script>
|
<script src="/static/OBJLoader2.js"></script>
|
||||||
<script src="/static/OrbitControls.js"></script>
|
<script src="/static/OrbitControls.js"></script>
|
||||||
<script src="/static/interaction_messages.js"></script>
|
<script src="/static/interaction_messages.js"></script>
|
||||||
|
<script src="/static/mesh_names.js"></script>
|
||||||
<script src="/static/fonctions_utiles.js"></script>
|
<script src="/static/fonctions_utiles.js"></script>
|
||||||
<script src="/static/fonctions_clavier.js"></script>
|
<script src="/static/fonctions_clavier.js"></script>
|
||||||
<script src="/static/fonctions_avertissement.js"></script>
|
<script src="/static/fonctions_avertissement.js"></script>
|
||||||
|
@ -42,11 +42,13 @@ function init_variable(premier_appel){
|
|||||||
// DATA github
|
// DATA github
|
||||||
indice_mesh = 0 // indice du premier mesh à visionner
|
indice_mesh = 0 // indice du premier mesh à visionner
|
||||||
mesh_courant = "nope" // nom des mesh
|
mesh_courant = "nope" // nom des mesh
|
||||||
// nombre de mesh a visionner AU TOTAL
|
|
||||||
nb_mesh = 4
|
|
||||||
// random nom mesh
|
// random nom mesh
|
||||||
obj_file = shuffle(['dragon_update_user_study_normed.obj', 'camel_update_user_study_normed.obj', 'gorgoile_update_user_study_centered_normed.obj', 'horse_update_user_study_normed.obj'])
|
//obj_file_random = shuffle(['backpack_regulier_tri_centered_user_study_normed.obj', 'dragon_update_user_study_normed.obj', 'camel_update_user_study_normed.obj', 'gorgoile_update_user_study_centered_normed.obj', 'horse_update_user_study_normed.obj'])
|
||||||
|
obj_file_random = shuffle(obj_names)
|
||||||
|
|
||||||
|
// nombre de mesh a visionner AU TOTAL
|
||||||
|
nb_mesh = obj_file_random.length
|
||||||
|
|
||||||
// nb analyse demandé
|
// nb analyse demandé
|
||||||
nb_analyse_demande = 2
|
nb_analyse_demande = 2
|
||||||
list_idx_tache =[]
|
list_idx_tache =[]
|
||||||
@ -229,25 +231,26 @@ function setUp_3D(idx_mesh, idx_i_init, idx_j_init, explication=false){
|
|||||||
setUp_light(R)
|
setUp_light(R)
|
||||||
|
|
||||||
// Data 3D
|
// Data 3D
|
||||||
//obj_file = shuffle(['dragon_update_user_study_normed.obj', 'camel_update_user_study_normed.obj', 'gorgoile_update_user_study_centered_normed.obj', 'horse_update_user_study_normed.obj'])
|
//obj_file_random = shuffle(['dragon_update_user_study_normed.obj', 'camel_update_user_study_normed.obj', 'gorgoile_update_user_study_centered_normed.obj', 'horse_update_user_study_normed.obj'])
|
||||||
const objLoader = new THREE.OBJLoader2();
|
const objLoader = new THREE.OBJLoader2();
|
||||||
|
|
||||||
// Si on load le mesh 3d dans les explicationq, on imporse que ce soit le dragon
|
// Si on load le mesh 3d dans les explication, on importe que ce soit le dragon
|
||||||
if (explication){
|
if (explication){
|
||||||
objLoader.load('https://raw.githubusercontent.com/PelissierCombescure/BVS-study/main/graphics/3DMesh/dragon_update_user_study_normed.obj', (event) => {
|
//objLoader.load('https://raw.githubusercontent.com/PelissierCombescure/BVS-study/main/graphics/3DMesh/dragon_update_user_study_normed.obj', (event) => {
|
||||||
|
objLoader.load('https://raw.githubusercontent.com/PelissierCombescure/BVS-study/main/graphics/3DMesh/dragon_update_normed_centered_user_study.obj', (event) => {
|
||||||
const root = event.detail.loaderRootNode;
|
const root = event.detail.loaderRootNode;
|
||||||
scene.add(root);
|
scene.add(root);
|
||||||
});
|
});
|
||||||
// sinon on est dans l'étide dans on fait du random entre tous les mesh dispo sur le git
|
// sinon on est dans l'étide dans on fait du random entre tous les mesh dispo sur le git
|
||||||
} else {
|
} else {
|
||||||
//objLoader.load('https://raw.githubusercontent.com/PelissierCombescure/User_study/main/3DMesh/'+obj_file[idx_mesh], (event) => {
|
//objLoader.load('https://raw.githubusercontent.com/PelissierCombescure/User_study/main/3DMesh/'+obj_file_random[idx_mesh], (event) => {
|
||||||
objLoader.load('https://raw.githubusercontent.com/PelissierCombescure/BVS-study/main/graphics/3DMesh/'+obj_file[idx_mesh], (event) => {
|
objLoader.load('https://raw.githubusercontent.com/PelissierCombescure/BVS-study/main/graphics/3DMesh/'+obj_file_random[idx_mesh], (event) => {
|
||||||
const root = event.detail.loaderRootNode;
|
const root = event.detail.loaderRootNode;
|
||||||
scene.add(root);
|
scene.add(root);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
mesh_courant = obj_file[idx_mesh].split('_')[0]
|
mesh_courant = obj_file_random[idx_mesh].split('_')[0]
|
||||||
choix_courant['obj_file'] = obj_file[idx_mesh]
|
choix_courant['obj_file_random'] = obj_file_random[idx_mesh]
|
||||||
choix_courant['mesh'] = mesh_courant
|
choix_courant['mesh'] = mesh_courant
|
||||||
choix_courant['position_init_idx_i'] = idx_i_init
|
choix_courant['position_init_idx_i'] = idx_i_init
|
||||||
choix_courant['position_init_idx_j'] =idx_j_init
|
choix_courant['position_init_idx_j'] =idx_j_init
|
||||||
@ -255,6 +258,7 @@ function setUp_3D(idx_mesh, idx_i_init, idx_j_init, explication=false){
|
|||||||
choix_courant['delta_init'] = delta_init
|
choix_courant['delta_init'] = delta_init
|
||||||
|
|
||||||
// pour savoir quel mesh on affiche
|
// pour savoir quel mesh on affiche
|
||||||
|
console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>> "+obj_file_random[idx_mesh])
|
||||||
interactions.push({"time": new Date().getTime(), "type": get_message('affichage_mesh_IJ', [num_tache, nb_choix_fait, mesh_courant, idx_i_init, idx_j_init])})
|
interactions.push({"time": new Date().getTime(), "type": get_message('affichage_mesh_IJ', [num_tache, nb_choix_fait, mesh_courant, idx_i_init, idx_j_init])})
|
||||||
interactions.push({"time": new Date().getTime(), "type": get_message('affichage_mesh_TD', [num_tache, nb_choix_fait, mesh_courant, theta_init, delta_init])})//"Affichage Mesh random : "+mesh_courant+" en theta, delta : ("+theta_init+", "+delta_init+")"})
|
interactions.push({"time": new Date().getTime(), "type": get_message('affichage_mesh_TD', [num_tache, nb_choix_fait, mesh_courant, theta_init, delta_init])})//"Affichage Mesh random : "+mesh_courant+" en theta, delta : ("+theta_init+", "+delta_init+")"})
|
||||||
}
|
}
|
||||||
@ -453,7 +457,7 @@ function animate() {
|
|||||||
else{print_text(handle_text(texte_temporaire.text, texte_temporaire.x, texte_temporaire.y, taille_texte+"pt Courier", longueur_max_error, "#118AB2"))}
|
else{print_text(handle_text(texte_temporaire.text, texte_temporaire.x, texte_temporaire.y, taille_texte+"pt Courier", longueur_max_error, "#118AB2"))}
|
||||||
}
|
}
|
||||||
// progress bar
|
// progress bar
|
||||||
progress_bar(num_tache-1, nb_mesh, taille_texte)
|
progress_bar(num_tache, nb_mesh, taille_texte)
|
||||||
// Affichage fleche
|
// Affichage fleche
|
||||||
afficher_fleche(imgs)
|
afficher_fleche(imgs)
|
||||||
// affichage de sboutons
|
// affichage de sboutons
|
||||||
|
31
static/mesh_names.js
Normal file
31
static/mesh_names.js
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
obj_names = ['octopus_update_normed_centered_user_study.obj',
|
||||||
|
'casting_update_normed_centered_user_study.obj',
|
||||||
|
'carVasa_update_normed_centered_user_study.obj',
|
||||||
|
'blade_update_normed_centered_user_study.obj',
|
||||||
|
'hand_update_normed_centered_user_study.obj',
|
||||||
|
'bunny_update_normed_centered_user_study.obj',
|
||||||
|
'igea_update_normed_centered_user_study.obj',
|
||||||
|
'camel_update_normed_centered_user_study.obj',
|
||||||
|
'Harley_update_normed_centered_user_study.obj',
|
||||||
|
'MaxPlanck_update_normed_centered_user_study.obj',
|
||||||
|
'gorgoile_update_normed_centered_user_study.obj',
|
||||||
|
'prot_update_normed_centered_user_study.obj',
|
||||||
|
'michael3_update_normed_centered_user_study.obj',
|
||||||
|
'torso_update_normed_centered_user_study.obj',
|
||||||
|
'A380_update_normed_centered_user_study.obj',
|
||||||
|
'chair107_update_normed_centered_user_study.obj',
|
||||||
|
'dragon_update_normed_centered_user_study.obj',
|
||||||
|
'meca_update_normed_centered_user_study.obj',
|
||||||
|
'rockerArm_update_normed_centered_user_study.obj',
|
||||||
|
'michael8_update_normed_centered_user_study.obj',
|
||||||
|
'vase_update_normed_centered_user_study.obj',
|
||||||
|
'fandisk_update_normed_centered_user_study.obj',
|
||||||
|
'james_update_normed_centered_user_study.obj',
|
||||||
|
'cow_update_normed_centered_user_study.obj',
|
||||||
|
'carter_update_normed_centered_user_study.obj',
|
||||||
|
'dinosaur_update_normed_centered_user_study.obj',
|
||||||
|
'flowerpot_update_normed_centered_user_study.obj',
|
||||||
|
'bimba_update_normed_centered_user_study.obj',
|
||||||
|
'horse_update_normed_centered_user_study.obj',
|
||||||
|
'turbine_update_normed_centered_user_study.obj',
|
||||||
|
'backpack_regulier_tri_centered_user_study_normed.obj']
|
Loading…
x
Reference in New Issue
Block a user