kuri-pl commited on
Commit
4aa93ff
·
1 Parent(s): 71039c9

Add Unity WebGL build files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ Build/* filter=lfs diff=lfs merge=lfs -text
Build/Retro-to-3D.data.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e09a3a61427e13f764ad0a4fa5e8084bd9b59a1f4506fd1d48427c7f766727f
3
+ size 8276231
Build/Retro-to-3D.framework.js.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bec3ac740fe0f25d934eb95e978624db24ff8380382d7efae2f9126e1ee282b6
3
+ size 81615
Build/Retro-to-3D.loader.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75083a3271c601c2933e0b94cb8b59c17f7ff8fed2c923868dfd978e82bde964
3
+ size 20672
Build/Retro-to-3D.wasm.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7d331daa1e1aac2aae8fcd6e848e5e92cd35e7f0ebeaa9233291ff1527893fa
3
+ size 9696260
index.html CHANGED
@@ -1,19 +1,40 @@
1
  <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
  <!DOCTYPE html>
2
+ <html lang="en-us">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6
+ <title>Unity WebGL Player | Pj - 2D-to-3D</title>
7
+ </head>
8
+ <body style="text-align: center; padding: 0; border: 0; margin: 0;">
9
+ <canvas id="unity-canvas" width=960 height=600 tabindex="-1" style="width: 960px; height: 600px; background: #231F20"></canvas>
10
+ <script src="Build/Retro-to-3D.loader.js"></script>
11
+ <script>
12
+ if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
13
+ // Mobile device style: fill the whole browser client area with the game canvas:
14
+ var meta = document.createElement('meta');
15
+ meta.name = 'viewport';
16
+ meta.content = 'width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes';
17
+ document.getElementsByTagName('head')[0].appendChild(meta);
18
+
19
+ var canvas = document.querySelector("#unity-canvas");
20
+ canvas.style.width = "100%";
21
+ canvas.style.height = "100%";
22
+ canvas.style.position = "fixed";
23
+
24
+ document.body.style.textAlign = "left";
25
+ }
26
+
27
+ createUnityInstance(document.querySelector("#unity-canvas"), {
28
+ dataUrl: "Build/Retro-to-3D.data.gz",
29
+ frameworkUrl: "Build/Retro-to-3D.framework.js.gz",
30
+ codeUrl: "Build/Retro-to-3D.wasm.gz",
31
+ streamingAssetsUrl: "StreamingAssets",
32
+ companyName: "ilumine AI",
33
+ productName: "Pj - 2D-to-3D",
34
+ productVersion: "0.1.0",
35
+ // matchWebGLToCanvasSize: false, // Uncomment this to separately control WebGL canvas render size and DOM element size.
36
+ // devicePixelRatio: 1, // Uncomment this to override low DPI rendering on high DPI displays.
37
+ });
38
+ </script>
39
+ </body>
40
  </html>