https://lunareclipse.studio/creations/starlight-skinapi is completely blank
Seems like there's a bug when it is parsing player names, all player names return "error": "Unknown player name."
1 messages · Page 1 of 1 (latest)
https://lunareclipse.studio/creations/starlight-skinapi is completely blank
Seems like there's a bug when it is parsing player names, all player names return "error": "Unknown player name."
why not cache the uuids?
We did, we get new requests too fast for that to help.
ah I see
while I have you, the ?skinUrl query parameter seems to not work sometimes
could you add error handling to it so it doesn't time out?
I thought I did
damnit
I must've broke it when switching to uuids
ill check again
Well
ohh I see
http://158.140.247.161:3001/hoodie/Bret06
Oh right
you need to secure it
I saw the things you've worked on
so you know what an ssl cert is right?
I did try that
This is somehow my fault
The rendering bug
it's just on the head render
weird
This works though
Our renders are made in a web enviroment and I'm sure you know how dumb that can be with insecure elements
xD
wait so its made using something like canvas?
Threejs
oh
Canvas could do it, but it would probably be A LOT of processing
and super hard to code
yeah
I need to fix the head render now lol
if you're rendering them with three, could you add a way to customize the position of every element of the skin alongside the preset ones?
so with that you can change every limb by specifying a parameter
but php sucks
Oh well atm it just uses a preset obj model
but that is very possible
I did think of making it so you can link to your own obj'
that would be cool
np
ok sorted the service that actually does it and it fully works now without any weird ngrok stuff
Oh epic
hold this:
removeTransparentArea(img)
.then(buffer => {
res.set("Content-Type", "image/webp");
res.send(buffer);
})```
@high steeple Merry christmas
starlightskins.lunareclipse.studio/skin-render/custom/753dd908-8e20-41d9-98d2-1e1d57a576ac/full?wideModel=https://lunareclipse.studio/model.obj&slimModel=https://lunareclipse.studio/model.obj&cameraPosition={"x":"39.39","y":"11.43","z":"-41.97"}&cameraFocalPoint={"x":"-0.31","y":"20.43","z":"4.06"}
❤️
You can get the position and angle from here in block bench:
thats awesome
Just make sure whatever you host the model on has open cors
or at least has starlightskins.lunareclipse.studio whitelisted
alright sounds good
To help you get the camera position
Copy Camera info
Output: &cameraPosition={"x":"-16.388935149351155","y":"34.963886021242985","z":"-47.504059299341236"}&cameraFocalPoint={"x":"-2.810595379688337","y":"-0.3735349045740499","z":"-3.0168466818607347"}
That can be used in the url