-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPFB-converter-kaitai.html
48 lines (41 loc) · 2.22 KB
/
PFB-converter-kaitai.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
PFB files folder: <a href="https://pds-imaging.jpl.nasa.gov/data/mer/spirit/mer2mw_0xxx/data/navcam/site0137/">link</a><br>
PFB converter sources: <a href="https://github.com/jumpjack/VST-converter">link</a><br>
<br>
<!--
Get texture references from PFB file: <input type="file" id="inpHeaderFile" name = "inpHeaderFile" width="100" accept=".PFB" ><br>
Texture references: <span id = "spnTextureRef" name = "spnTextureRef">-</span><br>
Load PFB+texture : <input type="file" id="inpPFB_TXTfile" name = "inpPFB_TXTfile" width="100" accept= ".PFB,.img" multiple><br>
-->
Load PFB file only: <input type="file" id="inpPFBfile" name = "inpPFBfile" width="100" accept=".PFB"><br>
Load textures only: <input type="file" id="inpTXTfile" name = "inpTXTfile" width="100" accept=".IMG" multiple><br>
Extract only textures: <input type="checkbox" id ="chkTextures"><br>
<span id="file_status" name="file_status" >waiting</span><br>
<span id="file_length" name="file_length" >-</span><br>
<button id="PLY" name="PLY" onclick = "savePLY()">Save as .PLY</button><br>
<br>
<button id="XYZ" name="XYZ" onclick = "saveXYZ()">Save as .XYZ</button><br>
<br>
<button id="downloadVSTButton" onclick="downloadAllVSTFiles()">Download All VST Files</button><br>
<div id="downloadProgressContainer" style="display: none; position: fixed; bottom: 20px; left: 20px; background-color: white; padding: 10px; border: 1px solid #ccc; z-index: 1000;">
<progress id="downloadProgress" value="0" max="100"></progress>
<span id="progressText">0/0 files downloaded</span>
</div>
<span id="myTable"></span><br>
<br>
<span id = "spnBlender" name="spnBlender"></span><br>
<span id = "spnTextureLinks" name="spnTextureLinks"></span><br>
<span id = "spnXYZLinks" name="spnXYZLinks"></span><br>
<span id = "spnVSTLinks" name="spnVSTLinks"></span><br>
<span id = "spnThumbnails" name="spnThumbnails"></span><br>
-----<br>
<canvas id="texture" name="texture" width="2048" height="2048"></canvas><br>
-----<br>
<script src="KaitaiStream.js"></script>
<script src="PFB.js"></script>
<script src="img_gray16.js"></script>
<script src="PFB-utils.js"></script>
</body>
</html>