What I want to achieve is basically a way to send images to my website. I am wanting to do this for a ride photosystem, so a user is on the ride and ride makes an image using viewport frames and then sends that to a website. I don’t even know if it’s possible with Roblox limits but what would the best way be?
There would be some issues with this, such as how to generate an image file using LUA but I don’t know if it’s possible.
I was thinking a good way to make this is with PHP, what do you guys recommend doing this with/how I could do it?
You could theoretically do this by grabbing the image of the entire body of the avatars, but then the characters would be standing on the ride. AFAIK there’s no way to take, from the Roblox website and to put on another, a picture of a user sitting.
Roblox currently doesn’t give you the ability to read pixels as they are rendered on the client so the only way this would be possible is to take a snapshot of all moveable objects in the scene (i.e record the CFrames and meshIds from the characters) and use that data to recreate the scene on your server.
That is a lot more trouble than it’s worth especially since players can already take screenshots themselves if they want to.
Its well possible, and there is no limitations stopping sending an image to a website. Of course you can’t send the whole thing, the website will have to decode it and make the image from any data send from the game itself.
I mean that you’d generate a image from any objects that are in the shot, also because the ride is most likely not unique every time you ride it you can skip tons of steps by just adding the user’s avatar to a picture.
It is possible. You could use raycasts to create your own rendering solution, and send pixel data via http, then do the reverse if you wish to send an image back. There’s a nice example of a renderer here: https://twitter.com/sircfennerRBX/status/1009921076913229824