Access denied when requesting MTL file from 3D avatar thumbnail

I am making request to Roblox as follows to obtain 3D avatar thumbnail information:

https://thumbnails.roblox.com/v1/users/avatar-3d?userId=312423083

I am getting correct response of:

{"targetId":312423083,"state":"Completed","imageUrl":"https://t2.rbxcdn.com/0b9046e63072c1b0b4d2b25174bc6c6d"}

Then I make another request to obtain more information:

https://t2.rbxcdn.com/0b9046e63072c1b0b4d2b25174bc6c6d

I get:

{"camera":{"position":{"x":4.25077,"y":105.587,"z":-11.3291},"direction":{"x":0.347968,"y":0.246151,"z":-0.904615},"fov":28.7642},"aabb":{"min":{"x":-1.61185,"y":99.9518,"z":-2.70975},"max":{"x":1.97061,"y":105.145,"z":1.24678}},"mtl":"0fd0b427348a9255fd1e7fb9cff5dbc4","obj":"c66619d1976473ddcaa7e36b62867522","textures":["d7a7e00f9cd98ba0634d683a8d0f5aa3","9b1e86351ca50dd3f6021578952e0ae7","a4a5696f9dfd638e109817176b86cb2f"]}

Then I try to load OBJ:

https://t1.rbxcdn.com/c66619d1976473ddcaa7e36b62867522

It works fine, I get OBJ data. But when I try to make request to obtain MTL file, I get access denied:

https://t1.rbxcdn.com/0fd0b427348a9255fd1e7fb9cff5dbc4

How can I get past the access denied error?

1 Like

Seems like a bug to me. However, I’ve never seen anyone mention that it was even possible to get the MTL data.

1 Like

I think that nobody mentioned it before it’s because not a lot of people tried recreating Roblox 3D avatar preview before.

1 Like

I’m unsure on what an MTL file does, but I believe it is a texture map that puts the textures in the correct spot.

The extra data does not allow you to recreate it properly in studio if it does not provide the animation pose being used.

1 Like

The OBJ already has baked in pose. The only thing missing is the MTL file (aka texture locations).

From my experience, MTL files do not load when I export. They come out as a .PNG map.

They also do not have an option to load it in Blender, so I’m unsure what it’s for. I’d bet there’s an equivalent.

The problem is that you don’t know what pose it is, so you can’t download the avatar from the Players service with the pose to recreate the preview.

I am using Roblox web API, this isn’t directly related to Roblox Studio.

https://thumbnails.roblox.com/docs/index.html

This isn’t a bug, i just wrote a tutorial on how this API works, take a look!

1 Like

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