Learnopungl notes - II. Lighting: "color", "basic lighting" and "material"
2, Lighting: color, base lighting, and material
2.1 color
Colors that can be digitized are composed of three components: red, green and blue, which are usually abbreviated as RGB. Just use these three values to combine any color. For example, to obtain a coral color, we can define such a color vector: glm::vec3 coral(1.0f, 0.5f, 0.31f);
We ...
Posted by efron on Sun, 27 Feb 2022 08:27:31 +0100
UE4 generated.h file generation process simulation
In order to explore the reflection mechanism of UE4, let's start with simplicity and manually simulate generated H generation process to see what UHT has done.
Take a very simple class as the analysis object
UCLASS(meta=(IsBlueprintBase = "false"))
class RPGGAME_API ARpgPlayer : public ARpgGameCharacter
{
public:
GENERATED_BODY()
public:
...
Posted by n8w on Fri, 25 Feb 2022 17:52:59 +0100
Unity Quaternion commonly used API parsing and rotation interpolation animation
1, Quaternion common API s
Quaternion.FromToRotation(Vector3 fromDirection, Vector3 toDirection)
Official analysis: creates a rotation which revolutions from fromdirection to todirection Create a rotation from the form direction to the target direction Imagine a scenario like this. Let's use quaternion From torotation() API, what should I ...
Posted by jstinehelfer on Fri, 25 Feb 2022 09:42:39 +0100
UE4 set character movement and character Perspective
UE4 set character movement and character Perspective
In this section, we first explain the settings of UE4 character movement, and then explain the settings of UE4 character perspective.
UE4 set character movement
Open UE4 editor, click "Edit" and then click "project settings":
Select input:
Click the add key input ...
Posted by Tiger99 on Thu, 27 Jan 2022 05:18:53 +0100
The simplest UE 4 C + + tutorial - adding radial thrust to Actor [18]
The original tutorial is based on UE 4.18, I am based on UE 4.25]
Original English address
Following the previous tutorial, this tutorial is very interesting. We will simulate the explosion by adding radial thrust to all objects within the set range.
Create a new role named AddRadialForce. We don't need to do anything with the header file. T ...
Posted by angulion on Thu, 13 Jan 2022 22:51:21 +0100
UE4 Pak package hot update
pak file, also known as pak package, is a file format used by UE4 to update resources (including hot update). UE4 combines multiple files into one pak file and updates resources through pak files. pak files can not only load UE4 resource files, such as uasset, umap, etc., but also load non resource files, such as xml, json, txt, etc, In addi ...
Posted by scnjl on Sun, 02 Jan 2022 22:52:05 +0100
[UE4 C + +] realize character attack
Effect display
Using animated montage to realize character attack After pressing the left key, the character will attack: Random output attack animation.
Create animated Montage
Insert our animation into it: Right click and click the new montage section: Click Preview in the Sections section to divide it into multiple Sections: Pull ...
Posted by prueba123a on Thu, 30 Dec 2021 02:10:27 +0100
UE4 separation of game logic and rendering logic
A basic idea of the framework design of illusory engine is to separate game logic from rendering logic.
That is, there is a game world: the Actor contained in the scene (and its associated Actor component). At the same time, there is a rendered world, which contains the information needed to render the game world.
The rendered world is like a s ...
Posted by Randwulf on Sun, 26 Dec 2021 11:21:01 +0100
UE4 learning notes [3]Components and Collision / components and collision
Chinese official documents Official documents in English
Step 1: 1 Create and add ons
Unreal Engine 4 (UE4). It is recommended to read the programming quick start tutorial first. In this tutorial, it is assumed that you are familiar with creating projects, adding C + + code to them, and configuring input in the Unreal Editor. If you are not f ...
Posted by Gordonator on Tue, 14 Dec 2021 20:17:16 +0100
[embedded AI Development & Maxim issues] maxim78000 Evaluation Kit AI actual development BUG summary
Part I: [embedded AI Development & Maxim Part IV] maxim78000 Evaluation Kit AI actual combat development II Describes the use of Maxim78000 Evaluation Kit is the whole process of development and actual combat.
Based on the problems encountered in the development practice and the key and difficult points, thi ...
Posted by oliverj777 on Wed, 01 Dec 2021 21:56:35 +0100