Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpjack authored Nov 15, 2024
1 parent 341521d commit 5141dcd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions VST2X3D-AI-003.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ let x3d = null;

proxyURL = "https://win98.altervista.org/space/exploration/myp.php?pass=miapass&mode=native&url=";


const graphicalProducts = [
"RAD",
"RAL",
Expand All @@ -40,7 +41,9 @@ const graphicalProducts = [
"CCD",
"CCL",
"CFD",
"CFL"
"CFL",
"ITH",
"THN"
];


Expand Down Expand Up @@ -256,15 +259,15 @@ console.log("HEADER - Searching texture...");
let textureBASE64 = "error";
for (let productIndex = 0; (( productIndex < graphicalProducts.length) && (textureBASE64 === "error")); productIndex++) {
let textureUrlProduct = graphicalProducts[productIndex];
base_texture_folder = base_texture_folder.replace("#SOLNUMBER#",solNumber);
let textureUrl = base_texture_folder + textureUrlLeft + textureUrlProduct + textureUrlRight;
base_texture_folderNew = base_texture_folder.replace("#SOLNUMBER#",solNumber);
let textureUrl = base_texture_folderNew + textureUrlLeft + textureUrlProduct + textureUrlRight;
textureUrl = textureUrl.toLowerCase();
textureBASE64 = await urlToBase64(textureUrl);
if (textureBASE64 !== "error") {
}
};
if (textureBASE64 === "error") {
console.log("WARNING! Could not found texture in folder " + base_texture_folder);
console.log("WARNING! Could not found texture '" + textureUrlProduct + "' in folder " + base_texture_folderNew);
this.textureFiles.push(null);
} else {
// Aggiungi textureName all'array textureFiles
Expand Down

0 comments on commit 5141dcd

Please sign in to comment.