Тёмный

Unreal Engine 5 Dissolve Mesh Tutorial 

UnrealCG
Подписаться 36 тыс.
Просмотров 34 тыс.
50% 1

Project Files: / mesh-dissolve-79848177
Forum Post : forums.unrealengine.com/t/rot...
How to Dissolve a Mesh Using Signed Distance Fields in Unreal Engine 5
In this video, I will show you how to dissolve a mesh using any static mesh or a box mask. This is an upgrade to my older tutorial, but this one I have added the ability to rotate the box mask and also use any mesh using Signed Distance Fields in Unreal Engine 5 Material.
What you will need:
Unreal Engine 5
A static mesh or a box mask
A material that uses Signed Distance Fields
Steps:
Import your static mesh or box mask into Unreal Engine 5.
Create a new material and add a Signed Distance Field node.
Set the mesh or box mask as the input for the Signed Distance Field node.
Set the dissolve threshold as desired.
Apply the material to your mesh or box mask.
Result:
Your mesh or box mask will dissolve according to the dissolve threshold you set. You can also rotate the box mask by adjusting the rotation values in the material.
Tips:
You can use any mesh or box mask for this effect.
You can adjust the dissolve threshold to control how much the mesh or box mask dissolves.
You can rotate the box mask to control the direction of the dissolve.
I hope this tutorial was helpful. Please let me know if you have any questions.
**************
This tutorial was made possible by my Pateron supporters.
♥ Want to Support Me on Patreon: goo.gl/jD94ge
**************
Thank you so much for watching my tutorials.
♥ Don't Forget To Subscribe: goo.gl/rM9aZi
Want to watch more Tutorials?
●Related Videos : goo.gl/aZBhuN
●My Particle System Playlist : goo.gl/RNWDFi
●My Shader Effect Playlist : goo.gl/VmSnZH
●My Game Mechanics Playlist : goo.gl/GjmrvY
●My UMG Playlist : goo.gl/G2zqFM
My Social Links : Follow Me!
●Twitter : goo.gl/ARWqBD
●Facebook : goo.gl/DdLxL5
●Donation Link : goo.gl/SAH1hd
*****************************************************
#indie #ue4 #unreal
#gamedev #vfx

Опубликовано:

 

31 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 102   
@ryh.6984
@ryh.6984 Год назад
great job man! love your videos... its like learning a new bag of tricks everytime!
@ermperson
@ermperson Год назад
Cool idea at the end of the video to limit the influence of the sdf to a cube. Thanks
@JayGee1
@JayGee1 Месяц назад
Cool effect 👍Will definitely try this
@bobpouliotte6639
@bobpouliotte6639 Год назад
@26:49 when you turn off "Affect Distance Field Lighting", the cylinder almost glow in the dark. When I replicate this, mine is only regular white. But me scene is having some light (the basic SunSky asset (actually, all the light that come when you do a simulation template scene) Would you know why ? (I know that it's hard without the actual scene and project setting, but you might have an answer maybe..)
@rlb1968able
@rlb1968able Год назад
Can you do the same thing with water to create a pocket of air? And if possible is there a way that we could select certain objects we want to remain in the zone?
@virtualworx
@virtualworx Год назад
Great tutorial! Maybe you can help me with a question. Im looking for a similiar effect like this for a translucent water material, is there a way to achieve this? I have seen that effect in the game scarf and im questioning myself how they achieved this effect.
@kylejames5926
@kylejames5926 5 месяцев назад
You are simply amazing, works like charm thankyou 🎉
@UnrealCG
@UnrealCG 5 месяцев назад
Thanks
@flyingroads3498
@flyingroads3498 6 месяцев назад
I love that. I use the same material and what I know and create another material. ❤
@user-tc7io2tu3m
@user-tc7io2tu3m 6 месяцев назад
Great job! I'm searching for this type of shader for a house-building game. I need to install windows in my walls, so this seems like a suitable solution. However, I'm currently limited to placing only one window on each wall. What method should I use to overcome this limitation ?
@Greenman4890
@Greenman4890 Год назад
very cool effect
@lucienbrandt111
@lucienbrandt111 7 месяцев назад
Soooooo cool..man I've been trying to do this forever
@doubybear6018
@doubybear6018 7 месяцев назад
Good idea. But the visual effect is not so exact. Is there any way to achieve an exact one.
@azagalplay5249
@azagalplay5249 2 месяца назад
How do you make it so the cutout shape is exactly around the dissolver's edges ?
@ollybalboa848
@ollybalboa848 11 месяцев назад
Thanks for the good tutorial. Is there a way to do it with a SplineMesh?
@PavelLevin-zl8yd
@PavelLevin-zl8yd 2 дня назад
Great video, thank you very much! I am trying now to animate the position of the blueprint but the cube component can't be exposed to cinematic. May be you now how to fix this issue? Thanks in advance
@RancorousGames
@RancorousGames 4 месяца назад
If you like me have trouble getting an actual glow, go into the color options for emissive and change the V value to something high like 500 Also if you have an issue with the capsule disappearing after adding rotation, try restarting editor generally I had several steps that didn't initially work and I had to retrace steps, recompile things, move them etc but eventually got it to work Another trick i realized was that if you set the box data bounds to -100 in each direction then material previews will not have oppacity so previews in editor work properly
@AbhishekSaxena-pj7xf
@AbhishekSaxena-pj7xf 9 месяцев назад
is there a way to cap the masked area?
@erikvarga4367
@erikvarga4367 3 дня назад
For whom the cutout around the masking mesh doesn't happen: (I am in UE 5.4) In the Material after the ParameterCollection node you need to put a ComponentMask and tick RGB
@user-gw6eu5ry4n
@user-gw6eu5ry4n 2 месяца назад
Hello, how can I put multiple actors like this on a house to cut?
@pickphilips8271
@pickphilips8271 7 месяцев назад
Would this guide work in ue4?
@TunedFM
@TunedFM 6 месяцев назад
When I turn off “Affect distance field lighting” of the cube it doesn’t change anything
@Dafnstory
@Dafnstory 10 месяцев назад
I can get the material working, but not the intersecting bp box.
@DavidAllenFarrell
@DavidAllenFarrell Месяц назад
Thank you so much for this video. Is there a way to make the mask the exact size and shape of the meshes we bring in (ex: the cone, the box, the sphere, etc). With a box, for example, the edges are all curved. And so, my mask isn't creating a perfect "cut-out". Any ideas?
@UnrealCG
@UnrealCG Месяц назад
Try changing the edge hardness
@dongli8148
@dongli8148 3 месяца назад
Hello, I learned a lot from watching your tutorial, but I want to know, when I cut the model, only the displacement will be effective, scaling did not work, I watched your video many times, but did not find the problem, maybe you know the problem Thank you
@UnrealCG
@UnrealCG Год назад
Hey, So if you are having issues with this when playing, Connect everything from the construction script to begin play or an event that works during run time. Also if you are having issues with the mesh close to the box dissolving the mesh. You can set the edge fall of to 1. If the edge fall of is bigger value. Then the area of the box will be larger than what is shown. Since the values kind of blur together. Download the project files and help support the channel thanks. Link: www.patreon.com/posts/mesh-dissolve-79848177
@Peleias
@Peleias Год назад
Never see a tutorial talking in use in runtime, for example, in the sequencer. Could you make a tutorial about it?
@boediparker8364
@boediparker8364 Год назад
@@Peleias If you want to run the construction script in the sequencer you can enable it in the blueprint class settings; 'Run Construction Script In Sequencer' is an option under blueprint options.
@bluewavesoverfuji
@bluewavesoverfuji 11 месяцев назад
@@boediparker8364 I wish it was that simple! Somehow there is more involved than this.. I watched on video where they add the BP_actor and the material to the level BP. I wonder is that needed?
@markguilard
@markguilard 9 месяцев назад
sorry but it doesn't work in play mode why?? i tried to copy everything in run mode but nothing, the object don't be cutted in play. please help me
@shady0808
@shady0808 7 месяцев назад
Got the same issue!@@markguilard
@JasonKingMonkey
@JasonKingMonkey 12 дней назад
Can't get this to work. Followed the steps but it never dissolves the pill at that first step
@ADK___
@ADK___ Месяц назад
Hey! I bought this and how do I select and Object that should be dissolved? Like the house in the beginning? Putting the M_BoxMask_D and the other ones onto an objects removed all the colors and simply makes it black or gray
@UnrealCG
@UnrealCG Месяц назад
So if you have a house, I assume. You have a parent material and bunch of instance that you have different parameters and texture with. So in this case you add the dissolve effect to the parent and all the instance will automatically have the dissolve effect applied. If you have separate material for each slot and not instance, This not a very optimal way to have material inside unreal engine. Since that will add a lot of draw calls. And if you have much of very different material. Then you will have to add the dissolve nodes to all of them. But I suggest you create all the material for a house from one parent and have child instance. Only place this won't work is for glass. So other than that all other material can be filled with one parent and it's instances. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qus9WjHX4_4.html
@ADK___
@ADK___ Месяц назад
@@UnrealCG I have many different master materials in this one. There is really no other way to do this? If not I'll make sure to use more material instances in the next project. Thank you very much !
@fran.fndz.techart
@fran.fndz.techart 8 месяцев назад
cool. sad that in my project the programmer turn of distance field for performance...have to stuck with primitive shapes
@jennymcelligott3835
@jennymcelligott3835 8 месяцев назад
So how do we render with this effect in sequencer? I can't get it to work.
@shermanwellons
@shermanwellons 3 месяца назад
I having the same issue, please share if you find an answer. Thanks.
@sayayuuki127
@sayayuuki127 Год назад
Nice work! I was wondering if you know how to make an ink art effect. I would love to see a tutorial on that!
@UnrealCG
@UnrealCG Год назад
I can try
@lucienbrandt111
@lucienbrandt111 7 месяцев назад
Can u do the dead island2/ deadspace version of this...wer they put a cube thing over the target and it peels away a layer if the "mesh"
@UnrealCG
@UnrealCG 7 месяцев назад
Do you have a video reference of that?
@MarcoCapelli74
@MarcoCapelli74 5 месяцев назад
Very informative. Thank you! But, do you have any idea why it doesn't work in play mode? In editor mode it works, i can "cut" the meshes without any problem. But when i hit play, the dissolver blueprint doesn't work. No "cuts" are visible.
@UnrealCG
@UnrealCG 5 месяцев назад
Connect the construction script nodes to event tick
@MarcoCapelli74
@MarcoCapelli74 5 месяцев назад
Thank you very much.
@bradf4303
@bradf4303 10 месяцев назад
Great video, really helpful. I'm trying to do this with a translucent material and can't copy over the material effects in the same way. Anyone know a fix for this?
@veithnurtsch1069
@veithnurtsch1069 8 месяцев назад
have you solved this?
@bradf4303
@bradf4303 8 месяцев назад
@@veithnurtsch1069 not really solved it. I just found another way of achieving the effect i wanted. I got the material to change colour and spawned a niagara there that made it look like a forcefield was being hit. Worked for what I needed.
@tayayoung6031
@tayayoung6031 6 месяцев назад
I downloaded your sample project. how do you use the dissolve effect but keep the material of my house object? In the project there is the dissolve material applied to the big cubes, but I need my own material applied, not the dissolve. Thank you
@UnrealCG
@UnrealCG 6 месяцев назад
Just copy paste the material node group called box dissolve and connect to opacity mask and emissive of your original material and also set copy the parameter values.
@tayayoung6031
@tayayoung6031 6 месяцев назад
thank you. I appreciate the help!@@UnrealCG
@rainbowcatcher
@rainbowcatcher Месяц назад
Thanks @UnrealCG. Very nice. When I move the BP in the sequencer, the dissolve anim does not move. Would you have an idea how to make that? Sorry, I am really not expert in BP..... 😉
@UnrealCG
@UnrealCG Месяц назад
You need to activate the blueprint event for updating the location parameter using sequencer events
@rainbowcatcher
@rainbowcatcher Месяц назад
@@UnrealCG thanks a lot for your quick answer. However I don t know how to proceed.....if you could advise for a tuto on this......sorry for that. 🙏
@AshT8524
@AshT8524 4 месяца назад
when I add these nodes to a material, objects with that material loose the shadow and I cant select those mesh. why is that ? EDIT: found the issue, "Bounds" value was too high reduced it to 100, removed and re added the Box BP. everything works as it should now. 🎉
@nu-beings
@nu-beings Год назад
How can this be done for character animation in Sequencer (not a game)?
@UnrealCG
@UnrealCG Год назад
You need to update the node in construction script with an event that fires during the sequencer
@nu-beings
@nu-beings Год назад
@@UnrealCGThanks, does that allow me to apply it to multiple characters or is there another step for that?
@ToriPham
@ToriPham 7 месяцев назад
Hello UnrealCG Can we animation the dissolve mesh inside sequencer and make it work?
@shermanwellons
@shermanwellons 3 месяца назад
I have been researching this and yes, you can get this effect to work in the sequencer. I am now trying to figure out how to render it using path tracer.
@MsZet-yt2qg
@MsZet-yt2qg 2 месяца назад
@@shermanwellons CAN YOU PLEASE HELP ME DISASSEMBLY IN sequencer IT DOESN'T WORK, THAT IS, THE OBJECT REMAINS THE SAME I WILL BE VERY GRATEFUL
@ToriPham
@ToriPham Месяц назад
@@shermanwellons Can you show me how to do it?
@shady0808
@shady0808 7 месяцев назад
Hi, thanks for a great tutorial, but when I play or simulate this effect doesn't happen in real time? Any ideas what's going wrong?
@arzigogolato82
@arzigogolato82 6 месяцев назад
i ave the same problem!
@UnrealCG
@UnrealCG 6 месяцев назад
Hi, copy the stuff from construction script to event Graph and connect to an event that fires during game play, fast and easy way to test is to connect those nodes to the event tick
@shady0808
@shady0808 6 месяцев назад
@@UnrealCG I already tried this and it doesn't seem to want to work
6 месяцев назад
If you copy/paste all the nodes from the construction script of BP_Box and place them in the event graph with an event tick at the beginning, it will work in real-time. (worked for me) 😊
@Crovea
@Crovea 4 месяца назад
(duplicated since my other account doesnt seem to show) If you like me have trouble getting an actual glow, go into the color options for emissive and change the V value to something high like 500 Also if you have an issue with the capsule disappearing after adding rotation, try restarting editor generally I had several steps that didn't initially work and I had to retrace steps, recompile things, move them etc but eventually got it to work
@ThanhNguyen-cf5cc
@ThanhNguyen-cf5cc Год назад
Nice tutorial. How can I create multiple boxes to apply the dissolve effect? When I add two or more boxes, the dissolve effect only works on one box
@xavierpistoresi3737
@xavierpistoresi3737 11 месяцев назад
Same question in case you have found a solution ^^
@UnrealCG
@UnrealCG 11 месяцев назад
Hi. For this you need to have multiple box mask in the material and combine them together, for the DF version if you extend box mask bigger and add more mesh into it then that might work, but this will also make the material react with other meshes in the world.
@ThanhNguyen-cf5cc
@ThanhNguyen-cf5cc 11 месяцев назад
​@@UnrealCG Thank you, I make multiple box masks and they work well, but my project needs 30 more boxes. It will take a lot of time to create nodes in the material. Do you have a solution?
@UnrealCG
@UnrealCG 11 месяцев назад
Simple way is to use Many cube mesh and use the DF dissolve but with large box mask and make sure nothing with DF is near your mesh except the cubes. Since your might a unique cases and not like a game, this should be possible
@ThanhNguyen-cf5cc
@ThanhNguyen-cf5cc 11 месяцев назад
​@@UnrealCG I have tried using many cubes with DF dissolve in sequence, but when I render the video, the animation is laggy and the dissolve is slow. Do you have a solution for that?
@shermanwellons
@shermanwellons 3 месяца назад
Great tutorial, thanks for creating this video. Has anyone tried to render this effect out using the Sequencer? If so, how did you get this effect to show up in the Movie Render Queue?
@UnrealCG
@UnrealCG 3 месяца назад
Read the pinned comment
@shermanwellons
@shermanwellons 3 месяца назад
awesome, putting the nodes from the construction script into the event graph in BP_BOX_YT and then using an event tick to fire the Set Vector Parameter Values works. I am glad a few others asked the same question. :) Thank you for responding........@CG​
@patrickabroad
@patrickabroad Месяц назад
@@shermanwellons Thank you!! I had the BP's setting their vector parameter values on begin play but that wasn't working. Even putting in a short delay didn't work. For some reason, the event needs to be called from within the Sequencer to get it to work. I'd be curious to know why that is, if anyone knows?
@charlietulip
@charlietulip Год назад
excellent video, I want to transfer this to a sequence of images but for some strange reason when I animate the box nothing happens
@UnrealCG
@UnrealCG Год назад
That's because the blueprint is not updating, the construction script only works in editor. If you want it to work in sequencer you need to update the parameter collections using an event
@charlietulip
@charlietulip Год назад
@@UnrealCG Do you have a tutorial that explains that part? Or how could I ask for your help with examples? greetings
@UnrealCG
@UnrealCG Год назад
@@charlietulip I had an unlisted tutorial for it, But can't find it anymore. Try this, not for this particle effect. But might give you some ideas. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-wbXaQIiMFD0.html
@VoltGraphics
@VoltGraphics Год назад
Hi, this seems fantastic. I'm trying this tomorrow for my project. Would this effect work in a sequencer and show up in render?
@UnrealCG
@UnrealCG Год назад
This will work, but you need to make sure that the blueprint part updates when using the sequencer
@FreeD00M
@FreeD00M 6 месяцев назад
It would be amazing if it updated the collision mesh, so you coulkd walk rhough the hole you creaated.
@a.baciste1733
@a.baciste1733 6 месяцев назад
You probably can achieve this by deactivating the appropriate collision response of the character that needs to walk through this when he is inside the given volume?
@GMTechArt
@GMTechArt Год назад
Missing shadows from masked materials when using DistanceToNearestSurface
@UnrealCG
@UnrealCG Год назад
I did have shadows went I tested, maybe I am missing something
@ashleyhutchison3491
@ashleyhutchison3491 4 месяца назад
How come I can only have one of these BP per scene? When I add another, the first one disappears.
@UnrealCG
@UnrealCG 4 месяца назад
Because it's using material collection parameter, so they are like a global variable and when you add another one it over write the last one
@ashleyhutchison3491
@ashleyhutchison3491 4 месяца назад
@@UnrealCG I got the static mesh one working now so I can have multiple within the box. Thank you so much for the tutorial! I'm playing around to get thicker flames around the edges
@christiany3698
@christiany3698 Год назад
does it work on ue4 ?
@UnrealCG
@UnrealCG Год назад
If you enable distance field, it should work
@christiany3698
@christiany3698 Год назад
@@UnrealCG thank you
@ChrisCDXX
@ChrisCDXX Месяц назад
Just did this in UE4 and works fine.
Далее
10 Unreal Engine 5 PLUGINS I can't live without!
9:37
Просмотров 442 тыс.
Unreal Niagara: Next-Gen Disintegration VFX
59:21
Просмотров 22 тыс.
🍟Best French Fries Homemade #cooking #shorts
00:42
Portal System in Unreal Engine 5 Tutorial
18:43
Просмотров 10 тыс.
Learning Unreal 5 in One Year (Progression + Lessons)
26:02
Unreal Engine 5.4 Motion Matching in 13 Minutes | 2024
13:41
The Blender to Unreal Engine Workflow
8:07
Просмотров 552 тыс.
20 Unreal Engine Tips You NEED to know | UE5
8:38
Просмотров 16 тыс.
🍟Best French Fries Homemade #cooking #shorts
00:42