2015-05-22 16:59:33 +02:00
|
|
|
extends ../../../views/main
|
2015-05-05 16:30:51 +02:00
|
|
|
|
|
|
|
block title
|
2015-06-10 11:31:28 +02:00
|
|
|
title #{title} - Streaming
|
2015-05-05 16:30:51 +02:00
|
|
|
|
|
|
|
block extrajs
|
|
|
|
script params = {}; params.get= {}; params.get.res = #{resolution}
|
2015-05-22 16:59:33 +02:00
|
|
|
script(src="/static/js/three.min.js")
|
|
|
|
script(src="/static/js/threetools.min.js")
|
2015-06-09 17:36:21 +02:00
|
|
|
script(src="/static/js/socket.io.min.js")
|
2015-05-22 16:59:33 +02:00
|
|
|
script(src="/static/js/streamingsimulator.min.js")
|
2015-05-05 16:30:51 +02:00
|
|
|
|
|
|
|
block content
|
|
|
|
h2 Streaming simulator
|
|
|
|
|
|
|
|
p.
|
2015-06-10 11:31:28 +02:00
|
|
|
<strike>In fact, it's not really streaming. The sphere is fully preloaded and then,
|
2015-05-05 16:30:51 +02:00
|
|
|
a mesh is created and vertices and faces are dynamically added to this mesh
|
2015-06-10 11:31:28 +02:00
|
|
|
as time goes by.</strike>
|
|
|
|
|
|
|
|
p.
|
|
|
|
| In fact, it is acutally streaming. If you web browser supports
|
|
|
|
| WebSocket, you'll connect to the server and the mesh will be streamed
|
|
|
|
| onto the socket and the faces will be displayed as soon as you
|
|
|
|
| receive them.
|
2015-05-05 16:30:51 +02:00
|
|
|
|
|
|
|
#container
|