ras
This commit is contained in:
parent
92b56bdfdb
commit
5dcc760a43
|
@ -205,9 +205,10 @@ function setUp_3D(idx_mesh, idx_i_init, idx_j_init){
|
||||||
setUp_light(R)
|
setUp_light(R)
|
||||||
|
|
||||||
// Data 3D
|
// Data 3D
|
||||||
obj_file = ['dragon_update_user_study.obj', 'camel_update_user_study_normed.obj', 'gorgoile_update_user_study_centered_normed.obj']
|
obj_file = ['dragon_update_user_study.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();
|
||||||
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[idx_mesh], (event) => {
|
||||||
|
//objLoader.load('https://raw.githubusercontent.com/PelissierCombescure/BVS-study/main/graphics/3DMesh/'+obj_file[idx_mesh], (event) => {
|
||||||
const root = event.detail.loaderRootNode;
|
const root = event.detail.loaderRootNode;
|
||||||
scene.add(root);
|
scene.add(root);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
function init_explication(){
|
function init_explication(){
|
||||||
|
|
||||||
alpha_ecran = 0.9
|
alpha_ecran = 0.9
|
||||||
alpha_clignotement = 0.8
|
alpha_clignotement = 0.8
|
||||||
color_ecran ="rgb(255,255,255)"
|
color_ecran ="rgb(255,255,255)"
|
||||||
color_texte = "rgb(0,0,0)"
|
color_texte = "rgb(0,0,0)"
|
||||||
|
|
|
@ -22,7 +22,7 @@ function affichage_inscription(){
|
||||||
ctx.font = "24pt Courier"
|
ctx.font = "24pt Courier"
|
||||||
ctx.fillText("Male", parseInt(document.getElementById("SexeM").style.left)+40, parseInt(document.getElementById("SexeM").style.top)+24)
|
ctx.fillText("Male", parseInt(document.getElementById("SexeM").style.left)+40, parseInt(document.getElementById("SexeM").style.top)+24)
|
||||||
ctx.fillText("Female", parseInt(document.getElementById("SexeF").style.left)+40, parseInt(document.getElementById("SexeM").style.top)+24)
|
ctx.fillText("Female", parseInt(document.getElementById("SexeF").style.left)+40, parseInt(document.getElementById("SexeM").style.top)+24)
|
||||||
ctx.fillText("None of this above", parseInt(document.getElementById("SexeA").style.left)+40, parseInt(document.getElementById("SexeA").style.top)+24)
|
ctx.fillText("None of these above", parseInt(document.getElementById("SexeA").style.left)+40, parseInt(document.getElementById("SexeA").style.top)+24)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue