Announcement

Collapse
No announcement yet.

C++ beginner with some high lvl experience.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    C++ beginner with some high lvl experience.

    Hello everyone,
    I'm pretty good with Javascript and NodeJS. I'm a hobby web-developer and would like to learn C++.
    Do you guys have some tutorials for me? I mean I don't need to watch "How to create variables" etc.

    Something like "Create a player from scratch" and the other thing would be, should I spawn, etc all my players using C++ or should I do it just with drag and drop?
    Is there a rule that I should follow, I imagine that Math is done faster in native C++ compared to Blueprints
    Is a C++ character faster than a BP character?

    #2
    It is nice that you are interested in Engine C++ programming (we are dying breed ). A good way is to learn by example written from scratch and one is https://github.com/ravimohan1991/MAI just that. The (long term) idea is to generate the project into a library but the aim is to discover inner working of Engine by brute force and public discussions.

    I'd recommend making a project with baby goals ultimately culminating into well directed scheme. I have been doing it with previous versions of the engine and now, for me, it's time for latest version!
    https://ravimohan.net/
    https://github.com/ravimohan1991

    Comment


      #3
      Originally posted by The-Cowboy View Post
      It is nice that you are interested in Engine C++ programming (we are dying breed ).
      No just no, where do you get the idea that C++ programmers are a dying breed?

      Originally posted by DamianToczek View Post
      Is there a rule that I should follow, I imagine that Math is done faster in native C++ compared to Blueprints
      Is a C++ character faster than a BP character?
      Unless your charachter will be extremly complex or requires something that blueprints cant do there isnt really much reason to go for c++
      Dont spend time trying to optimize something that dont even exist yet try creating a prototype of your charachter instead.

      But if you still want to learn using C++ in ue4 there are hours of tutorials on youtube just make sure you understand atleast the basics of C++ before diving in.

      Comment


        #4
        Originally posted by The-Cowboy View Post
        It is nice that you are interested in Engine C++ programming (we are dying breed ).
        I also would not call C++ programmers a dying breed as long as it is in the top 5 in almost any type of survey only beaten by Java and Python. If you believe that flow-graph (Blueprint) is taking over don't forget that behind the scenes Blueprints are C++ not the other way around. If you exposed everything C++ can do to Blueprint it would be a complete mess and the point of it would be lost.
        Whenever you make something "easier" you can't avoid making it less efficient as the compiler has to make a best guess of your intention. C++ isn't going anywhere.

        Learn Blueprint to get you started, then Learn C++, then Learn UE4 C++ by going through the documentation. It is a bit sparse with proper C++ tutorials for UE4 so most of the time you will have to dive into existing code consisting of old and new styles. You get a long way with the documentation though.

        Comment


          #5
          Originally posted by Lambdarevolution View Post
          No just no, where do you get the idea that C++ programmers are a dying breed?
          Just a hunch! Based on the information pelted on the forums, for instance https://forums.unrealengine.com/deve...23#post1638123
          https://ravimohan.net/
          https://github.com/ravimohan1991

          Comment


            #6
            Documentation is rarely great for any piece of software so you just got to make do with what you have. No offense to those that make everything in Blueprint but they tend to need more help than programmers since they may come from a non-programmer background which is probably why nearly every tutorial is focused on them.

            The key skill for programmers is that they know how to solve problems with or without documentation and tutorials. Like I said though it would be nice with more learning material for C++ as it can be a daunting task to learn some of the intricate systems in the engine that are very useful to know about.

            Comment


              #7
              Google/youtube ue4 c++ tutorial. Plenty to get you going. Just make sure its within 1-2 years of age as the engibe changes quickly.

              Generally you create players/objects in c++ and then drag/drop thrm into the world. Spawning through c++ isnt needed unless you actually want something to spawn in game at a specific time.

              Comment


                #8
                > dying breed

                i'm not dying! i'm just getting started! :-D

                Comment


                  #9
                  My recommendation is to separate the task into two pieces:

                  1) Learn C++
                  2) Learn UE4 C++

                  My rationale for this advice is that much of the C++ you will see in the engine will be interacting with existing infrastructure that you did not create (it is in the engine). In my experience, to interact effectively with the engine, you make use of some pretty (to a novice C++ developer) arcane syntax for complex class hierarchies, namespace references, pointers and references, templates and overrides, iterators etc.

                  To learn to use UE4 C++, in addition to the foregoing you will learn to work with the unique features of the engine ( Gameplay framework, all of the details in the API, the reflection system, UE4-specific types etc.)

                  I found it much easier to first learn the basics of C++ to the point that I could recognize the syntax (which isn't that complex if you have some programming experience). That made it much easier to learn the unique features of UE4.

                  The C++ part I learned by purchasing and reading Bjarne Stroustrup's "The C++ Programming Language, 4th Edition" By the time I finished Part 1 and 2 of the book, there was very little of the UE4 C++ syntax I couldn't readily interpret - and most importantly, separate what was "C++" vs what was "UE4".

                  Just one person's opinion....

                  Comment

                  Working...
                  X