Commit 425f4da4 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

+ background model

parent 23af6f4c
...@@ -120,11 +120,25 @@ function light_init(){ ...@@ -120,11 +120,25 @@ function light_init(){
var x3delement = $("#x3d_id").find("scene"); var x3delement = $("#x3d_id").find("scene");
var model_url = SETTINGS.basepath+"/"+SETTINGS.path+"/"+SETTINGS.version+"/"+SETTINGS.path+".x3d"; var model_url = SETTINGS.basepath+"/"+SETTINGS.path+"/"+SETTINGS.version+"/"+SETTINGS.path+".x3d";
var model_back_url = SETTINGS.basepath+"/"+SETTINGS.path+"/"+SETTINGS.version+"/"+SETTINGS.path+"-texture-bgnd-ext.jpeg";
var model = $(` var model = $(`
<group> <group>
<inline name='mymodel' namespacename='mymodel' url='`+model_url+`'></inline> <inline name='mymodel' namespacename='mymodel' url='`+model_url+`'></inline>
</group>`); </group>
<group>
<Background
id="Background"
class="Background"
backUrl= "js/images/background_side.jpeg"
bottomUrl="js/images/background_floor.jpeg"
frontUrl= "`+model_back_url+`"
leftUrl= "js/images/background_side.jpeg"
rightUrl= "js/images/background_side.jpeg"
topUrl= "js/images/background_sky.jpeg">
</Background>
</group>
`);
x3delement.append(model); x3delement.append(model);
......
...@@ -595,7 +595,7 @@ function x3dom_update_map(){ ...@@ -595,7 +595,7 @@ function x3dom_update_map(){
// uses globals // uses globals
function x3dom_setViewpoint(m){ function x3dom_setViewpoint(m){
console.log("Setting a viewpoint"); //console.log("Setting a viewpoint");
var Q = new x3dom.fields.Quaternion(0, 0, 1, 0); var Q = new x3dom.fields.Quaternion(0, 0, 1, 0);
Q.setValue(m); Q.setValue(m);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment