🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Latest C++ Activity
![LOD selection issue](https://uploads.gamedev.net/forums/monthly_2024_06/ec0c3b862e1c49e5b5f2d762441de279.image.webp)
This seems like the problem:
// Bound center in View space
glm::vec4 distanceFromCamera = modelViewMatrix * glm::vec4{bound.center, 1.0f};
float d = glm::length(distanceFromCamera);
You are including the W component of the distanceFromCamera vector in the length calcu…
@Aressera I have managed to link everything but I have one problem. If I started a project as a C++ project but it depends on some .c files, how do I add them to the project folder? I opened the folder on my desktop and dragged and dropped the .c files where my main.cpp is but in the xcode app, it …
Your function ‘set_union' is doing more than finding the union; it's populating both sets, a and b. This should be done before calling set_union, which would be in main.
Good.
You know hat's next: Make a function to visualize the rectangles 60 times per second using SDL / OpenGL, move one with the keyboard, test for all collisions, work on a game… \:D/
![Matali Physics 6.5 Supports](https://uploads.gamedev.net/news/monthly_2024_05/large.dddf6f0a07b64654a5e0c0429cd1555f.matali-physics-6-5-opt.png)
We are pleased to announce the release of Matali Physics 6.5, the next significant step on the way to the seventh major version of the environment. Matali Physics 6.5 introduces a number of improvements and fixes to Matali Physics Core, Matali Render, Matali Content, Matali Synth and Matali Games m…
SadMachine said:
Original ideas are not. That's why companies Reboot, Remaster and Remake so many products (movies and games alike).
They remaster their old stuff because it was successful, not because it was good ideas.
If the ideas are good, they make a new game with the same idea, but putting a ‘2’…
![My step by step guide:](https://uploads.gamedev.net/blogs/monthly_2024_04/large.0ff9b1bc0c294d3f9b113beb5690ebd1.distribute-a-link.png)
Please, test my guide and write if something is wrong: How to run SDL3 app on Web with WebAssembly on Windows
I'm developing a Hierarchical LOD Nanite-style system using meshoptimizer. I'm having troubles with how to create a local index buffer from a group of merged meshlets. Is there a correct way to create a local index buffer from a group of merged meshlets? Do you have any suggestions or advice on tha…
![Castor3D - 3D engine version 0.16.0 has been released.](https://uploads.gamedev.net/news/monthly_2024_04/large.6d2d66a3b65f49f780c3011adb8546e6.Banner-0.16.0.png)
- Implemented clustered rendering.
- Reworked light attenuation as a range.
- Implemented color grading.
- Implemented context blocks in the scene file parser.
- Removed deferred rendering.
- Reworked submesh components like pass components.
- Implemented Mikkelsen tangent space s…
![UPROPERTY basics in Unreal - How to write C++ variables for Unreal blueprint - Update 5](https://uploads.gamedev.net/profiles/monthly_2020_05/thumb.6d7e532f253847ae855ac8977ab67404.planet.png)
Update 5 How to write C++ variables for Unreal blueprint; UPROPERTY Basics
What's wrong with just putting EditAnywhere on everything? Here I explain the different mark up keywords for configuring UProperty variables for the editor.
The reason you don't want to use EditAnywhere on everything, …
Went ahead and put a tutorial on github with the code.
https://github.com/hayesgr/Dungeon_gen/tree/main
Rewaz said:
That's what I'm afrid of, maybe WoW does a Lerp, and don't care and since it's just lerping it's almost always in the same position as the server, prob with a check like I said before, that's my concern, that it become and issue later.
For any sufficiently complex system, the number of po…
congrats! keep going. + start by just detecting the edges of the screen instead of a full AABB.
It's probably appropriate to ask how much experience you have with databases. I.e. do you need help at the level of how to represent game data at all, or do you want to hear if anyone with relevant experience have some tips that could come in handy?
Why are you not using PostgreSQL?
I sometimes…
Hope it works.
Tutorial: https://github.com/Noah11012/sdl2-tutorial-code/tree/master/tutorial3_keyboard_movement
pbivens67 said:
Is the ampersand point to the address of the rect values(?)
Browse this google search: pointer vrs reference c++
Also, look at the first and second answers at this stackOverflow related question.
In here you'll find a visual comparison example and a second point of view when talking abo…
@Juliean Thank you this is useful. It has changed my way of thinking and approaching my engine.
Since it is certainly possible to animate a pawn walking around, you have a problem with some random mistake you made, not with insufficient knowledge of “implementing AI into UE C++ games”. This means that you need a debugging effort, not a learning effort.
As a debugging strategy, bisection should…
![SDL2 image](https://uploads.gamedev.net/forums/monthly_2024_03/e61fefc5ad654ccc985b1c96742d68bd.image.bmp)
good.
Also experiment with pass argument by pointer or reference.
In this particular case it could be as simple as//apply the image
SDL_Rect my_experimental_rect = SDL_Rect(100, 0, 0, 0); // todo: move me outside the main loop
SDL_BlitSurface(gHelloWorld, 0, gScreenSurface, &my_experimental_rect);
&…
A galaxy is a really large place.
I've tried these things. I tried 5 different methods of attacking the problem, 3 of them with regard to the ray generation section, 2 of them with regard to the light transport section. Perhaps I was missing something trivial. :(
Thanks again so much for your guidance!
![Journey to a full x64 (dis)assembler [Part 2]](https://uploads.gamedev.net/blogs/monthly_2024_03/c1731497925a4dda8a65734e93bcf2ef.image.png)
Welcome back ! Last week, I talked about the background of why I am creating a custom assembly-generator. This week, I'll go more into details about the framework I wrote, that allowed me both to disassemble as well as assemble code.
Getting started
Now previously, I mentioned how my own assembler wa…
![Forward path tracing, part 2 -- announcing results after months of tinkering LOL](https://uploads.gamedev.net/forums/monthly_2024_03/585dbd2eddc546bdbe9fafddd946eb23.image.png)
Yay, some progress : )
Using the commands, i was able to mount the additions disc in Garuda Linux for the first time. I can not update this OS, it says something about missing keys. Trying to install additions anyway, i see compiler errors, probably related to the new Zen Kernel. And i do not really…
![Reading ray tracing result to the CPU and back onto the GPU in order to do image denoising](https://uploads.gamedev.net/forums/monthly_2024_02/4a6029f90bb14e1bb3faf829a97597a3.denoised_noisy.png)
taby said:
Technically, subsurface scattering is not necessary for diffuse reflection. All you do is randomize the surface normal for diffuse reflection.
It's about scale. For diffuse reflection, we can assume the scattering radius is so small we can ignore it, while change in direction is large.
For …
![Matali Physics 6.4 Presents an Innovative, Physics-Based Approach to Wayfinding](https://uploads.gamedev.net/news/monthly_2023_12/large.1193a304158a45efb9f773926a7a3051.matali-physics-6-4-opt.png)
We are pleased to announce the release of Matali Physics 6.4, the significant step on the way to the seventh major version of the environment. Matali Physics 6.4 introduces a number of improvements and fixes to Matali Physics Core, Matali Render, Matali Content, Matali Sound and Matali Games module…
![OpenGL - Displacement Mapping with Tessellation shaders - demo 02](https://uploads.gamedev.net/blogs/monthly_2023_12/large.55cde7b57561471ab996d2bd4c1915c3.2023-11-28__displacement_mapping_2.jpg)
Additional experiments with displacement mapping using OpenGL tessellation shaders. Textures from: Textures.com
![OpenGL - Displacement Mapping with Tessellation shaders](https://uploads.gamedev.net/blogs/monthly_2023_12/large.1f4e9d4c44da4c25a7690fbfc03633a4.2023-11-27__displacement_mapping.jpg)
More experiments with terrain rendering, trying to add finer detail using a displacement map, applied over a procedurally generated terrain.
Textures from: Textures.com and FreePBR.com
![Moving halfways away from Unity with a custom engine](https://uploads.gamedev.net/blogs/monthly_2023_11/large.c717d9a660ae4c8ca2a4e337e37878e3.Thumbnail.png)
The past 2 months I've been working on moving away from Unity. Over the years I've made a lot of editor tools for use in Unity, and I found that Godot didn't really suit my project, so I decided to make a custom engine that has all the runtime features that I use in Unity, and to which I would expo…
![The Unreal UTYPE system - Required knowledge to use the Unreal flavor of C++](https://uploads.gamedev.net/blogs/monthly_2023_11/large.963b0c9155004040a652558c57df7265.thumbnail_utypes_crashcourse_3.jpg)
An introduction to the UTYPEs used in Unreal C++. UInterface, UEnum, UStruct, and UClass. I walk through writing each example and discuss some esoterics/nuances you should know.
0:00 Intro
0:15 USTRUCT
0:28 UClass Macros and UHT
0:45 UClass Features UPROPERTIES, UFUNCTIONs, and plain-old c++
1:18…
![Procedural terrain + adaptive exposure + BLOOM](https://uploads.gamedev.net/blogs/monthly_2023_11/large.232bf181f98b4c3a91e986004d037150.2021-12-20__improved_bloom_%2B_adaptive_exposure__walk.jpg)
Improved bloom + experiments with adaptive exposure.
Bloom is heavily inspired by the method described by Jorge Jimenez in his great slides here: http://www.iryoku.com/next-generation-post-processing-in-call-of-duty-advanced-warfare (starts from slide 144)
![A small walk inside my procedurally generated terrain](https://uploads.gamedev.net/blogs/monthly_2023_10/large.ca68bfe876824b8d9b05e78a7227b6d7.small_walk_GL.jpg)
A small walk inside my procedurally generated terrain. Rendered in OpenGL.
The terrain was created using multiple layers of perlin noise and applying hydraulic erosion on it.
Grass and flowers are rendered using billboards and instancing.
![Matali Physics 6.2 Presents Parametric Action Fields For Fully Dynamic And Destructible Scenes](https://uploads.gamedev.net/news/monthly_2023_07/large.8d62c39e22034935b8da5ced2528e203.matali-physics-6-2-opt.png)
We are pleased to announce the release of Matali Physics 6.2, the first step on the way to the seventh major version of the environment. The latest version brings changes necessary to implement effective navigation and wayfinding algorithms as well as complex AI behaviors, including group behaviors…
![How to translate between Blueprint and C++ (and vice versa) in Unreal Engine -- UE C++ Tutorial 3](https://uploads.gamedev.net/blogs/monthly_2023_07/large.1b37632773b04acba1c4399d07ae7c61.maxresdefault.jpg)
A conversion guide from Blueprint to C++ and vice versa. Most every BP feature demonstrated in C++ code instead.
I wanted to create a broad and comprehensive overview of using C++ and BP in the unreal engine. I'll explore these topics in much more depth in later videos.
But this video should be enoug…
![Orx - Portable Game Engine version 1.14 has been released](https://uploads.gamedev.net/news/monthly_2023_06/large.f2e70c8a83a549338705da05a396d340.Orx_logo_114.png)
The Orx community is pleased to announce the 1.14 release. This marks the 14th yearly major release since 1.0 in 2009.
There are quite a few changes in this release. Here are some highlights:
Bundle
, a new extension that can automatically discover and pack all your game resources, either inside…
![Your First Unreal C++ Class - UE C++ Tutorial 2](https://uploads.gamedev.net/blogs/monthly_2023_06/large.b5525afd3a7a4f5a84bf08fc51686f77.maxresdefault.webp)
How to make a new C++ actor and use it in blueprint!
Some Dos-and-Don'ts of creating Unreal C++ classes that can be used in the editor and blueprint.
Basic Unreal Header Tool Introduction and how to properly mark up your classes to be used with the Engine.
Unfortunately this video was recorded …
![UE C++ Tutorial 1 - My personal AAA set up for working with Unreal Engine C++](https://uploads.gamedev.net/blogs/monthly_2023_06/large.b5525afd3a7a4f5a84bf08fc51686f77.maxresdefault.webp)
How to set up some commonly used AAA tools for C++ programmers who make games in Unreal!
(Scroll down for video)
Once you get into the industry, you will find that there are some common work flows and tools used among AAA developers at various studios. I go over some of these tools and how to set the…
![Amateur Collision Detection that Works](https://uploads.gamedev.net/blogs/monthly_2023_06/large.3a6928e754db42efbea925357cec0231.cd.png)
As a hobbyist one is often faced with severe time constraints. There are day jobs to hold, groceries to shop, movies to watch, walks to take and friends to see. One way to overcome this issue is by using one of the known game engines like Unity, Unreal or Godot. But for me, the joy of game developm…
![Castor3D - 3D engine version 0.15.0 has been released.](https://uploads.gamedev.net/news/monthly_2023_05/large.6632b8bee9c24ff1a5e022005828f1db.70fd9bfbdfb1482e97255322c2f21289.Test-3518_ref.png)
- Fixed COM binding, and finished implementation of a basic C# viewer application.
- Implemented support for multiple lighting models in the same scene.
- Improved PCF shadows, sampling a Poisson disk.
- Castor3D now uses a reversed Z buffer.
- Drastically improved overlays preparation and rende…
![Zengine - A Java game engine in LWJGL using Assimp, IMGUI, and more.](https://uploads.gamedev.net//static/media/user/generic-user.png)
So a couple of months ago, my friend and I both wanted to work on some sort of programming project together. We both work in software engineering but come from different backgrounds, I studied a BSc in Games Programming and he studied a BSc in Computer Science. Our idea was that we wanted to essent…
![Abandoning Vulkan](https://uploads.gamedev.net/blogs/monthly_2023_04/large.93206a02bcd749eeac1bcdb327297703.abvulkan.png)
I am a professional programmer, but I do not develop games for a living. In the past, I have brought you the fine small3d game development library, open source titles like Gloom, Avoid the Bug and Frog Remixed …
![Matali Physics 6.0 Released. 3D Physics Environment As An Innovative Direct Game Creation Solution](https://uploads.gamedev.net/news/monthly_2023_02/large.8e15e6d9f7ad44f493f6f78926c82f96.matali-physics-6-0-opt.png)
We are proud to announce the release of Matali Physics 6.0, the sixth major version of Matali Physics environment. The latest version introduces groundbreaking changes both from the technical and functional side, moving Matali Physics environment to direct game creation solutions.
What is Matali Ph…![Parallax Zoom!! Gone Green!!](https://uploads.gamedev.net/blogs/monthly_2022_07/large.2e333459175e4fbfad5d4483a04fe8c9.Parallax-Zoom-Gone-Green-Banner-Gamedev_net.png)
With no-one coming forward to offer artistic support I pushed forward and reworked / improved to my limitations, all background graphics.
Then added the remaining lives indicator and improved AI attack patterns,
From very early on in the games development I wanted to use a restricted number of textur…
![DevBlog 26 - Finishing The Game!](https://uploads.gamedev.net/blogs/monthly_2022_05/large.c202447ac9634854bb151c00a321b8a8.sa_vid26_thumbnails.jpg)
It's over, I've finally completed my from scratch game project!
The final stretch has been far from glorious.
Rather than making features, it has been nonstop bug fixing.
To reach feature complete, I started just writing down non critical bugs rather than fixing them.
But after feature complete, I star…
![Linear Interpolation Explained](https://uploads.gamedev.net/tutorials/monthly_2022_05/large.large.large.large.large.large.6fc58b118d2c4587bf1f0a008656af9f.lerp.webp)
Linear interpolation is everywhere. Games, 3D animation, image creation tools and much more all rely heavily on interpolation, so having a thorough understanding of linear interpolation is extremely important.
This text is somewhat geared towards game developers, however it's general enough to apply…
![DevBlog 24 - Level and Campaign Mod Editor](https://uploads.gamedev.net/blogs/monthly_2022_04/large.5b09fd108a06448a93a34eceae5cf908.thumbnail_leveleditor.jpg)
A level editor that can be used to make mods.
I've strived to make tools that can be used to add mods to the game, and build the game through those tools.
This update brings the level editor.
You edit the level with a free form WASD camera.
You can create, save, and load level JSON files …
![DevBlog 23 - Light Speed VFX, Player Slow Motion, and Asteroids](https://uploads.gamedev.net/blogs/monthly_2022_04/large.1881f6882aaf4ff3b8f0da10f31457e5.sa_vid23_thumbnail.jpg)
The Space Jump effect is pretty simple when looking at its individual components.
Previously I created a 3D star field for the environmental rendering.
I use the 3D locations of these stars in the effect.
When the effect starts, I start cranking up the light emitted for each star.
This is done by just …
![Orx - Portable Game Engine version 1.13 has been released](https://uploads.gamedev.net/news/monthly_2022_03/large.large.large.large.412092467b5942899cbe520e2be9f70e.Orx_113_16-9.png)
The Orx community is pleased to announce the 1.13 release. This marks the 13th yearly major release since 1.0 in 2009. There are a substantial amount of changes in this release. Some highlights include:
- 70+ updates or new features
- Added a new SoundSystem plugin based on MiniAudio: All platforms now s…
![Castor3D - 3D engine version 0.12.0 has been released.](https://uploads.gamedev.net/news/monthly_2022_03/large.large.90e4d8ea61074be49d831e5ec9c1979e.Banner.png)
I'm happy to announce the release of Castor3D, version 0.12.0
Castor3D is a 3D engine written in C++ 17.
It works on Windows and Linux.
It relies on Vulkan as a rendering API, and uses Ashes to extend this support to Direct3D 11 and OpenGL.
Some of the changes:
- Now using RenderGraph to build a frame gra…
![Esenthel Engine huge update - Switch, vs Unreal/Unity, SuperRes, AO, MotionBlur, Bloom/Glow/Emissive](https://uploads.gamedev.net/news/monthly_2021_08/large.2d52808cd6e44ec8a1991b81ca411a52.Banner.jpg)
Esenthel Engine huge update - Switch, vs Unreal/Unity, SuperRes, AO, MotionBlur, Bloom/Glow/Emissive
Esenthel Engine - http://esenthel.com/ - the Free and Open Source Game Engine
Just got a Huge Update:
#1) Nintendo Switch™ supportEsenthel Engine Nintendo Switch™ support is now complete and available to all Nintendo Authorized Developers.
Download Esenthel Engine from - https://github.com/Esenth…
![small3d Tutorial](https://uploads.gamedev.net/tutorials/monthly_2020_12/large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.large.722c4a1c07a24921bddd678938ca74e3.cover.png)
small3d is a small, cross-platform 3D game development library I have put together and have been maintaining over the past few years. This is a tutorial on creating a ball in Blender, and then writing a C++ program that loads it and moves it around on the screen, using small3d. Alternatively you ca…
![Static Analysis in Video Game Development: Top 10 Software Bugs](https://uploads.gamedev.net/monthly_2018_05/image1.png.d0201312f294e1cffed9039fb827e2db.png)
If you are a software developer working in the video game industry and wondering what else you could do to improve the quality of your product or make the development process easier and you don't use static analysis – it's just the right time to start doing so. You doubt that? OK, I'll try to co…
![How to write a 2D UFO game using the Orx Portable Game Engine - Part 1](https://uploads.gamedev.net/monthly_2018_05/large.large.large.large.large.large.200px-Orx-logo_svg.png.dd597a99fd52dd1fe7cb8ed80465412d.png)
There is a video version of this tutorial available here which compliments the article version:
https://www.youtube.com/watch?v=qRuVgGOL3fI
Welcome to the 2D UFO game guide using the Orx Portable Game Engine.
(Updated for 2021 and to support version 1.12 of Orx)
My aim for thi…
![Designing Player World Interaction in Unreal Engine 4](https://uploads.gamedev.net/monthly_2018_01/unreallogo.png.7069ec076b57d05130579e8189dcd5d1.png)
Originally posted on Troll Purse development blog.
Unreal Engine 4 is an awesome game engine and the Editor is just as good. There are a lot of built in tools for a game (especially shooters) and some excellent tutorials out there for it. So, here is one more. Today the topic to discuss is di…