File size: 1,189 Bytes
fba2ed6
 
 
 
 
 
 
 
 
 
 
 
 
 
b62d704
fba2ed6
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="/view/index.css" />
    <title>Image to 3D</title>
</head>
<body>
    <form id="upload">
        <input type="file" id="targetImage">
        <button>変換する</button>
      </form>
    <p>FYI: <a href="https://huggingface.co/spaces/nagauta/image2mesh/blob/main/public/bed.png">bed.png</a> works well for this demo.</p>
    <canvas id="renderCanvas"></canvas>

    <script src="https://preview.babylonjs.com/babylon.js"></script>
    <script src="https://preview.babylonjs.com/loaders/babylonjs.loaders.min.js"></script>
    <script src="https://preview.babylonjs.com/serializers/babylonjs.serializers.min.js"></script>
    <script src="https://preview.babylonjs.com/materialsLibrary/babylonjs.materials.min.js"></script>
    <script src="https://cdn.babylonjs.com/loaders/babylon.objFileLoader.js"></script>
    <script src="https://code.jquery.com/pep/0.4.1/pep.js"></script>
    <script src="/view/index.js"></script>
</body>
</html>