Тёмный

Unreal 4 Power-line spline system V2 (tutorial) 

Ira - game
Подписаться 1,2 тыс.
Просмотров 11 тыс.
50% 1

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

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 97   
@berca76
@berca76 Год назад
I just found this tutorial and it is absolutely brilliant! Thanks a lot!
@ira-game7154
@ira-game7154 Год назад
You are welcome!
@Elnaz_Heydari_22
@Elnaz_Heydari_22 5 месяцев назад
Really helpful … thanks a bunch
@barathankarthikeyan7624
@barathankarthikeyan7624 2 года назад
it doesn't work for me the cables still got attached to the ground and not to the power poles please help
@MrMaccap007
@MrMaccap007 4 года назад
worked perfectly just not sure how i would add a material or change the colour of the cable
@SovngardeStudio
@SovngardeStudio Месяц назад
Is this compatible with 5.4? Or have I been cursed been at it for 5 hours and dont seem like I can get the wire component to spawn
@shakaama
@shakaama 4 года назад
Excellent video and instructional tutorial. Thank you for this.
@sub_tropic
@sub_tropic 2 года назад
When you loop over the number of spline points to start adding power pole meshes (~17:20), you need to subtract one, otherwise you will add 2 power poles on the last spline point.
@miloszgierczak4806
@miloszgierczak4806 2 года назад
Whoa! Thanks for this exelent tip! I had this problem with cables on the last pole, your sugestion solved this!
@bleemss
@bleemss Год назад
My wires don't have slack unless I hit play. They used to adjust without hitting play. What might have happened?
@ira-game7154
@ira-game7154 Год назад
Hmm, that's a good question. I'm currently using the same setup in 5.1.1 with no issues. Have yo modified anything?
@BaseRealityVR
@BaseRealityVR 4 года назад
Thanks for this, your delivery and clear explanations are perfect, But Im having an issue where My cables are still pointing to the Actor Origin like @32:36 . But its not letting me add the elements under the Cable info struct Editor. I click but nothing is happening Not sure why :( But its letting me add elements to the override settings above? . Im confused
@ira-game7154
@ira-game7154 4 года назад
Are you sure you are referencing the next socket? If you follow the tutorial exactly it will work :)
@BaseRealityVR
@BaseRealityVR 4 года назад
@@ira-game7154 I belive so as I followed and re watched parts again and cant see when I did wrong/or missed. If I do what you do here. @30:45 Mine behaves exactly the same and they actually connect So I think the issue is after this
@BaseRealityVR
@BaseRealityVR 4 года назад
I decided to focus on the cable struct editor not letting me add elements So I recreated them and still couldn't add them, So I re-watched the beginning bit where you started to place them and I think I solved it. Turns out I must have been distracted at the time & put the cable info struct editor in place of the array of power line posts var which is connected to the clear node . So the cable struct editor was being cleared as soon as I clicked to add them making it look like it just wasn't letting me, Doh!
@BaseRealityVR
@BaseRealityVR 4 года назад
Everything is working as intended, I just have one issue where my Cable seems to have unlimited slack in the middle and just falls through the floor and keeps falling. The cables are all connected at each end correctly, and if it switch to the set end location from the add cable component node that work without any slack, I have gone over this looking for the issue and trying to solve it, Focusing mainly on the get vector length/cable length area But can figure out the issue :( Any ideas?
@BaseRealityVR
@BaseRealityVR 4 года назад
SOLVED :) I had my solver iterations set to ZERO on the cable struct editor elements in the details panel, setting them to 1 solved the issue. I will leave all these questions and solutions up to help others that also end up like me :) This is One of the most useful BPs I have now :) huge thanks again :)
@DasKantholz
@DasKantholz 3 месяца назад
thank you so much for sharing this!
@liupi2879
@liupi2879 2 года назад
Can this be applied to the wind system?
@miloszgierczak4806
@miloszgierczak4806 2 года назад
I did some simple improvements to the cables - for better performance - after "add cable component" node - add "set cast shadow" and disable the boolean "new cast shadow" - now your cables wont cast shadows which is super handy!
@stephanenadeau5060
@stephanenadeau5060 3 года назад
This thing is amazing, still works in 4.26 :) Thanks for the video!
@ira-game7154
@ira-game7154 3 года назад
Awesome, great to hear!
@DarthIckus
@DarthIckus Год назад
That was exactly what I was looking for! Thank you!
@ira-game7154
@ira-game7154 Год назад
No problem!
@3dModels4Sale
@3dModels4Sale 6 месяцев назад
Top stuff! Thank you!
@elfincredible9002
@elfincredible9002 2 года назад
Dope... Thanks a lot.
@aFinchy_
@aFinchy_ 3 года назад
Hi, Thanks for the help, I'm just wondering 2 things, 1) Setting the texture on the spline, rather than manually everytime 2) being able to select the mesh rather than it random select, so say point 1, 2, 4, 5 do mesh 1, and point 2 do mesh 2 for example. And maybe if there is a way to auto enter the cable values on the settings based on the socket when you create the spline in level
@Jansenan
@Jansenan 3 года назад
Hello Ira, A great tutorial, especially for a newbie like me. I have an issue with the cables. Between the pole 1 and pole 2 I can adjust the cables, via the override function, with it slightly drooping, but between the rest of the poles the cables are dead straight and cannot be adjusted. I have looked back at the tutorial several times, but do not see a solution. What am I doing wrong?
@hightechnician
@hightechnician 3 года назад
hey man, thanks for doing tutorials and sharing your skills with the community. Much appreciated!
@ira-game7154
@ira-game7154 3 года назад
Thank you. I Just hope this helps someone along their journey. :)
@hightechnician
@hightechnician 3 года назад
@@ira-game7154 it did man, I'm an environment artist and was always hesistant to dig deeper into tool creation and such. But I could expand this system by making it adhere to the landscape by doing linetraces at the point position and moving the spline points to that z position. I also added seed based randomization for the rotation of the points and slack. It's not much but it gave me a really good taste of what is possible and I enjoyed it very much! This gave me the confidence to actually start working with Houdini (might seem unrelated, but it's not so far off :D ). I started making a procedural house generator and so far it is as much fun as your tutorial and expanding it. Btw. I really enjoyed it. You have a great teaching style and I had to chuckle a few times
@ira-game7154
@ira-game7154 3 года назад
@@hightechnician This is the nicest thing anyone has said to me in weeks lol. Thank you. I'd love to you what you are working on. Feel free to drop by the Ira discord and share if you are into that sort of thing. :) discord.gg/hSqUD2k
@miloszgierczak4806
@miloszgierczak4806 2 года назад
How can I add a static mesh variable into cable overide struct to be able to replace meshes by hand in places where i want to do this instead making them 100% random?
@miloszgierczak4806
@miloszgierczak4806 2 года назад
thank you for your time while recording this video, very educational content
@ira-game7154
@ira-game7154 2 года назад
@@miloszgierczak4806 Off the top of my head you could add a static mesh actor variable to the struct and when a mesh is added to it, it creates a valid reference for a static mesh in the struct. Add some type of is valid check and use that ref on pole generation instead of a random one.
@miloszgierczak4806
@miloszgierczak4806 2 года назад
@@ira-game7154 Thanks! Today im also working on your system as a base for my poles, and i found an interesting bug while i added a cusotm material for my cables with wind. When you spawn a cables from pole to pole, your system spawns additional cables in each socket of the mesh in the last point of the spline which are not connected to anything. I think it has something to do with the loop? We didnt define where is the end of the spline in the Construct script? Can you think a bit on this problem? Im a 3d artist - but a BP beginner (total beginner :D) wish to become a technical artist one day! Regards, and thank you for your last reply!
@miloszgierczak4806
@miloszgierczak4806 2 года назад
​ @Ira - game huray! I found the solution for my last question, and @areito was right (in the comment section below)! You missed the subtract integer (-1) for the last spline point while defining the index, and your pole and cable renders twice on the end of the spline! You guys are great! Thank you, im learning a lot! :D
@AlexOnyshchenko
@AlexOnyshchenko Год назад
Thanks for the tutorial! It's actually excellent, keep it up!
@trunghoangnguyen660
@trunghoangnguyen660 2 года назад
thanks a lot
@omegablast2002
@omegablast2002 4 года назад
excellent, works awesome! i did however notice that we never actually use cable stiffness bool what was the intention for that bool?
@ira-game7154
@ira-game7154 4 года назад
Thank you! To answer your question enabling that bool will allow the cable to have a stiffness setting applied. If its not set on the cable, it will be floppyer and take longer to settle down when the game starts. There are plenty more settings that can be added to that function as well. Hope that helps!
@omegablast2002
@omegablast2002 4 года назад
@@ira-game7154 this was a major help for me, i was that poor guy putting down the poles and lives by hand lol... Thanks again!!!
@ira-game7154
@ira-game7154 4 года назад
@@omegablast2002 No problem. I too used to be that slub! But not anymore!
@OweidahAli
@OweidahAli 4 года назад
Thank you very much. can't we just use " Get Transform at Spline Point " node in 19:25 ?
@ira-game7154
@ira-game7154 4 года назад
You could! There are a number of ways it can be done. :)
@OweidahAli
@OweidahAli 4 года назад
​@@ira-game7154 Thank you for the quick respond. I was just wondering because I tried it and it worked but I though I could ask to see if there is a reason that you didn't use it. thank you again!
@ira-game7154
@ira-game7154 4 года назад
@@OweidahAli No problem!
@alans056
@alans056 3 года назад
Thanks a lot this is amazing! However is there a way to increase the subdivisions of the cables ? they look quite low poly
@ira-game7154
@ira-game7154 3 года назад
Hey there. Look for the cable variable "Num Segments" the number corresponds with the number of segments. Higher segments = a smoother cable. Give that a try.
@alans056
@alans056 3 года назад
@@ira-game7154 thanks! though I'm not sure when I should plug it in!
@gabrielwhite9656
@gabrielwhite9656 4 года назад
any more tips for debugging the issue where the cables all go to the origin? I have checked and double checked the cable socket names in all places, I went through the tutorial twice! It doesn't seem to be reading the values from the blueprint maybe. When I change the cable width in the blue print for example it doesn't do anything. I am going crazy! Any tips for debugging? It's hard to know where it's going wrong, since mostly when I try and watch a value it says variable out of scope but I think that might be normal. In addition do you have any thoughts as to how to convert the cables to something more raytrace friendly. As far as I can see raytracing doesnt work with cables so I get no shadows from them. For meshes along a spline I can merge them into an actor that raytracing can see, but not cables.
@ira-game7154
@ira-game7154 4 года назад
Well, I'm inclined to say that there is something you're overlooking from the tutorial. There's a small chance the struts are acting up and you have to save and restart the editor. That's Hapend to me in the past. As for ray tracing, my project doesn't use that so I'd have to dig into in order to see what's compatible and what's not. Sorry you are having troubles feel free to drop by the Ira discord and I'll give you a hand. discord.gg/hSqUD2k
@SaatvikDube
@SaatvikDube Год назад
Is it possible to convert the wires into a static mesh?
@ira-game7154
@ira-game7154 Год назад
Not using the cable actor component (I believe).
@SaatvikDube
@SaatvikDube Год назад
@@ira-game7154 I see, thank you
@berkosab
@berkosab 4 года назад
thank you very much. i have a problem where i cant find the energy production component in blueprint variable. its not showing in search?
@ira-game7154
@ira-game7154 4 года назад
Hi there. I'm not sure what you mean by energy production component. Can you give a little more detail?
@Buugane
@Buugane 2 года назад
At last, a blueprint tutorial that doesn't assume the users capabilities! Well paced and allowed me to follow. I am making a 2 mile tram track and you cannot believe how useful this is to me. I noticed someone asked about changing the colour of the cables and to be honest I didn't understand the reply. I thought about making colour a variable part of the cable info structure so it could be adjusted easily under the cable info structure editor and overrides but failed miserably in my attempt. Is this possible or am I jumping ahead of myself? Many thanks for a great piece of work anyway.
@ira-game7154
@ira-game7154 2 года назад
Hey, good to hear! The cable color is set via whatever material is on the cable. So, the simple solution is to set the material on the cable, and that material has a color that you picked.
@Buugane
@Buugane 2 года назад
@@ira-game7154 Thanks for the very prompt reply, much appreciated. Where I am being thick is that I expect to have a "cable" mesh which I can attach a material to but the lovely cables just appear as if by magic from your blueprint so no idea what to do with the material
@Buugane
@Buugane 2 года назад
@@ira-game7154 Got it thanks, having a senior moment
@tux_the_astronaut
@tux_the_astronaut 4 года назад
Can they be made destructible because I’m making a game with tornadoes that destroy the map
@ira-game7154
@ira-game7154 4 года назад
I don't see why not. It's a little complicated to explain via a reply message, but, it's doable. At a very high level you could simulate destruction on the poles with chaos, and you could add physical simulations to the cables. That being said you'd need to optimize things if you want a lot of them around.
@marcomuellertv
@marcomuellertv 4 года назад
How can I add a fix distance between the poles, so that they get aligned every 50 meters on the spline?
@ira-game7154
@ira-game7154 4 года назад
Well, there are a number of ways it could be done, and depending on your needs those paths might change. I would recommend checking the distance of the previous pole with the new one and then outputting the distance on a print string. That way you generally know the proper distance. I feel like this is something that just needs to look proper and not be exact.
@veronikadziubliuk381
@veronikadziubliuk381 3 года назад
The tutorial is amazing! however my blueprint can not find the end point, so all cables are stuck at the same position. I've watched this tutorial like 3 times. But probably gonna have to watch it once more)
@veronikadziubliuk381
@veronikadziubliuk381 3 года назад
Yes! 4th time helped haha. Just thought that "set end location" is not a necessary node.
@ira-game7154
@ira-game7154 3 года назад
@@veronikadziubliuk381 Hey there. I'm glad you figured it out!
@souhaibbenchaker4824
@souhaibbenchaker4824 2 года назад
Awesome video. -I just came in to let you know that epic Games are using your code in their automotive winter scene free asset, so great job. -also I just want to point out a mistake at the beginning where you use number of spline points as the last index in for loop, number of spline points don't start at 0. Let's say you have 3 spline points, so number of spline points would be 3, for loop will start from 0 to 3 so it'll run 4 times that means it'll spawn 4 meshes instead of 3, the 4th mesh will be overlapping the 3rd mesh so you won't be able to notice that if you're using the same mesh, this wouldn't cause much problems for now since you're recycling current index for another use but it may cause various problems in other scenarios. The way to fix it is instead of pluging get number of spline point directly into last index in for loop subtract one from get number of spline point and then plug it in last index in for loop.
@zacharydowner5883
@zacharydowner5883 2 года назад
Hey there! They are using my code? This is interesting I'm downloading it now to see what you mean :). Yeah, this tutorial is a few years old and I understand what you are saying. I'll do an update at some point!
@souhaibbenchaker4824
@souhaibbenchaker4824 2 года назад
@@zacharydowner5883 they copied it as is, even with the mistake I pointed out. They at least should've gave you some credit. Great job.
@zacharydowner5883
@zacharydowner5883 2 года назад
@@souhaibbenchaker4824 Haha, that's pretty funny. I'm actually releasing an advanced version of this system. I'll make a joke and tweet at them when it's ready. :)
@souhaibbenchaker4824
@souhaibbenchaker4824 2 года назад
@@zacharydowner5883 I actually made a much advanced version as well and built it up for ultimate freedom lol Can't wait to see what you release.
@mhart3D
@mhart3D 3 года назад
How can I change the color of the cables and add more slack?
@ira-game7154
@ira-game7154 3 года назад
Slack is around 48 minute mark. Color is set by the material on the cable. You can create a dynamic material instance and modify it at runtime to easily change the color.
@mhart3D
@mhart3D 3 года назад
@@ira-game7154 Thanks!
@mhart3D
@mhart3D 3 года назад
@@ira-game7154 Sorry, I'm still pretty new to blueprints. Whereabouts would I be setting the material for the cable?
@ira-game7154
@ira-game7154 3 года назад
@@mhart3D On the material component itself using the set material node.
@mhart3D
@mhart3D 3 года назад
@@ira-game7154 Ah I see. I didn't know I had to click on the create cable component node itself. Thanks!
@mexico4027
@mexico4027 4 года назад
Keep doing tutorials
@thcoolatos
@thcoolatos 4 года назад
Great tutorial thank you man, Congratz on the Mega grant and good luck with the launch!
@ira-game7154
@ira-game7154 4 года назад
Thank you! Hope you found the tutorial useful for your work.
@Igrom_Gamedev
@Igrom_Gamedev 4 года назад
Hi. I repeat as in the video, but all the cables are linked to the Central point in the center, where the zero point of the spline is located. Cables are not straightened (
@ira-game7154
@ira-game7154 4 года назад
Did you add the proper socket names into the struct?
@Igrom_Gamedev
@Igrom_Gamedev 4 года назад
@@ira-game7154 Thanks. checked and indeed, the names of the sockets were different. But the cables of the last post still go lie down on the ground ) Thank you very much for your help. The lesson is very interesting. Still would snapping mesh to the surface do and a steep bluprint tickles )
@Igrom_Gamedev
@Igrom_Gamedev 4 года назад
@@ira-game7154 I fixed the error, but still thank you very much ) I Sat down for the lesson late at night, because I made stupid mistakes ) If you have the opportunity to write down the lesson how to use this method to make procedural houses from blocks. And once again, a huge thank you!
@ira-game7154
@ira-game7154 4 года назад
@@Igrom_Gamedev No problem it happens to the best of us :). I hope you this helps you out!
@igorvagun1984
@igorvagun1984 4 года назад
How do I connect cables between to splines? Lets say I want make a connection to a house on the side
@ira-game7154
@ira-game7154 4 года назад
I would just use a normal cable actor and place it between them. :)
@igorvagun1984
@igorvagun1984 4 года назад
@@ira-game7154 simple but effective. Any idea on how to make the cables swaying in the wind? That would make it much more visually effective
@pawpotsRS
@pawpotsRS 3 года назад
can you add a mesh along those splines not on the per point and for example a plastic trash on those wires is that possible?
@ira-game7154
@ira-game7154 3 года назад
Hmm, I dont think you can do that, as you are not able to get a point along a cable.
@pawpotsRS
@pawpotsRS 3 года назад
@@ira-game7154 I see some bp spline that they can instantiate one object along the splines,
@ira-game7154
@ira-game7154 3 года назад
@@pawpotsRS Yeah, but how do you get the transform of where to place some trash?
@kamui6780
@kamui6780 4 года назад
Nice video, thanks for sharing
@ira-game7154
@ira-game7154 4 года назад
Hope you find it useful!
Далее
Why Solo Developers Should Use Unreal
9:51
Просмотров 386 тыс.
КАК БОМЖУ ЗАРАБОТАТЬ НА ТАЧКУ
1:36:32
This Will 10X Your Modeling Speed | Greyboxing
8:21
Просмотров 222 тыс.
Blueprint For Artists | Unreal Engine
30:49
Просмотров 55 тыс.
Tierlisting the BEST (and worst) GAME ENGINES
33:51
Просмотров 226 тыс.
Portal Card Tutorial (like in Ira and Abzu)
16:01
Просмотров 3,6 тыс.
Unreal 4 Retro Pixel Tutorial
8:20
Просмотров 72 тыс.
How To Make A Game Alone
8:11
Просмотров 1,1 млн