Using assets-thumbnail-3d API Endpoint

I have been experimenting with using Roblox headshots and catalog assets (with the help of an AI model) to map catalog assets to a player’s avatar.

The problem I have been having is that Roblox headshot thumbnails are rendered facing you while the catalog thumbnails from /v1/assets show assets generated at an angle which is difficult to impossible for the AI to match the image to an avatar.
(Weirdly angled asset)
(Flat angled asset on avatar)

I was wondering if it was possible to use the /v1/assets-thumbnail-3d endpoint to accomplish this since this endpoint returns the following data under imageUrl :

{"camera":{"position":{"x":106.3,"y":1.19843,"z":-87.2964},"direction":{"x":-0.38723,"y":0.40558,"z":-0.827984},"fov":52.3475},"aabb":{"min":{"x":106.319,"y":0.30328,"z":-86.336},"max":{"x":107.624,"y":0.690912,"z":-85.3804}},"mtl":"10f7d0b67acd5aa0e532b5bc016a15ec","obj":"ea45f562f7c1f37958ac262d7c0dfaa1","textures":["2e59b45811c9a16daa78e826e2281976"]}

I can see that the camera is positioned somewhere and that ‘MTL’ and ‘OBJ’ are files associated with 3D models as well as a texture but I don’t know how to convert this data to an image link or image file. Could anyone possibly help with this? :happy3:

2 Likes

I just wrote a tutorial on this that explains how this API works in detail
It uses avatar 3d api, but they both work the same way

1 Like

Wow this is really helpful, thanks!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.