-
Notifications
You must be signed in to change notification settings - Fork 1
/
graphics.html
203 lines (177 loc) · 8.02 KB
/
graphics.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Julian Wyatt</title>
<!-- Favicons -->
<link href="https://img.icons8.com/nolan/64/code-fork.png" rel="icon">
<link href="https://img.icons8.com/nolan/64/code-fork.png" rel="apple-touch-icon">
<script src="assets/js/CG/index.js"></script>
<script src="assets/js/CG/lib/webgl-utils.js"></script>
<script src="assets/js/CG/lib/webgl-debug.js"></script>
<script src="assets/js/CG/lib/cuon-utils.js"></script>
<script src="assets/js/CG/lib/cuon-matrix.js"></script>
<script src="assets/js/CG/lib/gl-matrix.js"></script>
<!-- Google Fonts -->
<link
href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Satisfy"
rel="stylesheet">
<!-- Vendor CSS Files -->
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/icofont/icofont.min.css" rel="stylesheet">
<link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
<!-- <link href="assets/vendor/owl.carousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="assets/vendor/venobox/venobox.css" rel="stylesheet"> -->
<!-- Template Main CSS File -->
<link href="assets/css/style.css" rel="stylesheet">
<!-- =======================================================
* Template Name: Laura - v2.0.0
* Template URL: https://bootstrapmade.com/laura-free-creative-bootstrap-theme/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
======================================================== -->
</head>
<body onload="main()">
<!-- ======= Header ======= -->
<header id="header" class="fixed-top d-flex justify-content-center align-items-center">
<nav id="nav" class="nav-colour nav-menu-scrolled nav-menu d-none d-lg-block d-md-block">
<ul>
<li class="active"><a href="./">Home</a></li>
<li><a href="./#about">About</a></li>
<li><a href="./#resume">Resume</a></li>
<li><a href="./#portfolio">Portfolio</a></li>
<li><a href="./#contact">Contact</a></li>
</ul>
</nav><!-- .nav-menu -->
</header><!-- End Header -->
<main id="main">
<div class="container align-content-center smallMargin" >
<h3>Year 2 Computer Graphics submodule</h3>
<p><strong>Task: </strong> We were tasked to develop a living room using WebGL (<strong>Javascript Graphical Processing</strong>) and Blender or primitives for model creation - (<strong>Mark: </strong>100%)<br>
<!-- <strong>Warning</strong> -- this may run slowly if viewing on low graphical power devices. -->
<b>Libraries & Technologies used:</b> WebGL (with C Vertex and Fragment Shader), JS, HTML
<div id="team" style="margin-bottom: 20px;">
<div class="social-links">
<div class="row" style="margin-left: 10px;">
<div class="col-9 col-sm-9 col-md-7 col-lg-5 col-xl-5">
<i class="icofont-rounded-right"></i>For the complete source code, please visit:
</div>
<div class="col d-flex justify-content-start">
<a href="https://github.com/Julian-Wyatt/graphicsWebGL" class="github"><i class="bx bxl-github"></i></a>
</div>
</div>
</div>
</div>
</p>
</div>
<div class="container-fluid ">
<div class="d-block d-sm-block d-md-none d-lg-none d-xl-none">
<h3 style="margin-top: 100px; margin-bottom:100px">Please load on a larger display for viewing and interactivity</h3>
</div>
<div class="row d-none d-s-none d-md-flex d-lg-flex d-xl-flex">
<div class="col-lg-8 col-md-8 col-sm-12 smallContainer" style="box-shadow:0 1px 2px 0 rgba(34,36,38,.15); border: 1px solid rgba(34,36,38,.15); border-radius: .28571429rem;" id="glWidthParent">
<canvas id="webgl" >
Please use a browser that supports "canvas"
</canvas>
</div>
<div class="col-lg-4 col-md-4 col-sm-12">
<br>
<br>
<div class="row">
<p style="margin: 20px;">
<strong>Instructions: </strong> Use the arrow keys to rotate around the room - Use w to zoom in and s to zoom out - Use buttons below for animations
</p>
</div>
<div class="row">
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" style="padding:5px">
<button class="btn btn-dark" style="width:100%" id="channelBtn">Change Channel / t</button>
</div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" style="padding:5px">
<button class="btn btn-dark" style="width:100%" id="cushionBtn">Make cushions spin / n</button>
</div>
</div>
<div class="row">
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" style="padding:5px">
<!-- <button class="btn btn-dark" style="width:100%" id="styleBtn">Change Style of lighting / c</button> -->
<button class="btn btn-dark" style="width:100%" id="wallsBtn">Lower walls / spacebar</button>
</div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" style="padding:5px">
<button class="btn btn-dark" style="width:100%" id="chairMoveBtn">Move Chair / b</button>
</div>
</div>
<div class="row">
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" style="padding:5px">
<button class="btn btn-dark" style="width:100%" id="sway">Move Light / m</button>
</div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" style="padding:5px">
<button class="btn btn-dark" style="width:100%" id="mug">Move Mug / g</button>
</div>
</div>
<br>
<div class="row">
<div class="col-9">
<span>Make Light Flicker / l</span>
</div>
<div class="col-3">
<input type="checkbox" id = "flickerBox">
</div>
</div>
<div class="row">
<div class="col-9">
<span id="styleLabel">Lighting Style - <strong>Currently: </strong> Point-based</span>
</div>
<div class="col-3">
<input type="checkbox" id = "styleBox" >
</div>
</div>
<div class="row">
<div class="col-9">
<span id="normalLabel">Normal Map Style - <strong>Currently:</strong> point-based</span>
</div>
<div class="col-3">
<input type="checkbox" id = "normalBox" checked >
</div>
</div>
<br>
<div class="row">
<div class="col-lg-5">
<span id = "dimmerTxt"> Light Dimmer </span>
</div>
<div class="col-lg-7">
<input id="dimmer" style="margin-right: 10px;" class="slider" step="0.01" type="range" min="0" max="0.8">
</div>
</div>
<br>
</div>
</div>
</div>
</main><!-- End #main -->
<!-- ======= Footer ======= -->
<footer id="footer">
<div class="container" id="contact">
<h3>Julian Wyatt</h3>
<p>If you wish to contact me to ask any questions about any of my work or to view my work, please use the social links below.<br> I would love to hear from you!</p>
<p><strong>Email:</strong> [email protected]</p>
<div class="social-links">
<a href="https://github.com/Julian-Wyatt" class="github"><i class="bx bxl-github"></i></a>
<a href="https://www.linkedin.com/in/julian-wyatt-284468174/" class="linkedin"><i class="bx bxl-linkedin"></i></a>
</div>
<br>
Favicon Rights are owned by: <a href="https://www.icons8.com">icons8.com</a>
</div>
</footer><!-- End Footer -->
<a href="#" class="back-to-top"><i class="icofont-simple-up"></i></a>
<!-- Vendor JS Files -->
<script src="assets/vendor/jquery/jquery.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- <script src="assets/vendor/jquery.easing/jquery.easing.min.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<script src="assets/vendor/waypoints/jquery.waypoints.min.js"></script>
<script src="assets/vendor/counterup/counterup.min.js"></script>
<script src="assets/vendor/owl.carousel/owl.carousel.min.js"></script>
<script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="assets/vendor/venobox/venobox.min.js"></script> -->
<script src="assets/js/mobileNav.js"></script>
</body>
</html>