Render Images in Bulk

I’m working on a game with an inventory system with hundreds of various items. To show an item in the inventory we originally used viewports, but this has become to unscalable. I would like to use images to show each item, but there’s no way to screenshot viewports. Manually rendering this amount of images in blender would take absolutely forever and isn’t very scalable. Does anyone know of any way to render a bunch of images at scale?

1 Like

I’m working on a game with an inventory system with hundreds of various items. To show an item in the inventory we originally used viewports, but this has become to unscalable.

Did you consider pagination? Just show a manageable number of items on each inventory page and only render the ViewportFrames for each page. I can’t imagine why you would need to have an inventory with hundreds of viewable items on one page?

Yeah its not loading every single item in the game at all once lol. Still, our UI can show up to 25 items on screen at once which is causing performance issues.

Decrease the quality of the images and the items you copy into the viewport frames. For each item you copy in only copy the things that are directly viewable in the viewport, for each part within those disable collisions, physics and shadows and if any textures are present try to figure out ways to decrease their quality or remove them(if they’re small).

Basically since the viewports are likely small in size compared to the user screen and only show a few pixels, cut down on the quality of the renders since it will be downsized anyway and it wont matter.

1 Like