Terrain generation in C++ for Beginners - Unreal Engine tutorial

  Рет қаралды 19,705

fettis GameDev

fettis GameDev

Күн бұрын

Пікірлер: 91
@fetiska
@fetiska 2 жыл бұрын
Next episode: kzbin.info/www/bejne/mJmyk6Rsa6aMa6c Please let me know was this video helpful for you and did you have any bugs or other problems?
@jakubhovorka8754
@jakubhovorka8754 2 жыл бұрын
Hi, I've run into a issue at 2:40, even after following the instructions visual studio kept complaining about not being able to open the #include file. To fix this I had to go to the projects folder and on the .uproject file click the option "Generate Visual Studio Files" and it worked. Thanks for the great video!
@fetiska
@fetiska 2 жыл бұрын
@@jakubhovorka8754 Thank you very much for sharing this problem and especially for telling the solution! Your comment will be very helpful for those who also have this problem
@PoliticalPluralist
@PoliticalPluralist Жыл бұрын
Protip for anyone with a potato for a PC, setup unreal to work with VSCode, a little bit of setup but running both Unreal and VS is not necessary, you can run something much lighter. Very snappy tutorial. Very helpful. Blueprints are super cool but you end up making a wordpress site stringing 47 plugins together to avoid writing some basic code. Glad I found someone doing c++.
@fetiska
@fetiska Жыл бұрын
thank you for the tip and for the feedback!
@fetiska
@fetiska 2 жыл бұрын
Everyone, I want to say sorry for not making publishing any videos for so long, but I haven't abandoned my channel, I have been working on a new video, but I didn't thought that it would take so much time. The new video will be in a week or so and it won't be connected with procedural generation tutorial, but a video after the following video will be a new part of the tutorial. Thank you all for almost 75 subscribers!
@austineldredge8003
@austineldredge8003 2 жыл бұрын
This is a really great tutorial and helped me understand the ProceduralMeshComponent way better, thankyou
@fetiska
@fetiska 2 жыл бұрын
No problem) Thank you for watching!
@stunthumb
@stunthumb Жыл бұрын
This series is so damn useful and clear - I wish other Unreal tutorials were as concise and not simply trying to sell a plugin. Thank you, this really helped me escape from using clunky blueprints to do this stuff. I'd say it even serves as a good introduction to starting a new C++ Unreal project, bravo!
@fetiska
@fetiska Жыл бұрын
I am really happy these videos are useful for you, thank you for your feedback!
@irtezamasud1079
@irtezamasud1079 2 жыл бұрын
dude. you are awesome. you made the very complex thing easy. didn't know unreal has specific special class for procedural mesh. coming from unity It seems very informative and flawless.
@fetiska
@fetiska 2 жыл бұрын
Thank you for your feedback! By the way it’s pretty uncommon to see someone who came from Unity
@anolegych
@anolegych Жыл бұрын
Amazing! Бат ёр рашн аццент выдает тебя с поторохами😊 И это здорово, так как твой английский я понимаю и без субтитров.
@fetiska
@fetiska Жыл бұрын
Sори, ай dонт андеrsтанд ю) Спасибо большое!
@anolegych
@anolegych Жыл бұрын
@@fetiska ин зис коурс оф видео ай фаунд олмост олл ай вонтед ту май проджект, рили. Вилл глад ту си нью видеос. Субскрайбд😆
@fetiska
@fetiska Жыл бұрын
@@anolegych глад ту хиар зис, сэнк ю!
@LeonardoSh16
@LeonardoSh16 2 жыл бұрын
Hey, your tutorials so cool. Would be nice to see more👍
@fetiska
@fetiska 2 жыл бұрын
Thank you! I am going to keep working on them
@lukeblackstone
@lukeblackstone 2 жыл бұрын
Hey just wanted to let you know that this tutorial is one of the best that I have watched on Procedural gerneration. I am currently in school for a gaming degree and this one video is better than the tutorial and lessons that the class has and is currently teaching. I have linked this video in my class discussion, so that hopfully you will get more views. Keep up the good work and thanks again for the great video!
@fetiska
@fetiska 2 жыл бұрын
I am really happy to hear, that my tutorial is helpful for you! Thank you very much for your feedback and for sharing this video, I will definitely keep working!
@BacheyGraphics
@BacheyGraphics 9 ай бұрын
Great tutorial, thanks!
@fetiska
@fetiska 9 ай бұрын
thank you for watching, glad you liked it!
@grigorigrigoryev8195
@grigorigrigoryev8195 2 жыл бұрын
hey mate, such a nice video! thx for this tutorial man)
@fetiska
@fetiska 2 жыл бұрын
Thank you for watching it!
@HPA97
@HPA97 8 ай бұрын
Thank you! Very helpful tutorial!
@fetiska
@fetiska 8 ай бұрын
glad it was useful for you, thank you for watching and providing feedback!
@pakoo7715
@pakoo7715 2 жыл бұрын
Hey! This is nice :) Much more better than me.
@fetiska
@fetiska 2 жыл бұрын
Thank you, but your videos are also great)
@lucascavallari8489
@lucascavallari8489 5 ай бұрын
Seems very nice! But do you also know how to make a quad tree? Because I believe it would be too heavy and cost performance for rendering all these vertices at once. Unreal landscape quad tree seems very interensting also
@fetiska
@fetiska 5 ай бұрын
I know that quad tree can help a lot to improve performance, but unfortunately i have no experience with it, sorry for that Some other things that can boost performance are LOD, hiding far chunks, multithreading Thank you for watching and for suggestion!
@rickfuzzy
@rickfuzzy Жыл бұрын
Awesome tutorial.
@fetiska
@fetiska Жыл бұрын
Thank you!
@GuillaumeEYNAUD
@GuillaumeEYNAUD 8 ай бұрын
Thank you! 👌
@fetiska
@fetiska 8 ай бұрын
thank you for watching!
@kapt0xa_by
@kapt0xa_by Жыл бұрын
i dont't know if it is comfortable for U, but u have 82% scale of text in visual studio. i was surprised, but its first time i choosed 1080p instead of 720p quality
@fetiska
@fetiska Жыл бұрын
sorry, for small scale, it's pretty convenient for me, but i will address that in future videos
@BlanchCat
@BlanchCat Жыл бұрын
Do you mind sharing if you use any extensions for syntax highlighting, etc in your Visual Studio editor?
@fetiska
@fetiska Жыл бұрын
I am just using a regular Visual Studio 2022, without any extensions. I set it up using the guide below. There is an extension for VS called Visual Assist which, as far as I know, make VS work faster with Unreal Engine, but it's paid and has only free 30 days trial docs.unrealengine.com/5.1/en-US/setting-up-visual-studio-development-environment-for-cplusplus-projects-in-unreal-engine/
@doctorblaze8754
@doctorblaze8754 2 жыл бұрын
The funniest starts when it goes to LODs XD
@fetiska
@fetiska 2 жыл бұрын
Actually, as far as I know, Procedural Mesh Component doesn't support LODs and it is one of it's disadvantages
@doctorblaze8754
@doctorblaze8754 2 жыл бұрын
@@fetiska maybe it's possible by decreasing mesh resolution depending on distance. But I do something like you and the hardest part is foliage
@fetiska
@fetiska 2 жыл бұрын
@@doctorblaze8754 as I understand it, you want to spawn some mesh on your landscape procedurally, right? If so, you need to take point with random X and Y coordinates in the area you want the mesh to be spawned, but for Z coordinate, you should set very high value (something like 999999999). Then you should make ray cast from your point to your terrain using LineTraceForObjects method (for end X and Y coordinates set your point X and Y coordinates, but for Z set 0). This method returns hit result and in hit result there is an output called impact point. You just need to take impact point location and set it for your mesh and then repeat all of that depending on how much mesh you want to spawn
@doctorblaze8754
@doctorblaze8754 2 жыл бұрын
@@fetiska or, instead of "high" ray cast, I can use linear interpolation and landscape heightmap.
@fetiska
@fetiska 2 жыл бұрын
@@doctorblaze8754 yeah, it seems your approach also should work)
@xyr0sTv
@xyr0sTv Жыл бұрын
hey, I can't find the lighting settings to copy in the default levels, I tried using the "Basic" and "Open World" lighting configurations but they look different.I also went into the Starter content Minimal_default level but most of the settings are missing since I'm using UE 5.2.1. What lighting settings can I use?
@fetiska
@fetiska Жыл бұрын
Actually I used lightning from Minimal_default. What settings are missing? It shouldn’t look very different even if you are using ue 5.2.1
@xyr0sTv
@xyr0sTv Жыл бұрын
@@fetiska I'm not sure if any of these changed name, but this is what you have and what I have. In your version you have: - *-Light Source-* - *-SkyLight-* - SphereReflectionCapture10 - Atmospheric Fog - BP_Sky_Sphere - *-GlobalPostProcessVolume-* - SphereReflectionCapture In UE 5.2.1 I have: - ExponentialHeightFog - *-Light Source-* - *-PostProcessVolume-* - SkyAtmosphere - *-SkyLight-* - SM_SkySphere - VolumetricCloud
@fetiska
@fetiska Жыл бұрын
@azoicxx you are right, some elements are pretty much the same, just with different name: PostProcessVolume = GlobalPostProcessVolume SM_Sky_Sphere = BP_Sky_Sphere I think I just didn’t copy everything from default scene, so you can use them and everything should be fine. Also you can play around with the parameters if you don’t like how it looks. Keep in mind that lighting has no effect on terrain generation
@xyr0sTv
@xyr0sTv Жыл бұрын
@@fetiska Thanks!
@fetiska
@fetiska Жыл бұрын
@@xyr0sTv no problem
@moonshot3159
@moonshot3159 Жыл бұрын
bro what if I wanted to use your technique to make an infinite voxel terrain? How would you do it in general concepts? I'm following a tutorial by Penny de Byl to make minecraft clone but it's in unity. Tell me if my guess is correct. -Triangle into cubes into chunks -Cull the invisible faces -Use noise for the terrain
@fetiska
@fetiska Жыл бұрын
yes, seems you are right
@User-cn2qj
@User-cn2qj Жыл бұрын
can you do an tutorial when colapsing with a Trigger, new terain spawns?
@fetiska
@fetiska Жыл бұрын
It should be pretty simple: you need to use OnOverlapBegin() in your trigger actor. Inside this function call SpawnActor() and pass your terrain class as the first argument
@User-cn2qj
@User-cn2qj Жыл бұрын
@@fetiska woudn't the new spawned terain spawn inside the already spawned terain?
@fetiska
@fetiska Жыл бұрын
@@User-cn2qj you can specify any location you want inside SpawnActor() function
@domenicobezuidenhout1587
@domenicobezuidenhout1587 Жыл бұрын
At 2:14 what is the symbol after uproceduralmeshcomponent? Awesome vid!
@fetiska
@fetiska Жыл бұрын
This symbol «*». Thank you!
@ryanroy1852
@ryanroy1852 2 жыл бұрын
plz Defiantly make the next episode
@fetiska
@fetiska 2 жыл бұрын
Thank you for waiting a new part! I am gonna make a new part of C++ procedural generation tutorial after making the next part of blueprints tutorial. You are talking about C++ tutorial, right?
@ryanroy1852
@ryanroy1852 2 жыл бұрын
@@fetiska Yes
@fetiska
@fetiska 2 жыл бұрын
@@ryanroy1852 Ok, I will do my best to make a new episode as fast as possible)
@fetiska
@fetiska 2 жыл бұрын
@@ryanroy1852 new episode is available)
@domenicobezuidenhout1587
@domenicobezuidenhout1587 Жыл бұрын
For some reason I cannot get rid of the cannot open source file "ProceduralMeshComponent.h" error
@fetiska
@fetiska Жыл бұрын
Try generating Visual Studio project files and please let me know if it resolves the issues
@stunthumb
@stunthumb Жыл бұрын
I had a similar issue, then tried adding that to the public dependancy part of the build.cs file instead and it worked... I added it to the end of this line: PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay", "EnhancedInput", "ProceduralMeshComponent" });
@fetiska
@fetiska Жыл бұрын
@@stunthumb thanks for sharing the solution!
@deadlyremix4115
@deadlyremix4115 Жыл бұрын
@@stunthumb same problem but doesn't work for me
@stunthumb
@stunthumb Жыл бұрын
@@deadlyremix4115 Not sure... this is exactly what I have: PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay", "EnhancedInput", "ProceduralMeshComponent" }); Worth a quick double-check... not sure what else would cause that, I'm a noob unfortunately.
@burgi6236
@burgi6236 11 ай бұрын
you look so young. how did you learn all this? 200 IQ? :P
@fetiska
@fetiska 11 ай бұрын
thank you! it's not as hard as you think actually, all is just practice
@jackovi489
@jackovi489 Жыл бұрын
В комманду хочешь?
@fetiska
@fetiska Жыл бұрын
В какую?
@alcinoos4013
@alcinoos4013 2 жыл бұрын
thank u, need a next episode on blueprint please
@fetiska
@fetiska 2 жыл бұрын
Thank you for watching my videos) I will definitely make the next part of Blueprints Procedural Generation tutorial!
@kapt0xa_by
@kapt0xa_by Жыл бұрын
the sound 'th' isnt z, it is something between 't' and 'f' or 'd' and 'f' try to pronounce 't' continously
@fetiska
@fetiska Жыл бұрын
know that, but i'm not get used. Trying to improve my pronunciation. Thank you for watching and for useful comment
Landscape generation #2 - terrain | Unreal Engine
5:59
fettis GameDev
Рет қаралды 24 М.
Dear Unity Devs C++ is NOT that Hard
8:33
The Game Dev Cave
Рет қаралды 39 М.
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 132 МЛН
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
Terrain3D - The New Terrain Engine for Godot
10:43
Gamefromscratch
Рет қаралды 137 М.
Infinite world generation in Unreal Engine
14:35
fettis GameDev
Рет қаралды 21 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,6 МЛН
10 Unreal Engine 5 PLUGINS I can't live without!
9:37
Cinecom.net
Рет қаралды 590 М.
Landscape generation #2 - terrain | Unreal Engine C++
5:08
fettis GameDev
Рет қаралды 11 М.
How to Create a HUGE Procedural Planet in Unreal Engine 5
9:55
Gorka Games
Рет қаралды 48 М.
«Осень». Самая большая загадка Windows XP
14:36
Девять десятых
Рет қаралды 1,3 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 132 МЛН