More Rendering

This commit is contained in:
Troplo 2020-11-23 22:27:45 +11:00
parent 3ad3779232
commit e3e78c71d0
13 changed files with 4 additions and 3 deletions

BIN
rendering/Head Torso.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
rendering/Right Arm.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
rendering/TorsoNEW.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

BIN
rendering/avatar.blend1 Normal file

Binary file not shown.

BIN
rendering/pants/6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@ -33,7 +33,7 @@ shirt_Image = bpy.data.images.load(filepath = 'C:/Users/matth/Documents/GitHub/w
bpy.data.textures['Shirt'].image = shirt_Image
bpy.data.textures['ShirtR'].image = shirt_Image
bpy.data.textures['ShirtL'].image = shirt_Image
pants_Image = bpy.data.images.load(filepath = 'C:/Users/matth/Documents/GitHub/website/rendering/pants/0.png')
pants_Image = bpy.data.images.load(filepath = 'C:/Users/matth/Documents/GitHub/website/rendering/pants/6.png')
bpy.data.textures['PantsR'].image = pants_Image
bpy.data.textures['PantsL'].image = pants_Image
for obj in bpy.data.objects:
@ -42,5 +42,5 @@ for obj in bpy.data.objects:
bpy.ops.view3d.camera_to_view_selected()
scene = bpy.context.scene
scene.render.image_settings.file_format = 'PNG'
scene.render.filepath = 'rendering/1-627gnoll4ym.png'
scene.render.filepath = 'rendering/8fbe647aa958782d.png'
bpy.ops.render.render(write_still = 1)

View File

@ -5,6 +5,7 @@ const auth = require('../lib/auth')
var fs = require("fs");
const rateLimit = require("express-rate-limit");
const { exec } = require('child_process');
const cryptoRandomString = require("crypto-random-string")
const limiter = rateLimit({
windowMs: 60 * 1000,
max: 3,
@ -23,7 +24,7 @@ router.post("/refresh", limiter, auth, async(req, res, next) => {
console.log(user)
let rootPathRender = "C:/Users/matth/Documents/GitHub/website/";
var blendFilePath = rootPathRender + "rendering/avatar.blend";
var imageSavePath = "rendering/"+req.userData.UserId+"-"+randomString+".png";
var imageSavePath = "rendering/" + cryptoRandomString({length: 16}) + ".png";
var pythonFilePath = "rendering/usercontent/"+req.userData.UserId+".py";
var faceFilePath = rootPathRender + "rendering/faces/defaultFace.png";
if(user.shirtId) {