Toggle navigation
Toggle navigation
This project
Loading...
Sign in
arcs
/
arcs.js
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
3
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Yves Didier
2019-10-19 21:42:26 +0200
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
2092a8f5d6c3b7fa77807530e9aee9131cbab433
2092a8f5
2 parents
4ea9d218
26d6ed8b
Merge branch 'devel' of
https://forge.ibisc.univ-evry.fr/arcs/arcs.js
into devel
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
components/arviewer.js
components/video.js
tests/pipe/arcs.css
tests/pipe/arcsapp.json
components/arviewer.js
View file @
2092a8f
...
...
@@ -65,7 +65,7 @@ arcs_module(
console
.
log
(
"Falling back on simple texture"
);
videoTexture
=
new
THREE
.
Texture
(
videoSource
);
}
var
geometry
=
new
THREE
.
PlaneGeometry
(
1.0
,
1.0
,
0.0
);
var
geometry
=
new
THREE
.
PlaneGeometry
(
1.0
,
1.0
);
var
material
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
videoTexture
,
depthTest
:
false
,
depthWrite
:
false
}
);
var
mesh
=
new
THREE
.
Mesh
(
geometry
,
material
);
var
textureObject
=
new
THREE
.
Object3D
();
...
...
components/video.js
View file @
2092a8f
...
...
@@ -25,6 +25,7 @@ arcs_module(function(ARCS) {
};
var
setUserMedia
=
function
()
{
console
.
log
(
"video test"
);
if
(
navigator
.
mediaDevices
!==
undefined
)
{
navigator
.
mediaDevices
.
getUserMedia
({
video
:
true
})
.
then
(
handleMediaStream
)
...
...
@@ -58,6 +59,7 @@ arcs_module(function(ARCS) {
canvas
=
document
.
getElementById
(
canvasId
);
if
(
video
===
undefined
||
canvas
===
undefined
)
{
console
.
log
(
"video elements not defined"
);
return
;
}
context
=
canvas
.
getContext
(
"2d"
);
...
...
tests/pipe/arcs.css
View file @
2092a8f
...
...
@@ -4,6 +4,10 @@
}
body
,
html
{
height
:
100%
;
}
body
{
font-family
:
sans-serif
;
...
...
tests/pipe/arcsapp.json
View file @
2092a8f
...
...
@@ -18,13 +18,13 @@
"inertial"
:
{
"type"
:
"Inertial"
},
"fuser"
:
{
"type"
:
"GPSInertialPose"
},
"pipeNetwork"
:
{
"type"
:
"PipeNetwork"
,
"url"
:
"./Conduites_UFRST.geojson"
},
"video"
:
{
"type"
:
"
Video
Source"
},
"video"
:
{
"type"
:
"
Live
Source"
},
"statemachine"
:
{
"type"
:
"StateMachine"
,
"value"
:
{
"initial"
:
"init"
,
"transitions"
:
{
"init"
:
{
"
next
"
:
"start"
}
"init"
:
{
"
video&data
"
:
"start"
}
}
}
}
...
...
@@ -48,7 +48,9 @@
],
"connections"
:
[
{
"destination"
:
"viewer"
,
"slot"
:
"addScene"
,
"source"
:
"pipeNetwork"
,
"signal"
:
"sendSceneGraph"
},
{
"destination"
:
"statemachine"
,
"slot"
:
"next"
,
"source"
:
"pipeNetwork"
,
"signal"
:
"sendSceneGraph"
}
{
"destination"
:
"statemachine"
,
"slot"
:
"data"
,
"source"
:
"pipeNetwork"
,
"signal"
:
"sendSceneGraph"
},
{
"destination"
:
"statemachine"
,
"slot"
:
"video"
,
"source"
:
"video"
,
"signal"
:
"onReady"
}
],
"cleanups"
:
[
]
...
...
Please
register
or
login
to post a comment