3
<title>3DViewer++: VIew your models in 3D</title>
4
<link rel="stylesheet" href="css/lavalamp_test.css" type="text/css" media="screen">
5
<script type="text/javascript" src="js/jquery-1.2.3.min.js"></script>
6
<script type="text/javascript" src="js/jquery.easing.min.js"></script>
7
<script type="text/javascript" src="js/jquery.lavalamp.min.js"></script>
8
<script type="text/javascript">
10
function getParam( name )
12
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
13
var regexS = "[\\?&]"+name+"=([^&#]*)";
14
var regex = new RegExp( regexS );
15
var results = regex.exec( window.location.href );
29
{% for album in models %}
30
$('#{{album.name}}_table').hide();
42
click: function(event, menuItem) {
50
$(document).ready(function() {
53
var tabName = '#' + getParam('tab');
62
$('#home').click(function(){
67
$('#link1').click(function(){
73
$('#link2').click(function(){
79
$('#link3').click(function(){
85
$('#view').click(function(){
88
var id = '#' + $('#albums')[0].value + '_table';
93
var dbg = getParam('dbg');
95
if (dbg.search("success") != -1)
96
var msg = "<div class = 'success'>" + dbg + "</div>";
98
var msg = "<div class = 'error'>" + dbg + "</div>";
99
msg = msg.replace(/%20/g, " ");
100
$('#dbg')[0].innerHTML = msg;
112
<div class="toolbar">
113
<img src = "img/logo.png" style="float:left; padding:15px; margin:10px">
114
<ul class="lavaLampNoImage" id="1">
115
<li class="current" id="home"><a href="#">Home</a></li>
116
<li><a href="#" id="link1">Step 1</a></li>
117
<li><a href="#" id="link2">Step 2</a></li>
118
<li><a href="#" id="link3">step 3</a></li>
122
<div class = "content">
128
<h1>View 3D Models in 1, 2, 3!</h1>
130
<h3>Step 1: Organize</h3>
131
Create a library to upload all your models to. Have one? Select your libary
132
from a list of existing ones.
134
<h3>Step 2: Upload</h3>
135
Select your model and upload it to your album!
137
<h3>Step 3: Visualize</h3>
138
View your model in 3D with HMDs or your webcam! Simply print out your
139
ARTags (emailed to you and available on this site) and bring it to your desination!
143
<h3> Create an album! </h3>
144
What is an album? An album is a collection of 3D models that you can create.
145
Think of it as a photo album, except the pictures can be viewed in 3D! Have an album already?
146
Proceed to Step 2 to upload to your album! <br><br>
147
<form action="/createAlbum" enctype="multipart/form-data" method="POST">
148
Please enter your album name:<br>
149
<input name="name" type="text" size="30">
151
Please enter a brief description:<br>
152
<textarea name = "description" COLS=40 ROWS=6></textarea>
154
<input type="submit" value="Submit">
160
<form action="/upload" enctype="multipart/form-data" method="POST">
161
Please enter your email:<br>
162
<input name="author" type="text" size="30">
164
Please enter the name of your model:<br>
165
<input name = "name" type="text" size = "30">
167
Select your album:<br>
168
<select name = "albums">
169
{% for album in albums %}
170
<option value="{{album.name}}">{{album.name}}</option>
174
Please select your model:<br>
175
<input name="model" type="file">
177
If applicable, please upload your zipped texture:<br>
179
<input name="texture" type="file">
181
<input type="submit" value="Submit">
186
<h3>Manage and Visualize your models!</h3>
187
Now that you have created your model, manage them!
191
<form action="/broadcast" enctype="multipart/form-data" method="POST">
192
<select name = "albums" id = "albums">
193
{% for album in albums %}
194
<option id = "{{album.name}}" value="{{album.name}}">{{album.name}}</option>
197
<input type="button" id = "view" value="View">
199
<input type="submit" name="broadcast" value="Broadcast">
202
{% for album in models%}
203
<div id = "{{album.name}}_table">
205
<tr><td>Check?</td><td>Name</td><td>Author</td><td>Fiducial Marker</td></tr>
206
{% for model in album.content %}
209
<td>{{model.name}}</td>
210
<td>{{model.author}}</td>
211
<td>{{model.fiducial}}</td>
b'\\ No newline at end of file'