Rendering a static mesh to UMG in 2019

Hi everyone!

I’m relatively new to UE and i’m still learning… I am trying to create an inventory which shows a 3D model of the items in each slot represented by a static mesh (and ideally also rotate it). I’ve spent a lot of time on previous answers and found out how to work with scene capture components and I’ve already set up how to render 1 individual item.

However, I was wondering, if there haven been any improvements on this, since (and I’ve not tried this yet), rendering 20 or 30 items using a scene capture component is probably not the most efficient way to do this. I’ve also played around with the idea of placing the mesh directly on the camera of the character but this is also a bit fiddly.

Have there been any improvements on this in the last couple of years that I’ve missed?

Looking forward to your answers!

Edit: I’ve put everything in a Widget blueprint and created 6 instances of those, and the FPS already drop from 120 (pretty much nothing in the scene) to 60 :frowning: Probably not the way to go.

Well for an inventory something like 20 to 30 seems reasonable enough I guess.

How many do you need visible at a time?

Hm, not sure if anything has changed, haven’t heard about any breakthroughs with this. Did you try the marketplace?

On the other hand, from a player’s perspective, looking at 20 rotating meshes does not sound appealing. :slight_smile: Depends on the execution, of course.

Scene capture component can take a snapshot of something rather than update in real-time (the default settings afair) - this should be performant. Although, I’m not an expert on this.

Gonna hang out here in case someone drops a killer answer.

Probably going way off the tracks here and definitely far from having the expertise; I’ll still throw in my couple pennies -

Depending on if these meshes are going to be inside a sort of ‘3D’ widget or not; and/or if you are wanting the player to be able to manipulate the orientation of the objects (or not) -

As far as a ‘No’ to both questions and are going for just a orthographic view of each mesh, then you might be able to achieve a similar if not identical effect by making like a video recording of the object in the orientation\rotation desired?

Thanks for the tip about the snapshot instead of real-time, this might actually be suitable for certain use cases within the inventory. thanks!

Well, as answered above, for certain use cases it might be ok to just have a fixed rotation, for example when showing all items and then just rotate the one that is examined closer or something like that.

Is there a way to automatically record a video of a mesh? I would prefer a solution where i just need one mesh per item and no additional thumbnails, video, etc. I’m pretty much a programmer and not an artist, so for me even just to have the mesh is hard enough :smiley: