How To Add 3D Meshes to Images in Widgets
ฝัง
- เผยแพร่เมื่อ 27 ก.ค. 2023
- This is another unreal engine tutorial. In this video we are going to learn how to add 3D meshes to images in your widget.
With widgets you can assign images a texture or material asset. For the 3D mesh to work it needs to be a material. For this purpose we are going to use the SceneCapture2D component. Basically it’s a special kind of camera that captures a scene(a snapshot) and can render that scene to a texture, you can create a material from the texture and use it in the UMG UI designer for the image.
Version used: Unreal Engine 5.2.1
Let's get into it.
Buy Me Coffee
buymeacoffee.com/pauloorquillo
Social
Twitter/X: / olopsman
Shot with Sony ZV-E10
amzn.to/3uVzPQt
Sigma 16mm f/1.4 DC DN
amzn.to/3AgH1d1
Rode MicroVideo Microphone
amzn.to/3ccVRYR
SanDisk 128GB Extreme PRO
amzn.to/3RF9gZD
My Workstation Setup
Macbook Pro 16 inch M1 Pro
amzn.to/3OdBqb7
Samsung 28-Inch 4K UHD Led-Lit Monitor
amzn.to/3Od1t27
USB C to HDMI Cable 4K
amzn.to/3REVpBe
Apple Magic Keyboard with Touch ID and Numeric Keypad
amzn.to/3Pwm6HF
Skillshare Referral
share.skillshare.com/pauloorq...
Thanks
what if i should bring the static mesh during runtime? I wanna know if scene capture still works without spawning the actor. because if i spawn the actor the scenecapture capture the view from the level that spawned
thanks, very useful
nice.
Do I need to create individual render targets if, for example, I want them for different types of guns? Or is there another way?
Need? Probably not. The sky is the limit when it comes to coding custom re-usable solutions. However, unless you are doing straight up reskins of a model you likely want to have individually framed renders for each of your meshes. MAYBE if you have extremely similar meshes. Ask yourself if coding a reusable solution will save you time or not. This should include time for research as well as development.
Would I need to add the blueprint in each level use the UI in?
might have too because the event tick is needed for the animation to work. if you don't need the animation then no need to add it to the level.
i love tutorial
For some reason, unlike yours, mine is rendering the whole scene in the background behind the object, is there something I can choose so it only uses what it can see in the blueprint?
hmm double check you added the show only component and the component is the weapon.