[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
▼ Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: out_2.mp4 (1.53 MB, 674x720)
1.53 MB
1.53 MB MP4
/gedg/ Wiki: https://igwiki.lyci.de/wiki//gedg/_-_Game_and_Engine_Dev_General
IRC: irc.rizon.net #/g/gedg
Progress Day: https://rentry.org/gedg-jams
/gedg/ Compendium: https://rentry.org/gedg
/agdg/: >>>/vg/agdg
/aigdg/: >>>/g/aigdg
Graphics Debugger: https://renderdoc.org/

Requesting Help
-Problem Description: Clearly explain your issue, providing context and relevant background information.
-Relevant Code or Content: If applicable, include relevant code, configuration, or content related to your question. Use code tags.

previous
>>110312744
>>
File: 1770181611492821.png (426 KB, 878x1022)
426 KB PNG
>>110369971
I'm in the ui trenches right now. Might have something basic to show tonight.
>>
>>110369971
thats so damn cute man
>>
File: 20261119_021404.jpg (413 KB, 4032x3024)
413 KB JPG
>>110371180
The animation is not mine by the way. I just ripped it along with the entire interaction logic from Viva Project. I wanted to see if my ragdoll will work in an already existing physically based interaction system, if it's even feasible. I will use this as a baseline or MVP that I will target with my own interaction system.

I also just got calibration board. I will try to use to finally figure out the small discrepancy in my passthrough vs steamvr one that was bothering me from the early days of this project, and could possibly prevent me from doing any actual photogrammetry.
>>
AHHHHHHH WHYYYY
>>
>>110371315
Okay now its a little better
>>
>>110371353
HERE WE GO
>>
File: 2026-11-18 23-12-13.webm (192 KB, 300x332)
192 KB
192 KB WEBM
But WHY?

if(B.Colide(&A)){
float Len = A.fSize + B.fSize;
Vector2 Dif = B.vCent - A.vCent;
Dif = Vector2Scale(Vector2Normalize(Dif), Len);
A.vCent -= Dif;
};
>>
>>110372475
Disregard, I am merely retarded.
Need to move it by the amount they overlap, not their total size.
>>
>>110372475
ask claude moron
>>
>>110371573
I forgot to mention this earlier but I'm using microui.
>>
bumpalo
>>
Alright UI isn't finished yet, still needs icons. Still have two microui commands to fill and then the basic ui should be complete

void ui_push()
{
mu_Command *cmd = NULL;
int push = 1;
while (push && mu_next_command(g_ctx, &cmd))
{
switch (cmd->type)
{
case MU_COMMAND_TEXT: push = push_text(cmd->text.str, &cmd->text.pos, &cmd->text.color); break;
case MU_COMMAND_RECT: push = push_rect(&cmd->rect.rect, &cmd->rect.color); break;
case MU_COMMAND_ICON: /* TODO */ break;
case MU_COMMAND_CLIP: /* TODO */ break;
}
}


I'll keep you guys posted.
>>
File: fat unii.jpg (35 KB, 680x454)
35 KB JPG
>>110369971
What's the least I can get away with for PC specs for using UE5? I've been using the public use top of the line alienwares at my Uni but I'm looking to build my own setup.

Epic Says you can get away with a quad core CPU and 32 gigs of ram. Could a GPU upgrade to my 4790k build really work? How much does ram speed affect things either? Thanks anons
>>
>>110382162
>UE5
You didn't make the game.
>>
On one hand, AI is great for writing tools and finding bugs.

On the other, it makes such retarded design decisions that letting it write core systems is insanity.
>>
>>110384407
Yup. I managed to find the mistake I made in passthrough equation(>>110371273) yesterday in one hour using Claude, and also got decompiled steamvr 3d passthrough and built in shaders. I spent long time trying to debug that few years ago without any progress.

But every time I try to use it to actually generate code I find myself rewriting nearly all of it because it's just so shit at writing reasonable code. It's really a waste of time to use it for any creative output.
>>
File: 1770574999828100.png (311 KB, 612x738)
311 KB PNG
ui is coming along nicely. Here is the microui demo rendered with my Vulkan engine.

microui handles the ui logic for you. Its like a lightweight Clay. You just feed it some info on how to render.

The camera moves when I hit certain keys while focused on the ui. But that will be easy to fix.

https://files.catbox.moe/2fbj3o.webm
>>
>>110385711
What I like about microui is their SDL demo was easy to follow and adapt to Vulkan. All the ui is done in a single draw call. Its just drawing textured quads. I even did CPU scissor (unlike the demo). In the demo you have multiple drawcalls due to clip commands.

void ui_draw(VkCommandBuffer cmd_buffer, uint32_t frame_index)
{
if (g_buffer_idx == 0)
return;

const uint64_t vertices_size = sizeof(UiVertex) * g_buffer_idx * 4 ;
const uint64_t indices_size = sizeof(uint16_t) * g_buffer_idx * 6;

memcpy(g_vertex_buffers[frame_index].data, g_vertices, vertices_size);
memcpy(g_index_buffers[frame_index].data, g_indices, indices_size);

const VkDeviceSize offsets[] = {0};
vkCmdBindVertexBuffers(cmd_buffer, 0, 1, &g_vertex_buffers[frame_index].handle, offsets);
vkCmdBindIndexBuffer(cmd_buffer, g_index_buffers[frame_index].handle, 0, VK_INDEX_TYPE_UINT16);
cmd_bind_pipeline(cmd_buffer, &g_pipeline);

int width, height;
glfwGetFramebufferSize(get_window(), &width, &height);
Vec2 screen = {{ (float)width, (float)height }};
vkCmdPushConstants(cmd_buffer, g_pipeline.layout, VK_SHADER_STAGE_VERTEX_BIT, 0, sizeof(Vec2), &screen);

const VkDescriptorImageInfo image_info =
{
.sampler = g_sampler,
.imageView = g_atlas_texture.image.view,
.imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL
};
const VkWriteDescriptorSet descriptor_write =
{
.sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET,
.dstBinding = 0,
.descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER,
.descriptorCount = 1,
.pImageInfo = &image_info
};
const VkPipelineBindPoint bind_point = VK_PIPELINE_BIND_POINT_GRAPHICS;
vkCmdPushDescriptorSet(cmd_buffer, bind_point, g_pipeline.layout, 0, 1, &descriptor_write);

vkCmdDrawIndexed(cmd_buffer, g_buffer_idx * 6, 1, 0, 0, 0);
g_buffer_idx = 0;
}
>>
Commit is up
https://codeberg.org/FroggyGreen/rooster

Don't let the thread die!
I'll be back for my progress tomorrow.
>>
Bump
>>
>>110384556
Yeah tools that don't ship to players are the only things I let the AI vibecode. Anything else must be heavily directed and reviewed.
>>
have written a couple emulators and made some 2d games using sdl. have 0 idea where to start with a 3d engine
>>
>>110390135
>where to start
Create window, initialize 3d api, populate entity list, create main game loop:
>calculate delta time
>handle inputs
>for each entity call onTick
>begin render pass
>for each entity call onDraw
>end render pass
>present the framebuffer/swapchain image
>>
remember to use c style arrays over std::array
>>
remember not to use C/C++
>>
>>110390135
Step 1: download Unity
>>
>>110391029
t. lisptard
>>
I like C because it is the foundation of Lua, which is the best. Lua being perfect, it only makes sense that whatever tech was used to make the language is also superb. Thus, C is good.
>>
>>110391143
Lua is nothing like C
>>
>>110391143
Lua is tied with PHP for the worst language I have had to work with.
>>
I haven't done anything useful for like a year, I finally got my game to compile again but now I don't feel like doing anything. I don't want to work on this since it's too complicated for me, but I also don't want to go back into the coalmines making another renderer for another game.
>>
>>110391029
And use what instead?
>>
>>110394314
Javascript.
>>
>>110394314
python
>>
>>110391029
>>110391104
C and lisp are all you need

>>110390555
Why settle for "C style" when you can just use the genuine article?
>>
I couldn't find this thread for the longest time. Would have made me sad if it was gone.

I've been messing around with my server. This is my most recent little project:
https://magoogan.duckdns.org/js/networked_squares/

I'm trying out WebSockets and also flatbuffers for serialization of game state. So it is networked, if anyone else joins they'll be a blue square. All you can do is move around with the LMB. Or if you have a touch screen it should work with that too. The aspect ratio is f'd up for portrait style screens though. I have the program running 24/7 right now with a 32 client max.
>>
>>110390135
>have 0 idea where to start with a 3d engine
Make a rotating cube

>>110394314
>And use what instead?
Common Lisp

>>110394666
>C and lisp are all you need
Correction: Lisp is all you need
>>
>>110394314
Terra
>>
>>110394314
Jai.
>>
Jai is going to release within 2026, right?
>>
>>110398226
just use Odin
>>
>>110394314
CosmosLang
>>
>>110398238
>just use WaitingForJaiLang
No I want the real thing.
>>
>>110400297
>waitingForJailLang
the Odin dev is out on bail? he didn't do a reiser did he?
>>
>>110400297
There's nothing amazing about Jai that makes it worth using over anything else
>>
>>110398226
>>110400297
Just get the leaked compiler for Jai and work in that until proper release.

That's what I did.
>>110400328
Spoken like someone who hasn't used Jai.
>>
>>110400850
whats so great about Jai
>>
How to implement asynchronous physics? Any articles?
>>
>>110401271
Excuse me if I'm being naive, but isn't it just fixed timestep physics (decoupling friom renderer) plus multithreading?
>>
>>110401095
Effortless metaprogramming is one, but for me honestly is that I can't come up with anything, because I never really think about the language.

The language is out of my way and I've never felt like I was fighting it. I've only worked with it for about a year and in the same span of time every other language I've used (C, C++, Odin) has had orders of magnitude more friction.
>>
Where can I learn about color spaces and formats? This shit is too confusing. Vulkan exposes an srgb format but no p3 format despite exposing a p3 color space, so how am I supposed to be displaying images in p3?
>>
File: 1775110167141456.jpg (31 KB, 456x320)
31 KB JPG
>one one hand I want to know what my code does
>on the other I'm literally wasting hours/days implementing code the AI could one-shot because I've defined the spec and code standards very well
Feels like I'm going to rot and no longer be able to program or something, but I guess this isn't very different from what higher level engineers already do in their daily professional life.
>>
>>110402555
What am I supposed to do when things start lagging?
>>
>>110402672
Can your monitor even display p3?
>>
>>110403180
I mean ideally you are supposed to avoid that in the async model, right? People usually use multi-threading to keep heavy stuff off the main thread.
>>
>>110403104
Honestly this was a problem for me but then I thought back to when I was devving with 2 other friends (game never made it, real life made both of them quit early). I had a real hard time letting others program because I wanted to know how everything worked and, to be honest, I was a clear cut above them in programming (something nobody denied).

AI, at this point, can write code a lot better than they ever could. So the reality is that for any larger project you'd have to let go anyway. 1MA'ing large projects is not possible for anyone, even Jonathan Blow needed 10 years for a (admittedly huge) sokoban with a dev team (yes, he also made the language, but in his own words without Jai it'd still have taken 5 years). As an indie, the people you'd work with would be a lot worse than AI yet you'd have to relinquish control to them all the time. I work in the industry professionally and even then AI is better than the vast majority of juniors and mids, sometimes even seniors (if nothing else it has more knowledge).

Basically my point is 5 years ago you'd have had to relinquish even more control to someone worse at their job than AI with no choice in the matter other than massively scaling down your game idea. What, you think coworkers would put up with as much of your nitpicking and micromanaging as the AI does? Not a chance, they'd bail on you within a month. You have way more control with an AI than you'd ever have with a team.

As said here
>>110384407
>>110384556
define the spec, review, and for the love of God don't just tell the AI to create a feature and let it run, but once the spec is well defined and the code is reviewed, pig-headedly writing it yourself is just wasted time and effort. If you have a good spec, you've already put 90% of the intelligence and engineering skill required into it, most of what's left is the tedium that programmers always wanted to automate away.
>>
>>110402672
I don't have a oled but honestly I prefer just letting srgb exist in a higher gamut on my IPS display, which is exactly how windows and apple functions (on apple, the default colorspace is nil, but it behaves the same as setting display p3, which means colors are using the full gamut).
If you put srgb into it's correct colorspace, it will make the colors more dull.
This is an issue that shows it in action (note that on my edge browser the 2 images look the same, but not on firefox):
https://github.com/glfw/glfw/issues/2748
And note that on the web, srgb always has it's gamut upgraded unless you explicitly tag the resource as srgb (and of course this also depends on the browser).
https://www.wide-gamut.com/test
Also something that might confuse you is that srgb is both a colorspace and it's also a curve function applied to pixels to compress the color into RGBA8 in 32bits, which is very similar to gamma 2.2 but with better blacks.
But note that on nvidia's ROP unit, if you store your textures/framebuffer in "srgb" the colors are blended in fp8 (AKA this only matters if you use transparency, if the colors are opaque, there is no blending on the ROP). SRGB is kind of not recommended because of that, BUT it's still useful if you need transparency with a low overhead (performance would be better with a compressed srgb format), if you don't need transparency, you get the same compactness using RGB10A2 in linear space (and similar formats) and for HDR (aka blasting your face with brightness), fp16 and RGB10A2 are options. fp16 is convenient because 1.0 is the "paper white" color, so you don't need any special extra conversions I believe (based on DXGI's documentation, not sure about vulkan). There is also Tone-Mapping for HDR, which are just a custom shader curve.
The problem on windows is that if you don't enable HDR mode, the window acts sluggish if you use fp16, and if you use HDR mode the colors of everything look off.
>>
>>110402580
thats not an answer
>>
>>110404153
*My bad on edge it gives the same result as firefox.
>>
File: 15921370218881.jpg (86 KB, 895x634)
86 KB JPG
>make a fundamental change into a part of my engine that affects almost everything
>expect everything to be broken for days
>mfw game runs without any bugs or problems as soon as it successfully compiles
>>
>>110369971
so building an engine yourself is feasible? or are you just building an engine to nogame yourself?
>>
>>110404890
>so building an engine yourself is feasible?
questionable before AI, today I'd say yes



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.