-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwiki.html
298 lines (257 loc) · 15.4 KB
/
wiki.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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
<!DOCTYPE html>
<html>
<head>
<title>Kamigen Wiki | Kamigen | A Tropical Cyberpunk World
</title>
<base href="/">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" rel="stylesheet"><!-- Facebook Pixel Code --><script>!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '1266796517023212'); fbq('track', 'PageView');</script><noscript> <img height="1" width="1" src="https://www.facebook.com/tr?id=1266796517023212&ev=PageView&noscript=1"/></noscript><!-- End Facebook Pixel Code -->
<link href="/dist/website.css" rel="stylesheet">
</head>
<body>
<div class="ui grid stackable">
<div class="row">
<div class="column">
<div class="ui five column very relaxed grid center aligned" id="main_menu">
<div class="column"><a class="ui button inverted big fluid" href="/comics.html">Comics</a></div>
<div class="column"><a class="ui button inverted big fluid" href="/game.html">Game</a></div>
<div class="column logo"><a href="/"><img src="/art/design/Website%20Logo-01.png" title="Return to the Kamigen Homepage"></a></div>
<div class="column"><a class="ui button inverted big fluid" href="/shop.html">Shop</a></div>
<div class="column"><a class="ui button inverted big fluid" href="/wiki.html">Wiki</a></div>
</div>
<div class="ui fluid vertical menu inverted" id="mobile_menu">
<div class="item logo"><a href="/"><img src="/art/design/Website%20Logo-01.png" title="Return to the Kamigen Homepage"></a>
<div id="mobile_menu_toggle"><i class="content icon"></i></div>
</div>
<div class="item"><a class="ui button inverted big fluid" href="/comics.html">Comics</a></div>
<div class="item"><a class="ui button inverted big fluid" href="/game.html">Game</a></div>
<div class="item"><a class="ui button inverted big fluid" href="/shop.html">Shop</a></div>
<div class="item"><a class="ui button inverted big fluid" href="/wiki.html">Wiki</a></div>
</div>
</div>
</div>
<div class="ui dividing header"></div>
<div class="row" id="container">
<div class="column two wide"></div>
<div class="column two wide">
<h3 class="ui dividing header inverted">Kamigen World</h3>
<div class="ui fluid menu vertical inverted"><a class="item" href="/wiki/characters.html">Characters</a><a class="item" href="/wiki/locations.html">Locations</a><a class="item" href="/wiki/lore.html">Lore</a><a class="item" href="/wiki/timeline.html">Timeline</a></div>
<h3 class="ui dividing header inverted">Production</h3>
<div class="ui fluid menu vertical inverted"><a class="item" href="/wiki/blog.html">Blog</a><a class="item" href="/wiki/info_sheets.html">Character and story info sheets</a><a class="item" href="/wiki/concept_art.html">Concept art</a><a class="item" href="/wiki/production_notes.html">Production notes</a><a class="item" href="/wiki/screenshots.html">Screenshots</a></div>
</div>
<div class="column ten wide">
<h1>Welcome to the Kamigen Wiki!</h1>
<p>This knowledgebase contains background information about the Kamigen World and production information relating to the comics and game.</p>
<h3 class="ui dividing header inverted">Concept art</h3>
<div class="ui small images"><a href="./art/concept/Camiguin Concept-01.png" target="_blank"><img class="ui image" src="./art/concept/Camiguin Concept-01.png" target="_blank"></a><a href="./art/concept/Camiguin-Island-Landscape.jpg" target="_blank"><img class="ui image" src="./art/concept/Camiguin-Island-Landscape.jpg" target="_blank"></a><a href="./art/concept/Cosmic Mythology.png" target="_blank"><img class="ui image" src="./art/concept/Cosmic Mythology.png" target="_blank"></a><a href="./art/concept/Hangar.png" target="_blank"><img class="ui image" src="./art/concept/Hangar.png" target="_blank"></a><a href="./art/concept/island sprite.png" target="_blank"><img class="ui image" src="./art/concept/island sprite.png" target="_blank"></a><a href="./art/concept/Scenes.png" target="_blank"><img class="ui image" src="./art/concept/Scenes.png" target="_blank"></a><a href="./art/concept/Ship Concept Art-01.png" target="_blank"><img class="ui image" src="./art/concept/Ship Concept Art-01.png" target="_blank"></a><a href="./art/concept/Ship Concept Art-02.png" target="_blank"><img class="ui image" src="./art/concept/Ship Concept Art-02.png" target="_blank"></a><a href="./art/concept/Site Design WIP.png" target="_blank"><img class="ui image" src="./art/concept/Site Design WIP.png" target="_blank"></a><a href="./art/concept/UI mockup-01.png" target="_blank"><img class="ui image" src="./art/concept/UI mockup-01.png" target="_blank"></a><a href="./art/concept/UI mockup 2-01.png" target="_blank"><img class="ui image" src="./art/concept/UI mockup 2-01.png" target="_blank"></a><a href="./art/concept/UI mockup 2-02.png" target="_blank"><img class="ui image" src="./art/concept/UI mockup 2-02.png" target="_blank"></a><a href="./art/concept/UI mockup 2-03.png" target="_blank"><img class="ui image" src="./art/concept/UI mockup 2-03.png" target="_blank"></a></div>
<div class="column eight wide">
<h3 class="ui dividing header inverted">Screenshots</h3>
<div class="ui small images"><a href="./art/screenshots/Kamigen Island shot.PNG" target="_blank"><img class="ui image" src="./art/screenshots/Kamigen Island shot.PNG" target="_blank"></a><a href="./art/screenshots/Screenshot 2018-09-21.PNG" target="_blank"><img class="ui image" src="./art/screenshots/Screenshot 2018-09-21.PNG" target="_blank"></a><a href="./art/screenshots/Screenshot 2018-09-22.PNG" target="_blank"><img class="ui image" src="./art/screenshots/Screenshot 2018-09-22.PNG" target="_blank"></a><a href="./art/screenshots/Screenshot 2019-01-26.PNG" target="_blank"><img class="ui image" src="./art/screenshots/Screenshot 2019-01-26.PNG" target="_blank"></a><a href="./art/screenshots/Screenshot 2019-01-26-1.PNG" target="_blank"><img class="ui image" src="./art/screenshots/Screenshot 2019-01-26-1.PNG" target="_blank"></a><a href="./art/screenshots/Screenshot 2019-09-2.PNG" target="_blank"><img class="ui image" src="./art/screenshots/Screenshot 2019-09-2.PNG" target="_blank"></a><a href="./art/screenshots/Wallpaper.PNG" target="_blank"><img class="ui image" src="./art/screenshots/Wallpaper.PNG" target="_blank"></a></div>
</div>
</div>
<div class="column two wide"></div>
</div>
<div class="row footer">
<div class="column five wide">
<div class="ui horizontal list">
<div class="item"><a href="https://www.deviantart.com/thezeski/gallery/70776399/kamigen-comics" title="Kamigen Comics on DeviantArt"><img class="ui mini image" src="/assets/deviantart.png" alt="Deviantart"></a></div>
<div class="item"><a href="https://www.facebook.com/kamigenofficial/" title="Kamigen Facebook Page"><img class="ui mini image" src="/assets/facebook.png" alt="Facebook"></a></div>
<div class="item"><a href="https://www.instagram.com/kamigen_comics/" title="Kamigen Comics Instagram"><img class="ui mini image" src="/assets/instagram.png" alt="Facebook"></a></div>
</div>
</div>
<div class="column six wide"><a href="/" title="Kamigen"><img src="/art/design/Website%20Footer%20Logo-01.png" alt="Kamigen"></a></div>
<div class="column five wide"><a href="https://openstudios.xyz" title="An Open Studios Project"><img class="ui image small" src="/assets/open_studios_logo.png" style="margin: 0 auto" alt="Open Studios logo"></a></div>
</div>
</div>
<script id="landVertexShader" type="x-shader/x-vertex">uniform sampler2D bumpTexture;
uniform float bumpScale;
varying float vAmount;
varying vec2 vUV;
varying vec4 worldPosition;
varying vec3 vViewPosition;
varying vec3 vNormal;
void main()
{
vUV = uv;
vec4 bumpData = texture2D( bumpTexture, uv );
vAmount = bumpData.r; // assuming map is grayscale it doesn't matter if you use r, g, or b.
// move the position along the normal
vec3 newPosition = position + normal * bumpScale * vAmount;
worldPosition = modelMatrix * vec4( newPosition, 1.0 );
// Normal position.
vNormal = normalize( normalMatrix * normal );
// View vector.
vViewPosition = cameraPosition - worldPosition.xyz;
gl_Position = projectionMatrix * modelViewMatrix * vec4( newPosition, 1.0 );
}
</script>
<script id="landFragmentShader" type="x-shader/x-fragment">uniform float landSize;
uniform float time;
uniform sampler2D sandyTexture;
uniform sampler2D forestTexture;
uniform sampler2D rockyTexture;
uniform sampler2D texture;
uniform vec3 sunPosition;
uniform vec3 center;
varying vec2 vUV;
varying float vAmount;
varying vec4 worldPosition;
varying vec3 vViewPosition;
varying vec3 vNormal;
// Shade island based on sun direction.
float sunshadeIsland() {
float radius = landSize / 4.;
// Distance between this point and sun.
float a = distance(worldPosition.xyz, sunPosition);
// Distance between the center and sun.
float b = distance(center, sunPosition);
// Default shade
float c = 0.0;
// Sun max height
float maxSun = 150000.;
float brightness = (sunPosition.y / maxSun);
if (sunPosition.y > 0.) {
if (a < b) {
brightness *= 0.5;
}
else {
brightness *= 0.3;
}
}
else {
brightness *= 0.05;
}
return brightness;
}
float snoise ( vec3 coord, float scale, float time_factor ) {
vec3 scaledCoord = coord * scale - (vNormal / time_factor + vec3(0.0, 0.0, -time / time_factor));
vec2 uvTimeShift = vec2((scaledCoord.x + scaledCoord.z) / 2.0, scaledCoord.y) + vec2( -0.7, 1.5 ) * time / time_factor * 0.015;
vec4 noiseGeneratorTimeShift = texture2D( forestTexture, uvTimeShift ) * 50.;
vec2 uvNoiseTimeShift = vec2(scaledCoord.x, scaledCoord.y) + 0.5 * vec2( noiseGeneratorTimeShift.r, noiseGeneratorTimeShift.b );
vec4 baseColor = texture2D( forestTexture, uvNoiseTimeShift * vec2(4.0, 4.0) );
return baseColor.b;
}
float heightMap( vec3 coord ) {
float n = abs(snoise(coord , 1.0 , 18.0));
n -= 0.75 * abs(snoise(coord , 4.0 , 25.0));
n += 0.125 * abs(snoise(coord , 14.0 , 35.0));
n *= 0.7;
return n;
}
// normal
vec3 getNormalLightWeight() {
const float e = .01;
float n = heightMap(worldPosition.xyz);
float nx = heightMap( worldPosition.xyz + vec3( e, 0.0, 0.0 ) );
float ny = heightMap( worldPosition.xyz + vec3( 0.0, e, 0.0 ) );
float nz = heightMap( worldPosition.xyz + vec3( 0.0, 0.0, e ) );
vec3 normal = normalize( vNormal + .5 * vec3( n - nx, n - ny, n - nz ) / e );
// diffuse light
vec3 vLightWeighting = vec3( 0.005 );
vec4 lDirection = viewMatrix * vec4( normalize( vec3( 1.0, 0.0, 0.5 ) ), 0.0 );
float directionalLightWeighting = dot( normal, normalize( lDirection.xyz ) ) * 0.15 + 0.85;
vLightWeighting += vec3( 1.0 ) * directionalLightWeighting;
// specular light
vec3 dirHalfVector = normalize( lDirection.xyz + normalize( vViewPosition ) );
float dirDotNormalHalf = dot( normal, dirHalfVector );
float dirSpecularWeight = 0.0;
if ( dirDotNormalHalf >= 0.0 )
dirSpecularWeight = ( 1.0 - n ) * pow( dirDotNormalHalf, 5.0 );
vLightWeighting *= vec3( 1.0, 0.5, 0.0 ) * dirSpecularWeight * n * 2.0;
return vLightWeighting;
}
void main()
{
if (vAmount < 0.01) {
gl_FragColor = texture2D( sandyTexture, vUV * 50.0 );
gl_FragColor.a = 0.0;
}
else {
vec4 sandy = (smoothstep(0.01, 0.03, vAmount) - smoothstep(0.05, 0.07, vAmount)) * texture2D( sandyTexture, vUV * 50.0 );
vec4 forest = (smoothstep(0.05, 0.07, vAmount) - smoothstep(0.40, 0.70, vAmount)) * texture2D( forestTexture, vUV * 50.0 );
vec4 rocky = (smoothstep(0.50, 0.65, vAmount)) * texture2D( rockyTexture, vUV * 25.0 );
gl_FragColor = sandy + forest + rocky;
gl_FragColor -= (texture2D( texture, vUV ) * 0.5);
// Alternative shading.. needs work. Look to integrate above old functions from Langenium..
//float diffuse = max(sunPosition.x * gl_FragColor.r + sunPosition.y * gl_FragColor.g + sunPosition.z * gl_FragColor.b, 0.0);
//gl_FragColor *= 1. + diffuse * 0.1;
gl_FragColor += sunshadeIsland();
gl_FragColor.a = 1.0;
}
}
</script>
<script id="spriteVertexShader" type="x-shader/x-vertex">varying vec2 vUV;
void main()
{
vUV = uv;
gl_Position = projectionMatrix *
modelViewMatrix *
vec4(position,1.0);
}
</script>
<script id="spriteFragmentShader" type="x-shader/x-fragment">varying vec2 vUV;
void main()
{
vec2 uv = vUV;
uv -= 0.5;
uv.x *= 0.8;
float d = length(uv);
float c = smoothstep(0.4, 0.4-0.6, d);
c *= 0.5;
gl_FragColor = vec4(c);
}
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.js"></script>
<script async="async" src="https://www.googletagmanager.com/gtag/js?id=UA-126811218-1"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tween.js/17.4.0/Tween.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r116/three.min.js"></script>
<script src="./vendor/ImprovedNoise.js"></script>
<script src="./vendor/simplex.js"></script>
<script src="./vendor/threex.keyboardstate.js"></script>
<script src="./vendor/stats.min.js"></script>
<script src="./vendor/OrbitControls.js"></script>
<script src="./vendor/Water.js"></script>
<script src="./vendor/Sky.js"></script>
<script>
$(document).ready(()=>{
$('#mobile_menu_toggle').click(()=>{
$('#mobile_menu .item:not(.logo)').slideToggle();
});
});
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-126811218-1');
</script>
<script>
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://kamigen.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-V14S7QR4X4');
</script>
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analytics.openstudios.xyz/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '8']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
</body>
</html>