Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x3domlet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
x3domlet
Commits
425f4da4
Commit
425f4da4
authored
7 years ago
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ background model
parent
23af6f4c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
2 deletions
+16
-2
background_floor.jpeg
js/images/background_floor.jpeg
+0
-0
background_side.jpeg
js/images/background_side.jpeg
+0
-0
background_sky.jpeg
js/images/background_sky.jpeg
+0
-0
ui_init.js
js/ui_init.js
+15
-1
x3dom_functions.js
js/x3dom_functions.js
+1
-1
No files found.
js/images/background_floor.jpeg
0 → 100644
View file @
425f4da4
51.5 KB
This diff is collapsed.
Click to expand it.
js/images/background_side.jpeg
0 → 100644
View file @
425f4da4
48.6 KB
This diff is collapsed.
Click to expand it.
js/images/background_sky.jpeg
0 → 100644
View file @
425f4da4
50 KB
This diff is collapsed.
Click to expand it.
js/ui_init.js
View file @
425f4da4
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
js/x3dom_functions.js
View file @
425f4da4
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment