Live data from Hacker News

Ask HN: Why is visual programming so popular for game programming?

news.ycombinator.com

31–40 of 155 posts

Re: Ask HN: Why is visual programming so popular for game programming?

#32
post #13

Is it? You make a generalization giving just one example: Unreal Blueprints. As somebody not familiar with game programming but familiar with critical thiking I am unconvinced.

Unreal is one of the most popular engines out there, and they push blueprints extremely hard, to the point where it's actually somewhat difficult to search up c++ tutorials (and the documentation of UE4 isn't the best once you dig past the basics).

It is a generalization, but the example is one that some 30+% of games will use . And it's not the only engine with visual programming; even Unity aquired Bolt (a very popular unity plugin for visual scripting) and will likely market that more and more as it's integrated into its engine.

Re: Ask HN: Why is visual programming so popular for game programming?

#33

A counter question to programmers in other fields - do you visualise the structure of code in your head almost like a graph, or do you think in code blocks? I feel like more visual thinkers would naturally also be drawn to games. I’m a visual thinker myself, so I can’t imagine not thinking about code as a diagram. But it seems that from the way most tools are designed , this is not the majority view.

First you need to define what 'visualise' means, as an aphantasian programmer I can't visualise anything. What does thinking in code blocks mean? I can mentally hold stuff, but it's certainly not visual. Feynman[0] has a good video going through this.

[0]: https://www.youtube.com/watch?v=UMk963QdShA

Re: Ask HN: Why is visual programming so popular for game programming?

#34
post #13

Is it? You make a generalization giving just one example: Unreal Blueprints. As somebody not familiar with game programming but familiar with critical thiking I am unconvinced.

It is extremely popular. From Flowgraph in CryEngine to Godot's VisualScript. Even Unity bought the most popular visual scripting asset package, Bolt, and made it standard for all Unity plans.

You could also critically think your way to googling "game dev visual scripting" which would tell you much of the same information.

Re: Ask HN: Why is visual programming so popular for game programming?

#35
The simplest way I can put it is that visual programming in games lets non-programmers meaningfully contribute to code-adjacent and 'code' parts of game content, like pixel shaders or character AI or simple object behaviors. These parts are typically not so performance critical or complex that you need a programmer to do them by hand, and more importantly, if you empower the game designer or artist to fiddle with them directly, they can quickly iterate until they hit something that is nearly perfect. At that point if there's something wrong with it, you can hand it off to a programmer to fix.

I view it as equivalent to how Microsoft Excel empowers all sorts of non-programmers to solve problems via the use of formulas (and the occasional macro). As a tools programmer and producer I frequently discovered that some of our designers or writers had cobbled together their own solutions for difficult problems just using excel know-how. Excel teaches ordinary people that computers can do their bidding and visual programming for games does the same thing for game artists, writers, etc.

Re: Ask HN: Why is visual programming so popular for game programming?

#37
Ease of use.

It's just another tool in the toolbox. Epic has mentioned how a portion of Fortnite was built using Blueprints. It helped them to prototype features and get the game built quickly.

Think about how handy it is to have a diagram, picture, or plan before writing a single line of code. Epic takes sections made using Blueprints and rewrites them in C++ for better performance.

After using Blueprints for a bit I can see its merit and why it's useful.

Unfortunately, I can't find the source where Epic talked about this. I think it was a GDC talk but I could be wrong. :\

Re: Ask HN: Why is visual programming so popular for game programming?

#38

i hate visual programing if i am the customer. slow, crashes, buggy. the lower the code, the better tbe program, but obviously harder.

Not sure what any of those complaints have to do with visual programming. BPs are pretty fast, and efficient BPs will be faster than inefficient C++ for example. Crashes and bugs are hardly unique to visual programming either.
Post reply on HN