[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


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


We do serious work in C++ Edition

/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
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: >>109662695
>>
File: 5.jpg (85 KB, 1920x1200)
85 KB JPG
https://youtu.be/RfWGJS7rckk
>>
>>109717004
C flavored C++, you heard it here first, now you know in what language you should do your ENGINE
>>
File: betz.png (41 KB, 800x465)
41 KB PNG
the v3 guy doxes people
>>
>>109717057
we're safe here
>>
>>109717017
I would rather just use one of his engines.
>>
>>109717108
fair enough, I was thinking of modding Q1 engine myself
>>
>>109717133
i was thinking of modding your mom
>>
>>109717227
mom jokes shots fired
>>
File: 040.png (96 KB, 1082x802)
96 KB PNG
I finally got to updating the docs and making a release. Now I will be porting some of my projects to Android.
>>
https://x.com/SebAaltonen/status/2095441071337615685

Vulkan is obsolete
>>
>>109717245
finally, I have been looking for an openGL replacement which doesnt require programming socks level autism
>>
>>109717133
FTEQW seems the best for it.
>>109717227
I did not fire the shot.
>>
>>109717245
>just one more incomplete vulkan wrapper saar
>no i wont add any QOL or features. immediate mode? handrolled line drawing? debugging and replay? text shaping and rendering? video playback? API interop? scene graph for hello world scenes? never heard of them
>look sars its X-lines of coood
>codex btw
>codex btw
>codex btw
>"Ubisoft" (lol. lmao even)
>"Unity" (lol. lmao even)
>[some stupid company name] - ai slop and mc clones for jeet phones (kek even)

Just use D3D11 or something desu
>>
>>109717290
This
>>
>>109717245
Ok so why wouldn't I just write it myself?
>>
File: 1769362884114418.png (46 KB, 890x315)
46 KB PNG
>>109717290
>>109720325
This you?

If you can't handle Vulkan you'll never make a game, stick to Unity.
>>
you fags won't convince me that the official vulkan tutorial isn't shit
I won't give up though
>>
>>109720920
Nobody said it's not shit, it is shit. Just get to the point where you draw a triangle then go ahead on your own with what you need. No excuses in the age of AI where a 15min search on Stack Overflow now takes 30 seconds instead.

I also don't get why people keep arguing about fucking Vulkan like it were the hardest thing ever. Getting lit textured meshes rendering in Vulkan is what, 10 hours of work? Took me less than 20 as a self-taught retard who had never programmed outside of Unreal before starting my own engine, and I didn't even use libraries such as vkbootstrap.

The hard and time consuming part is what comes after, but that happens regardless of your API. The time it takes you to get Vulkan up and running wouldn't even show on a bar chart compared to the time you'll spend working with shaders and building structures/systems you'd build in any other API too.
>>
>>109721018
vulkan isn't "hard". it's tedious, it's verbose, it's obtuse.
the tutorial pretty much regurgitates the spec without any of the useful explanations.

>Getting lit textured meshes rendering in Vulkan is what, 10 hours of work?
vs. a single evening in opengl

I'm not advocating against vulkan or preaching ogl, but vulkan certainly isn't a walk in the park *if* you want to actually understand stuff.
like you said, it takes 30 seconds to look something up in the age of AI. but it adds up. the vulkan API is fucking gigantic.
>>
>>109717245
>Vulkan is obsolete
>Latest version of Vulkan triangle
>>
Do you still code manually like in the old days?
>>
>>109721710
50/50
>>
My OpenGL renderer just works. I haven't made any significant change to it in 2 years because because my goal is just to put pixels on the screen and not being a gputranny who cares that the API isn't an precise abstraction of the hardware
>>
>>109721302
>>Getting lit textured meshes rendering in Vulkan is what, 10 hours of work?
>vs. a single evening in opengl
NTA, but then later when you want to scale it up you need to rewrite everything in opengl, while in Vulkan you just change one parameter/call.

>vulkan certainly isn't a walk in the park *if* you want to actually understand stuff
I agree. However it is much easier to "actually" understand stuff with Vulkan than with OpenGL. OpenGL was made by pouring layers and layers of shit every time GPU tech changed making it a huge clusterfuck. Sure, you can treat it like it's 90s and use immediate functions to display triangle in 10min, but if you want to actually properly utilize capabilities of modern GPUs, you will have to dig through a lot of bullshit and it gets confusing fast.
Vulkan on the other hand is much leaner. It requires you to set up and understand all these modern features up front, but once you do it once, it's a walk in a park from there. First triangle might take 10 hours, but then you can just spam thousands of them, add alpha, multisampling, complex shaders, multiview/VR rendering, semaphores etc just by turning a knob here and there. And you should know exactly where to look if you properly understood how the GPU pipeline and api works.
>>
>>109717057
>click on game dev thread
>already see some drama about an anon getting doxxed
Why are you guys so mentally ill lmao
>>
>>109721302
Forget the API and 1k measly LOC to get a triangle rendering, the shit you have to build and then subsequently maintain and expand will be a hundred times more work than any API will ever be, and that part is much easier in Vulkan than OpenGL's black box bullshit. Like >>109721839 said.

Yeah it's a bigger up front investment but you will never regret going with Vulkan over OpenGL, which is what annoys me when people keep scaring others off of Vulkan. They're saving themselves 10-20 hours now but setting themselves up for hundreds of extra hours of work later down the line over the months/years of the dev cycle.

Now you don't NEED Vulkan, if you know OpenGL already and that's fine for your project go ahead, but if you are looking to learn a graphics API you should go with Vulkan (or DX12).
>>
>>109722336
is it even possible to start with vulcan? how would a noob even grasp that? I am so glad I was starting with OpenGL 1.x.
>>
>>109721710
yeah, my own stuff. at work, I am basically forced to use LLMs.
>>
>>109721839
Vulkan is just modern GL cleaned up a bit, I don't think you've actually used OpenGL
>>
>>109722336
>that part is much easier in Vulkan than OpenGL's black box bullshit.
No it's not
>>
>>109721907
this board is literally the worst board
>>
>>109722751
Do you need to start with Vulkan? It's a low level api, it assumes you have a rough idea of what you are doing. You might be better off using some wrapper around it. They often can handle boring housekeeping that doesn't matter all that much for majority of usecases and give you a simpler api. I dunno which ones are good in C/C++ world, I guess SDL_GPU would be fine. In Rust vulkano is pretty good. WebGPU is also not bad if you want to learn the main object types and their purposes.
If starting with Vulkan itself is not impossible, it just takes time. You just have to sit through a lot of documentation and learn what does every thing in pic related do and half of >>109721839. It's that much and only that much. There are some extensions and extras but essentially you just need to learn these ~30 kinds of objects and you can do nearly anything you would ever want. But if you start with OpenGL you will mostly likely first learn the simpler, wrong ways of doing things and then you will still need to learn the same things as in Vulkan and unlearn bad habits and in the end you will waste more time and get more confused. I recommend starting with a modern gpu api, doesn't have to be vulkan.

>>109723481
I did used OpenGL. No, it's not the same. Vulkan is lower level. OpenGL manages some stuff for you, it handles allocation, synchronization, commands, etc. There are also important overarching api architecture differences, with OpenGL using a global, single-threaded state machine and second class support for compute. And most importantly what I mentioned before, it has tons of deprecated stuff that act as foot guns for someone who wants to learn how GPU works and how to use it efficiently. It's an old api designed for old hardware that was awkwardly retrofitted to support modern hardware.
>>
>>109723570
>it has tons of deprecated stuff that act as foot guns
It's pretty obvious what's old and what's new
>>
>>109723607
Yeah, if you are experienced.
>>
why is every dunning-kruger post made by a Rust user
>>
>>109723620
No it has nothing to do with experience, there's 4 major versions of OpenGL and the features and functions are all labelled based on what version they're from
>>
What do my Vulkan bros think of the new shader objects?
https://docs.vulkan.org/samples/latest/samples/extensions/shader_object/README.html
https://www.khronos.org/blog/you-can-use-vulkan-without-pipelines-today
https://docs.vulkan.org/spec/latest/chapters/shaders.html#shaders-objects
>>
>>109724744
Former Vulkan driver engineer here. Wait for the KHR extension. Also expect there to be some performance overhead compared to monolithic pipelines on some GPUs.
>>
>>109725152
>Wait for the KHR extension
Any particular reason? Most vendors seem to already support the extension.
>>
>>109725215
The vendor I worked for won't. Admittedly that's for mobile so feel free to not care.
>>
>>109725235
Huh. Why are you no longer working for them? It sounds like something I'd love to do, which is why I'm going back to the university this year.
>>
less talkie talkie, moar postie progress
>>
>>109725304
Got a bit burnt out and have enough savings to just faff about for a while.
Driver eng is definitely interesting and gives you quite a bit of insight how things work under the hood.
The thing is that in many ways you're essentially working on the interface layer between userspace and HW. So much of your work is writing code that passes through API-set values and converts them into a format the HW understands.
>>
File: maxresdefault.jpg (49 KB, 1280x720)
49 KB JPG
https://www.youtube.com/watch?v=Dhd48VnM8Cg

quake engines are so enticing, but then again I compare them to Unity and I go "I can just do it all in Unity nowadays"
>>
File: fteqw.jpg (28 KB, 736x552)
28 KB JPG
>>
File: cat car chase.gif (836 KB, 165x164)
836 KB GIF
>Finally get everything looking right
>Go to add another feature
>It doesn't work
>Drill down into debugging more
>All of the math was wrong and it only looked right by accident
Looking forward to engine rewrite number five.
>>
>>109725865
>Looking forward to engine rewrite number five.
Why do you have to rewrite the entire thing?
>>
>>109726029
>he doesn't rewrite the whole engine every time he spots a compiler warning
ngmi
>>
>>109726029
I accidentally a bunch of spaghetti that made sense at the time but I don't understand anymore, and simultaneously too interconnected and not connected the way I expect it to.
>>
File: 170.jpg (8 KB, 164x170)
8 KB JPG
After a month, I gave up trying to understand all the math I used.
I'll just write code and treat these math stuff as black boxes.
>>
>>109724744
Not available on iOS or macOS.
>>
>>109721907
They take after Nous
>>
>>109726183
1. Brain
2. Pencil and paper
3. Patience and more brain
4. Keyboard
The sooner you start typing the longer it will take.
>>
>>109723570
>picrel
this kinda reminds me of OpenCL with a bunch of graphics-specific elements thrown into the mix. not too bad.
>>
Vulkan life-hack: completely ignore queue family ownership transfers and image layouts since they're no-ops on Nvidia cards (only cards that matter) so you only ever have to do simple memory barriers to synchronize.
>>
I'm gonna write my own Vulkan tutorial, but I won't publish it. I'll be the sole owner of my digital tutorial. Then, one day, when I have my own company, I'll print it and make it part of my company's knowledge, so my employees can become Vulkan gurus without my physical guidance.
>>
>>109727285
Companies really only need one person who knows a graphics API well
>>
File: 1774282883745716.jpg (10 KB, 234x250)
10 KB JPG
I will definitely make lots of progress this weekend.
>>
File: Beef.jpg (49 KB, 943x532)
49 KB JPG
Me since yesterday.
>>
>>109718606
>Saar
Please. The dude is Finnish. I find the Indian allusions offensive.
>>
>>109717245
I’ve had my own version of his article for like a month now and what’s hilarious is I can see exactly where GPT Sol intersects for both of us. It doesn’t seem like he’s managing queues the same way as me though. Looks like he’s going for something as light weight as possible. Really glad he’s releasing his own version so I can catch my shortcomings, particularly for barriers.
>>
>>109724744
I’ve been using them. In fact Nvidia recommends them. AMD technically supports them but it may be a shot in the dark trying to get them to function. Haven’t tested but I’m not expecting AMD’s implementation to be a breeze.
>>
>>109721710
I try to but I get this feeling like I'm not supposed to be doing it in the age of AI agents
>>
>>109732044
>>Saar
>Please. The dude is Finnish. I find the Indian allusions offensive.
I don't care what it says on his passport. His company registration states "hypehype" and only serves to ship Actual Indian mobile shovelware.
>>
>>109733020
Really?
Man, that's a shame. I haven't been following what he's been up to in the recent years, but back in the day he was a pretty decent guy and a good coder. We had some mutual friends back then. Shame he jeeted out.
>>
I want to make a game that has a hybrid of Visual Novel gameplay and 3D action gameplay. What would be the best engine for something like this?
>>
>>109733649
>What would be the best engine for something like this?
The one you're building.
>>
https://github.com/TamasPetii/SynapseEngine
Thoughts?
>>
>>109734326
There’s literally nothing special about this. It’s just a generic game engine.
>>
File: 1788604390771804.mp4 (2.1 MB, 1108x720)
2.1 MB
2.1 MB MP4
AI can unwrap 3D models now.
>>
File: Untitled78.png (891 KB, 1332x1309)
891 KB PNG
GPT-6 can make 3D models too.
It's Joever.
>>
>>109734740
Can it retopologize or at least clone Quad Remesher?
>>
File: 1757902903265921.png (269 KB, 1080x1080)
269 KB PNG
>>109734740
Auto unwrap algorithms have existed for decades, show a comparison with one of them.
>>109734747
Show wireframe.

Seriously, that AI can is nothing new, the question has always been how well it can, and these examples show little.
>>
>>109734747
shit model, doesn't even match the reference
>>
File: Untitled79.png (385 KB, 937x1766)
385 KB PNG
>>109734916
Sorry I'm just catching up to the metric ton of news that's just dropping every millisecond.
The new GPT-6 can also write fucking music.
https://x.com/aug5thmusic/status/2096030719156089029

>>109734944
Melty mad at technology.
>>
>>109734969
Just 1 more year and AI will save you from your own mediocrity, Ranjeet.
>>
File: Untitled80.png (578 KB, 1288x719)
578 KB PNG
>>109734960
It's faster and cost less than hiring a 3D artist.
And this is just the early stages of the technology.

A lot of game developers are going to be homeless this year.
>>
>>109734984
>And this is just the early stages of the technology.
It's been at least 2 years of AI meshes, probably closer to 3.
>>
File: Untitleda.png (659 KB, 894x1074)
659 KB PNG
>>109735052
Keep coping faggot.
This is AI using DCC software to work, which is exponential.

And it's just FIRST day of release. Lets see what next week brings...
>>
>guy has no actual skills of his own so he's shit talking people that do
>>
File: 1788578605201445.mp4 (3.19 MB, 960x720)
3.19 MB
3.19 MB MP4
Again, lets wait 7 more days so you can shut your mouth.

It's clear that OpenAI seriously reached AGI. So I don't care about your so called "skill". It was probably some Indian university you got it from anyway.
>>
>>109735068
>>109735104
>exponential
>next week
Right yeah like programmers weren't going to be needed in 2025 right? Also you were supposed to have become a 10x dev thanks to AI 2 years or so ago, can you showcase what you've done with those 20 effective years of AI-powered development?

I'll be here next week. You won't show yourself though.
>>
>>109735137
I'm not scared of Luddites. Next week will be fun. :)
>>
>>109735163
>$3 to put a brick into a cup
>2.4x success rate
>meaning it fails sometimes
lmao
>>
>>109735089
He's extra butthurt at /gedg/ since it's more enginedev focused. The higher the skill floor and ceiling the more insecure he gets.
>>
File: GizaUNUYbEPTtdwi.mp4 (1.84 MB, 724x360)
1.84 MB
1.84 MB MP4
>>109734916
To answer this anon again, someone got optimization working.
https://x.com/emmanuel_2m/status/2096016091772276946
>>
It's not even 7 days yet and I'm already going to win the bet.

AI can now turn real game Ads into actual video games.

Sam Altman won. We now have AGI at our fingertips.
>>
Who cares? We already have LLMs for creating 3d assets.
>>
>>109736004
You idiot. This is creating the ENTIRE video game.
It's going to bypass every single Game development job.
The industry is finished.
>>
>>109736004
He has decades worth of bitterness over not being able to learn a skill, so he's desperately hoping that AI will come along and render the skills others built useless.

That, and that AI will lift him out of his slum in Mumbai.
>>
>>109735954
Anyone who has ever tried to develop a game will know that this just shows the AI doing the quick and easy 10% of the work while leaving the hard 90% out.
>>
>>109734969
>The new GPT-6 can also write fucking music.
AI has been able to write music for years have you been living under a rock
>>
https://x.com/SebAaltonen/status/2096312811743740178

vulkan sisters...our response?
>>
>>109738095
still writing everything myself!
>>
>>109738095
>NoGraphicsAPI
>It's a low-level Vulkan 1.4 wrapper
>>
>>109738095
https://www.sebastianaaltonen.com/blog/no-graphics-api
>>
>>109738356
grok, give ma tldr
>>
>>109736013
Fuck off back to /vcg/ faggot
>>
>>109738095
His version is way lighter than mine
>>
>>109716990
I'm writing my engine in Objective-C with ObjFW. Wondering if I should swap from GL to Vulkan, but that whole ecosystem seems to revolve around C++ instead of C
>>
>>109738356
holy shit sum it up im not reading all that
>>
>>109738356
>no graphics api
>looks inside
>graphics api
>>
>>109738356
The fucking hoops retards jump through instead of taking a week to learn Vulkan.
>>
Any UI/UX people ITT? I could use a hand designing a HUD.
>>
>>109738729
look at old games, make your ui in figma
>>
>>109716990
Why aren't there any C game engines. I don't mean frameworks like Raylib, but a proper engine with all the bells and whistles with robust support and documentation?
>>
>>109739309
Why would you use C instead of C++?
>>
>>109739309
make it yourself lol be the first
>>
>>109739309
no one uses C outside of a few ancient projects anymore. even embedded moved on.
>>
>>109739309
The industry hasn't known how to make games without objects for decades now
>>109739356
Why would you not avoid C++ like the plague?
>>
>>109739479
There is no reason to use C over C++
>>
>>109739469
>no one uses C
Wrong, I use C
>>
>>109739521
Even casting is an overcomplicated ritual for rape victims in C++
>>
>>109739479
>c devs don't need objects!
>proceeds to define struct + 20 functions that take the struct as their argument
>>
>>109739930
it's different ok
>>
>>109739930
>c devs don't need objects!
I didn't say that. That's a different sentence than what I posted
>>
What's the problem with C# ?
>>
>>109740855
nothinf, it's a decent language
>>
>>109740867
I discovered a few reasons why C++ could potentially requires less work to optimize paticular scenarios.

>Garbage Collection vs. Deterministic Frame Performance
C# relies on a Garbage Collector (GC) to free unused memory automatically.
C++ uses manual and deterministic memory control.

>Open-World Landscape & Draw Distance Optimization
C++ allows low-level CPU cache optimization, SIMD hardware acceleration, and direct memory alignment. This makes streaming terrain Level-Of-Detail (LOD), flight physics calculations, and volumetric cloud interactions significantly easier to squeeze out bare-metal hardware efficiency.

C# operates behind managed layers [.NET / CLR]. While fast enough for most mechanics, handling vast terrain streaming or intensive flight physics natively requires leveraging Data-Oriented Technology Stacks (like Unity's DOTS/Burst Compiler) to bypass managed memory overhead.

>Target Platforms & Console Deployment
C# requires an Ahead-Of-Time (AOT) compiler to translate managed C# IL code back into native C++ code to run on consoles.
>>
>>109741009
Why are you sharing your ChatGPT query with me
>>
>>109741012
Why did you predictably become triggered by the phrase "I discovered". Being so easily bothered by such a petty thing is an indicator of faggotry and mental illness. If I rephrased with "I read" would you have reacted ln a less bitch-like manner? You emotional sperg. Additionally, the begining of the threads topic explores >>109717004 the question of which is the best programming language; which is the reasoning behind asking. Do you really not reconize how the specific scenario comparisons relate to the general threads discussion? >>109741009
>>
>>109741055
>Why did you predictably become triggered by the phrase "I discovered".
I didn't, I didn't even read the post after I saw it was AI slop
>>
>>109734740
I don't see why you need AI for that.
>>
>>109739297
>figma
We don't have all year for your milking ass to sit around in figma fucking around.
>>
>>109741085
Oh, you're one of those type of guys. I suspected. The random gay "me, me, me" and "why did you do this to me?" narcissistic outlook was the clear indicator that profiled you in a few seconds flat. Shouldnt you be watching Destiny at Kick or something, you snarky midwit attitude faggot?
>>
>>109741108
You didn't do anything to me, you just posted AI slop which means I'm not going to read your post because I'd rather talk to humans
>>
When my player's Y value is really low (as in, a very large negative number), sometimes adding to it has no effect. Example (taken straight from my IDE just now):
>yPos = -961964.625
>yVel = -0.00661136722
>yPos = yPos + yVel
>yPos = -961964.625 (didn't change)
Any ideas? This is C++.
>>
>>109741126
google floating point inaccuracy
>>
>>109741121
After profiling your identity and personality charteristics as an indivigual I could really care less what you want or what you have to say about anything.
>>
>>109741133
You're awfully mad for someone who doesn't care
>>
File: EfXCE01UYAA8csO.jpg (41 KB, 798x644)
41 KB JPG
>>109741137
>You're awfully mad

No, that's just your own homosexual brain incorrectly interpreting the world around you through the lens of homosexuality or some other deranged social trauma. The reasoning behind terminating all interaction with you after this comment is simple... it's called productive. You are not productive.

>I'm visit anonymous boards to seek out deep connections with other men.
I hope you get the help you need. Cya
>>
>>109741156
You could just not post AI shit instead of having a melty about it
>>
File: 1753666366619107.jpg (50 KB, 1024x576)
50 KB JPG
>>109741159
You could learn the ways of the Samurai instead of being an filipino/vietnamese ladyboy. Man up already...
>>
>>109741168
I don't need to use AI I'm not retarded
>>
File: leftoid-art-moron.jpg (5 KB, 275x183)
5 KB JPG
>>109741170
>I'm not retarded
Boy are you in for a rude awakening. Get a load of this a-typical narcissistic special little snow flake. He thinks he's special yet is identified, profiled and categorized almost immediately. If you are so special and unique little princess... then why was I able to profile you so quickly? You have never thought about that? Well, try thinking about it some time retard.
>>
>>109741189
You "profiled" me incorrectly, I'm not narcissistic, you're just mad and having a melty
>>
why would anyone waste their time making an engine to make a game that no gamer swine will ever care about or try to preserve instead of making and operating system or trying to fix something more essential for an enjoyable daily computing experience?
>>
>>109741194
How the fuck is making an operating system essential, that's even more useless than making a game nobody is gonna play
>>
>>109741189
why do you care so much whether someone wants to use AI or not

get over it and fuck off already
>>
File: 1787445846207509.jpg (49 KB, 1024x1022)
49 KB JPG
>>109741192
>I'm not narcissistic

Yes you are. Your entire frame of mind, line of questioning and outlook is all due to your own personal life experience that you are experiencing right now. You made the entire conversation about you. "Why did you do X to me?" It had nothing to do with you, or even me. You fucking mentally ill weirdo. It was about C++ and C# being compared against eachother within a specific scenario. That scenario being an Arcade Air Combat game like Ace Combat. For some retarded reason, this made you freak out and start asking the most retarded narcissistic line of questioning such as, "why did you do a thing to me?". Take your fucking meds, homo. lmfao even
>>
>>109741220
This conversation isn't about me at all, I just said I don't care to read your AI slop
>>
File: laugh.jpg (53 KB, 800x407)
53 KB JPG
>>109741225
>This conversation isn't about me at all
I just said that. Nothing has ever been about you. Because your opinion is manufactured reactionary slop passed down by a herd of clones exactly like you. You mindless, cult member.
>>
every /g/ thread will be filled with bait about AI and rust until you fucking retards learn to stop replying to it
>>
>>109741250
I assure you my reaction is 100% authentic me and I didn't inherit it from anyone
>>
File: 1753813593450134.jpg (77 KB, 576x1024)
77 KB JPG
>>109741257
>I assure you my reaction is 100% authentic
Your reaction is 100% cloned after viewing someone else with the same identical reaction. I know, because I have witnessed your reaction thousands of times previously by others. You share ZERO unique reactions within this thread and discussion. Your throughts, opinions and personality are from a cookie-cutting template. That is how I am able to profile you. Because you are common. You are the living and breathing embodiment of conformist slop.
>>
>>109741286
Just because my reaction isn't unique doesn't mean it isn't authentic
>>
>>109741286
>everyone who holds the opposing opinion to mine must have arrived at it through irrational means
As usual, the people who want to fuck up the world and destroy everything good are extremely persistent in their refusal to understand their opponents. You are just like the anti-AI libtard kids you're attempting to complain about in your arrogant and narcissistic posts
>>
>>109741291
And just like the preacher was originally angry at the printing press. Your anti-civilizational mindvirus terrorist cult mentality cries out in helpless pain in an attempt to prevent the automobile from replacing the mule. Now that the global warming psyop is no longer funded by USAID all of the little mindless cultist such as yourself have to replace it with something new in order to keep marching forward like the mindless bots you all are.
>>
>>109741332
I'm not angry I just don't want to hear about it
>>
>>109741302
>I feel left out
>Notice me
>The post
That was probally the dumbest thing I've read all week.
>>
i bet half the posts ITT are that pajeet
>>
add AI schizo to the list
>>
File: 1740313175235178 (1).gif (3.62 MB, 640x474)
3.62 MB GIF
The same fear-mongering narcissistic schizos crying about AI are the same fear-mongering schizos that believe electricity is a dark black magic invented by the devil. 80% of their antics boils down to attention-seeking narcissistic "look at me" faggotry. They have no valid argumenation. They have no philosophical point to make, ever. All they do is repeat the same identical one or two braindead phrases like bots. Month after month. Year after year. The message never evolves, grows and expands. The same two phrases. Repeat. Repeat. Repeat.

>Hi guys.
>We are the resistance.
>We have two phrases. Which one do you preferer today?

I wish to order the classic "AI slop" today, Master Resistance Fighter daddy. Thank you.

>Good choice. That one never gets old. We are the resistance. Full of original ideas and creativity.

I've been laughing at you clowns my whole life. You're the same group of people. All you do is switch topics after a decade or so. Same stupid low IQ. Same complaints. Same mentality. Same personalities. Same feckless weakminded brainrot.
>>
>>109741427
The only person crying here is you my dude
>>
>>109741431
Whoa dooooood. That was deep. PAH PAH PASS the doobie my dude. Taking down your type of people is easy work. Always has been.
>>
>>109741448
No it's not deep, it's painfully simple
>>
>>109741450
The size of the hole I ripped into this thread is deep. Thats why you feel the need to get involved somehow. Even a retard like you can recognize something unusual is happening. Who are you supposed to be? The hippie white knight in sandles and a bathrobe character? stfu faggot and mind your business before you get knocked out.
>>
>>109741467
I told you I don't want to read your AI slop and you've spent 30 posts fighting imaginary enemies because you're so butthurt about it
>>
File: GiqwybYWYAEsE1q.jpg (97 KB, 1021x735)
97 KB JPG
>>109741473
What a powerful vocabulary. A true sign of genius there. The more op research you give, the more I narrow down the url to your DAZ3D anime porn patreon account.

>AI destroyed my DAZ3D anime porn patreon gig that payed for my vietnamese apartment! It's over for me!

Keep it coming
>>
why do these threads always seem to devolve into flamewars? you guys need a timeout. gamedev is already too stressful as is.
>>
>>109741613
dead thread so flame wars are the only time it's active
all the people making games gave up
>>
>>109741613
See >>109736210. He goes into a manic episode every time an AI company whips up the propaganda machine for a new model (in this case GPT6) and screams that whatever discipline is over.

The episode will pass and he'll go back to his depression until the next cycle. He's still on the hook for Saturday though, GPT6 is supposed to end game development by then, or so he said.
>>
File: GxHV_VCbkAAJv7s.png (234 KB, 680x372)
234 KB PNG
>>109741623
Nobody here is Indian you fucking schizo. Do you retards have a plan? Don't tell me your plan to stop AI is to scream the words "AI slop!" and "Indian!" for the next 50 fucking years? What exactly is your plan. Do you think you repeating these words wins you a victory.

>If I just say Indian and AI slop one more time... we will win!

Nobody is Indian, you fucking retard. The level of uncreative and repeative banter is so eye-opening to how stupid most of you mother fuckers are. Going on how many years now? Repeating the same two fucking words. Holy shit... there has to be a mental illness that discribes such a behavior.

>You're an Indian!

No. No I'm not. You're just annoying as fuck and retarded thats all.
>>
>>109741772
>You're just annoying as fuck
thats rich coming from the guy having a schizo meltdown
>>
>>109741862
Says the unemployed DAZ3D patreon porn producer who lost his subscribers to AI and now swears revenge. Keep crying little bitch.
>>
>>109741772
>Do you retards have a plan?
Yeah, I'll keep working on stuff as usual while you chase the newest meme marketed to you. I wonder how many years of manic episodes triggered by AI marketing you can take before the subsequent depressive episodes get too strong and you off yourself.
>>
File: 1787445882643012.gif (170 KB, 360x346)
170 KB GIF
>>109741934
>manic episodes triggered by AI marketing
>subsequent depressive episodes
>off yourself
>newest meme marketed to you

Whoa, what on earth is this retard screaming about? Bro, these people are not human. Now you see why I troll them like I do. This is the real face of retardation hiding behind the AI schizo crowds pseudo-grip. They're here to save humanity from the robots, but they want you to kill yourself. Uh, okay.. another psychopath hiding behind his mr. do-gooder mask gets exposed.
>>
>>109741467
>something unusual is happening
I'm sorry to report you're just not that smart and everyone is laughing at you. You thought the chatbot was finally going to pass as human, someone smarter than you immediately noticed the post wasn't made by a human, and now you're having a melty about it. It's honestly not even that unusual for this board. Lots of people try to pull the "I bet you didn't notice this was AI" trick
>>
File: tranny.png (97 KB, 779x542)
97 KB PNG
>>109742028
>You thought the chatbot was finally going to pass as human, someone smarter than you immediately noticed the post wasn't made by a human
Holy shit... this is so eye opening. I knew you people were midwits and made use of the term a few times already, but I honestly assumed you were at least somewhat above average. Now I know you are actual midwits. Like, the literal text-book definition. It makes so much sense now. Midwits have ALWAYS been my #1 adversary and the trouble makers in life. You are literally an idiot. What an absolute schizo.

You literally need medication and a therapist.

I've been laughing at you for hours... now I'm shocked someone like you actually exist. Like there is no way you're a serious person. LMAO
>>
>the jeet is still seething
>>
File: 1788693947657.png (8 KB, 544x416)
8 KB PNG
Anyone knows how I can make the SDL_ttf text not look like shit at lower resolutions (16px, 24px)?
The top is TTF_Render_Blended, the bottom is TTF_Render_Solid
>>
>>109741108
this could use 10 or 32 bits color space operations for lighting effects
>but how
no clue, you do the research I just know it effects
>>
>>109742169
it needs alpha / anti-aliasing
>>
>>109745490
post webms/pics
>>
>>109744197
Appreciate the heads-up! Your colorist perspective and insight on this were spot on it definitely pushed me to get the rendering pipeline sorted out properly for higher precision:

Enabled HDR Rendering on the URP Asset so lighting and post-effects run through high-precision floating-point buffers (16/32-bit float).
Disabled post-processing downsampling (changed multiplier from 2 to 0) so full-resolution floating-point color data is preserved without blocky artifacts.
Switched tone mapping to AGX to handle high-intensity brightness without clipping color channels.
Turned on Dithering in post-processing to smooth out sky gradients and eliminate banding on 8-bit displays.
Fixed LUT texture import settings (un-checked sRGB) so the color grading math stays accurate.

Looks much cleaner now without the gradient stepping! Given your sharp eye for color space and rendering pass dynamics, I'd definitely welcome your feedback and offer you a role as a visual adviser or technical producer on the project if you're interested in helping refine the overall visual presentation. Let me know if you'd be open to checking out future builds!
>>
>>109745525
>>109745500
>>
>>109742169
I think TTF_HINTING_MONO would fix the Solid Rendering IF the font has mono hinting (for example, ms arial has hinting). And I believe SDL_TTF will use a different way of doing italics or bold for mono fonts.
>>
>>109745525
>Looks much cleaner now without the gradient stepping! Given your sharp eye for color space and rendering pass dynamics, I'd definitely welcome your feedback and offer you a role as a visual adviser or technical producer on the project if you're interested in helping refine the overall visual presentation. Let me know if you'd be open to checking out future builds!
ok, lmao
>>
>>109744647
>>109746097
The top one does have anti-aliasing though. The bottom doesn't.
Solid is meant to look worse as it is faster to render. But the top is rendered with _Blended, which is supposed to be the highest quality ...
>>
>>109745642
After those videos were cut I created some new systems. Until this hangar-to-combat scene transition is smoothed out (with all systems instantiating) I can't really make any dogfighting videos because the player camera is out of alignment. Only needs around an hour or two to fix and almost finished. You can see the improvment though, check it out.
>>
>>109745642
>>
>>109745642
>>
>>109722336
stick to opengl 4.5's dsa stuff and enable GL_KHR_debug and GL becomes almost painfree
>>
>>109739309
C has a serious lack of data structure types and modern features that make programming faster while not actually hiding things from you because of it being controlled by ISO. i like the flexibility, ease of use and control C gives you so i'm using it for my own game engine but there are better options like C3 or zig. meanwhile if you don't mind using more complicated languages rust seems to be taking over although i fucking hate the borrow checker so i usually avoid rust
>>
>>109739309
>>109746567
to add to it, i'm making a custom ECS engine with lua extendability for personal projects but if you have real money on the table you're not using C. C's current adoption relies on legacy and it being the de facto ABI for inter-language interaction and while the new standards have cleaned it up quite a bit the problems of the language are still there. also terrible design decisions like null terminated strings always bite you in the ass even with all the modern sanitization and assessment tools. save yourself time and pick another language. i'm autistic so i pick C. you can pick something else.
>>
>>109746567
>modern features
This may be hard to believe since everyone here is autistic, but some of us don't actually want functional programming features polluting the language. ObjC (RIP) had the right idea. Any other programming paradigm should be a thin layer added on top of C, not integrated into it.
>>
File: IMG_8979.jpg (89 KB, 1080x1200)
89 KB JPG
>open thread
>bot swarms arguing against themselves to slowly drown out the information utility of the internet
>close thread
>back to reading David Eberly’s game physics second edition
>>
>>109746567
>i'm making a custom ECS engine
>lists a bunch of memelangs and skips C++
>>
>>109746171
You need to set the hinting to mono if you want your font to use the low res-optimized hinting for mono textures. For ms arial, it makes the letters look like a bitmap font at 16px.
But for most non-microsoft fonts, it does nothing, because the files lack the hinting info (it's really difficult to write a perfect font that works for low res + high res, because there is a whole entire VM machine running it's own instruction set and etc, pretty much only micosoft bothered to do all the work).
The blended font looks pretty awful, but I think if you used linux to run ms paint through wine, you can see what the font would look like without the LCD filter (but also it's in 96dpi instead of 72dpi, so 16px for you is 12px on ms paint).
>>
>>109746876
of course i skipped C: bloatshit edition on purpose. even if you use it as C with classes its syntax is just jarring to look at

>>109746612
C3 seems like it to be honest, although i don't plan to switch away from C. i'm content with C23 for now, things like typed enums and first class boolean support are nice quality of life improvements not to mention memccpy which is a godsend when dealing with C strings
>>
>>109741772
don't worry about faggots that sit on the board all day to argue. they're on every social media outlet and just want to drag people down like crabs. they'll amount to shit.
just like bob on telegram.
>>
>>109747959
You nailed it, anon. Hyenas understand they cannot compete. Regulators like us need to set the record straight. I have a crazy story to tell about the writer from Project Wingman. The guy is the definition of what you discribe. He came after me a year ago in the same pissy bitch way like he was some big shot that owned the Arcade Air Combat genre and everyone needs his permission to make a game; just because he wrote the script for Project Wingman. I was friendly at first. I knew nothing about him. He starts giving me orders and directives on what I can't do as if he's an authoritative figure and the police. This 5'5 filipino guy from Virginia. I tell him politely that I don't need his instructions and I never hired him as a project manager. And honestly I don't care who he is or care about Project Wingman; which had horrible game critic reviews. He freaks out in my DMs that someone dared deny someone of his supposed status in the community and begins a 8 month long harassment campaign against me at X trying to sabotage the game by flooding the hashtag with "transgender aeroplane penis porn hand drawings" of the characters. He made around 20 porn post. Him and this other tranny guy. So I ran an op and got his name, history, university records and resume. Thats when I discovered he's associated with a domestic tranny cell on the East Coast. Fucking insane right?

I mean come on bro, I'm only having a bit of fun making a Air Combat video game with some free time I have and now I'm involved in a multi-layered filipino-american transgender terror incident. What the heck.
>>
>>109747959
>>109748387
Reminder that this entire meltdown is just because I said "I don't want to read your AI slop"
>>
>>109748402
A reminder that three viewers here have chosen to publicly support me within the past 24 hours in this thread. Only one person half-heartedly supported you. One of us is the equivalent of ten of you... history supports this claim. So, do the math. You are outnumbered, outgunned, and outwitted.
>>
>>109748501
at least two people have called you a fucking retard
>>
>>109748506
That is incorrect. Two people called you a faggot. That's a strong position to take against someone, especially in a thread dedicated to helping fellow enthusiasts and craftsmen working within a similar sphere. They took it anyway, regardless of possible backlash. Stop to think about what that means. Another individual ignored your stupid-as-fuck, boring antics and decided to offer a free assessment on how to improve the graphics of my game. That was a clear shot directed at you, basically telling you to fuck off. Anything else you'd like to add, little punk bitch?
>>
>>109748545
>a thread dedicated to helping fellow enthusiasts and craftsmen
Yet all you've done is flood the thread with a narcissistic meltdown
Maybe you should practice what you preach
>>
>>109740855
What game is this I wanna play it. It looks like the old Air Combat arcade game
>>
>>109748548
Now you're copying my vocabulary in order to appear more sophisticated and deep. I dismantled your one special trick. No you have nothing. You are so used to nobody ever saying anything back, let alone someone like me that fucked you up so easily. Again, another example of why you people are the very "robots" you claim to be fighting against. You have zero on-demand creativity. You work hard to seek out one special trick, then you repeat that one trick until people like me destroy it.
>>
>>109748597
Nothing you say has anything to do with me at all, you're making up a villain in your head and taking them down with some speech I'm sure you think is scathing and epic
A gamedev thread isn't the right place to do this, try a therapist
>>
>>109748570
You are welcome to play, anon. The game is Callsign: Sky Shaker. Yes, good eye! This is an air combat game with a focus on memorable and intense dogfighting battles. We want to make the player experience as awesome as we can.

"We're filming rock 'n' roll." - Director: Tony Scott (Top Gun, 1986) :) RIP
>>
>>109748604
>Nothing you say has anything to do with me at all

I'm happy to see that you're starting to heal. Dissociating yourself from the accusations against you is the first step to beginning a new stage in your life and realizing your old life was perhaps not the best for you.
>>
>>109748682
Go have a mental breakdown somewhere else
>>
File: 1788551806532.jpg (83 KB, 960x720)
83 KB JPG
>>109748682

Am I dissasociated?
>>
>>109748690
Go larp as a rebel on bluesky.
>>
>>109748652
The PC demo for Air Combat was my fav dogfighting sim ever. Simple and action-oriented, retro low poly aesthetic, no million buttons to worry about, it felt way better than all the modern flight sims. This looks like it'll scratch that itch, good job
>>
>>109748695
Maybe directionless, more history is needed to reach a conclusion. lol
>>
>>109748652
Vids on YT say its on Steam but I can't find a Steam page. Pls don't be vaporware
>>
>>109748713
Wow, thank you anon! You discribed the target accurately. We're pushing the limits of the genre at every front.
>>
>>109748750
It'll be available next month. I can send you a copy before that. I need player feedback. hmu
>>
File: chinaman go boom.png (421 KB, 836x626)
421 KB PNG
>watching old 2000s XNA course from 3DBuzz for fun since he's DEAD now
>guy has liveleak in his bookmarks

kino
>>
>>109734984
so whats the point of anything now?
>>
>>109746300
fucking love it, thanks for the report, those beams really shine now
>>
>>109741009
>C++ allows low-level CPU cache optimization, SIMD hardware acceleration, and direct memory alignment

C# can do all of those too. Also fun fact: it was not rust who invented the unsafe keyword to do manual pointer magic but C# in 1997
>>
>manual pointer magic
>>
i have finished a pretty reasonable concurrency backend for a game engine designed around good scaling to big CPUs. Astra-chan xhigh tore me a new one in finding holes in the memory order but fixing the bugs didnt retard performance, not bad

i've gotten to rendering a physics toy using Jolt, designed around the concurrency backend and third party libs sitting in permanent residence while other code can be independently compiled and hot-swapped. im using godot editor for now, with the next milestone making a big level chunked into streamable assets and hammering out a better picture on how exactly open world streaming will work
>>
>>109750416
>just fucking integer addition and subtraction
>>
if you're doing manual pointer magic instead of using typed references and iterators/ranges you're ngmi
>>
>>109752125
i dont like those, feels like unnecessary overhead
>>
File: Fn5zGJs.mp4 (2.17 MB, 854x354)
2.17 MB
2.17 MB MP4
>>109752240
do not become addicted to void pointers. it will take hold of you and you will resent their absence.
>>
I've made a music player/editor that runs in the browser. C++ and OpenGL ES3. Could someone check if the engine runs on their machine? Thanks.

https://sw-dev.itch.io/tracker-window
>>
>>109754446
virus link dont click
>>
>>109754446
nice but if you close the window it gets stuck
>>
>>109752125
my “generics” use voids and sizes but they’re wrapped around typed functions generated from macros for safety. that’s the best way I’ve found to handle generic containers in C

but the default type to a general memory region pointer should be void* for any interface and byte* internally, e.g for calculating offsets for an allocator
>>
>>109754769
use C++ jesus christ
>>
>>109754655
I think that's normal, if it's a black screen. I know I got the program to actually freeze once because of DrawInstancedArrays or something. Thanks for trying it out.
>>
>>109754769
>>109754881
Yeah even the people who tell you to write software in a C style will tell you to use C++. The fact templates haven't been added to C is absolutely retarded as they are just an upgrade to the macro system. You don't get magic purity for ignoring them its just a lot more of a pain in the ass.
>>
>>109754918
C++ is "just an upgrade to C", adding C++ features to C would make it C++
>>
>>109754976
spoken like someone who knows neither
>>
>>109754918
>>109754881
I would sooner write a metaprogram to generate the generics as a compilation step than use C++

I want my designated initializers
>>
>>109754982
spoken like a larping retard
>>
>>109754881
>>109754918
Not that anon but I do it like it was described in this article and the only feature I miss from C++ is operator overloading for vector math.
https://danielchasehooper.com/posts/typechecked-generic-c-data-structures/
>>
>>109755000
>the only feature I miss from C++
You are literally doing a shitty version of templates
>>
>>109755012
templates are already shitty and have their own problems, namely compile time bloat and fucked up error messages
>>
>>109754985
>Designated initializers
You can do that in C++. You don't have to use constructors. You can just zero init your struct and then call and init function.
Thing var = { 0 }; 
var.init();

or if you don't like OOP
Thing var = { 0 };
Thing_Init(&var);

and yes malloc works in C++.
>>
>>109755064
What you're doing is even worse
>>
>>109755076
you can’t do
thing_func(&(Thing){.thing_value = 2});

in C++
>>
>>109755123
you can make the function accept a const ref and it works
>>
>>109755064
>Compile time bloat
You're still paying that cost when you do it through macros as templates are just an easier way to do what your macro was already doing.
>Fucked up error messages
Those messages are pointing out issues with your template. It means your class is incompatible with the template definition and you should review the class or your template.

Templates are worth using because they come with type checks/guarantees, you don't have to deal with stupid alignment bugs and less risk of overflow errors.
>>
>>109754976
You do realize they have updated C since K&R and brought over C++ features before. Templating seems like a weird hill to die on.
>>
>>109755140
really? hmmm, ok. can you make it a regular ref though?

also aren’t designated initializers a super modern feature of C++? like C++23?
>>
>>109755172
>brought over C++ features before
nothing major
>>
>>109755174
those are in from like C++11 or 14, they're really gay tho because you need to initialize shit in order
>>
>>109755148
>You're still paying that cost when you do it through macros
macros don’t have an exponential time cost the way too many templates do. they do have garbage error messages but they are still somehow more readable than template errors imo, but I admit the latter could partially be an experience issue on my part
>>
>>109755177
>Nothing major
Why is templating considered a major feature. It just allows you to do what you were already doing with macros, but with less bugs.
>>
>>109755174
also, why would you want it be a regular ref if the object is read only and destroyed directly after a call?
>>
>>109755218
>Why is templating considered a major feature.
Are you kidding? It's one of the biggest features of C++
>>
>>109755199
>you need to initialize shit in order
lame. I would unironically switch to a memelang like jai but its syntax for the equivalent of designated initializers is only for struct literals, so all initializer values must be known at compile time. I don’t know man, I admit C is lacking but nothing seems to have exactly what I want and it’s a big ask to switch anyway.
>>
>>109755239
You're bikeshedding hard, you are prioritizing the small things that don't matter over the big things that do
>>
File: cpp.png (31 KB, 803x506)
31 KB PNG
>>109754985
>I want my designated initializers
well, lucky you
>>
>>109755221
What is
>object oriented programming
>inheritance
>Namespaces
>Standard library
Bringing over templating doesn't change the nature of C programming it just makes what you were already doing easier. That's why I don't consider it a major feature. If you are already doing what C++ is doing with macros, but worse why not bring over the better solution?
>>
>>109755219
Because I may not want thing_func to only take constants. There may be cases where it changes the struct and cases where it doesn’t
>>
>>109755248
Bringing over OOP doesn't change the nature of C programming it just makes what you were doing already easier
The two big things C++ has over C is OOP and templates. Their OOP implementation is janky as shit so I'd say templates were the biggest C++ feature. Namespaces are a tiny feature and the standard library isn't part of the language
>>
>>109755217
>Don't have an exponential time cost
That's on you. If you don't nest your templates you'll be fine. I'd also recommend just creating object files if you are worried about compile times. That way you're only paying the compile time cost once.
>>
>>109755243
I am prioritizing ergonomics and comfort which does matter to me. I already have a bootstrap compilation step so even if I ditched the hacky macros, using metaprogramming instead of templates is not really a huge deal.
>>
>>109755285
>I am prioritizing ergonomics
Then you'd be using templates instead of macro hacks
>>
>>109755264
>Isn't part of the language
The standard library is literally in the language standard.
>OOP doesn't change the nature of C programming
I don't think very many C programmers were doing inheritance on their structures. I mean maybe a guy who was working with a large tagged union, but I'd say that wasn't the norm of the time.
>>
>>109755308
>I don't think very many C programmers were doing inheritance on their structures
Any sufficiently complex C program has its own adhoc implementation of OOP
Linux for example
>>
>>109755322
>C programs all eventually embrace OOP
If you feel this way then why bother with C at all? I feel like you are making a case to just deprecate C.
>>
>>109755348
>If you feel this way
That's a fact not a feeling
Also I don't use C, it is depreciated, use C++
>>
File: gb.png (18 KB, 428x325)
18 KB PNG
>>109755256
you can have it take rvalue refs. you're larping if you claim you need more.
>>
>>109755368
No, I think you’ve sold me
>>
File: 1765511311426217.png (29 KB, 753x960)
29 KB PNG
>>109755353
>Also I don't use C, it is depreciated, use C++
>>
>>109755368
I only just now had the chance to test this. I didn't realize you HAVE to provide overloads for both lvalue and rvalue versions. That's a ton of pointless boilerplate. Fuck that.
>>
>>109716990
I'm making a small project with Godot because Python (translated to GDscript) is the only language I know.
Is it worth learning C# just to jump to unity along?
>>
>>109759698
Also holy shit, I just realized a 25 line test cpp program compiles in 0.2 seconds with gcc. That is crazy slow. That's like what it takes to compile 10k lines of C. No way in hell I'm using that. I already feel like C compilation isn't fast enough.
>>
>>109759731
uhhh, this is the engine development thread

we don't really use commercial engines in here
>>
>>109759764
you should become as autistic as me and make your own language/compiler
>>
>>109759792
I'm not going to go that far, but something that adds the features to C I want as a preproccessor would give me a lot of mileage for not a lot of effort.
>>
>>109759698
then use a forwarding reference or just take it by value. I don't even know what your usecase is, and why would you want to modify a temporary object.
>>
>>109759807
guess you can make your own compiler or add shit to llvm
C isnt as cancer as C++ to compile
>>
>>109741427
b a s e d
>>
>>109759769
>game and engine dev general
we do both here
>>
>>109760483
sure, as long as your game is made with your engine or you use no engine. we go full autismo around here. enginelets go to >>>/vg/agdg.
>>
>>109760507
>your game is made with your engine or you use no engine
NTA but wtf are you talking about. Any gamedev discussion is welcomed here, no matter if you use existing engine or make your own.
>>
Three.js chads won.
>>
>>109760570
you cant be a chad if you program in js
>>
>>109760631
You can if you just write everything directly in webgl with no gay js frameworks.
Browser itself is already more capable than many game engines.
>>
>>109717245
vibecoded slop
>>
>>109760656
i will concede with you on that then
>>
>>109716990
how do we feel about another game like CoC or TiTS
>>
>>109759764
>compilation time scales linearly
this thread gets dumber every day
>>
>>109760570
I remember heavily considering specializing in this before AI came along, what a mistake that would've been. AI jsut one shots anything JS related nowadays
>>
>>109739309
>why are there so many (libraries that offload resource lifetime management to somebody else) compared to (things that actually have to manage the lifetime of resources)
probably just a coincidence, don't let it bother you, it's definitely not your pet language's fault
>>
File: file.png (183 KB, 1659x1042)
183 KB PNG
from vibe theorizing and testing, i have landed upon an augment to spherical harmonics that seems to add significant value for not much extra cost
>>
>>109763785
posting unedited AI schizobabble is a faux pas
>>
>>109764108
This is the explanation I bequeath to the likes of you after having already hashed out the structure with a sample renderer.
>>
>>109764108
careful don't make fun of him for using AI he'll have another 50 post meltdown
>>
File: file.png (42 KB, 288x231)
42 KB PNG
>>109754881
no!
>>
>>109754985
https://en.cppreference.com/cpp/language/aggregate_initialization#Designated_initializers
>>
>>109764223
Neutered from the C version, can't make use of compound literals to make huge initializer trees.
>>
>>109766181
ay, love me compound literals
love me automatic storage duration

simple as'
>>
>>109766181
https://en.cppreference.com/cpp/language/explicit_cast
I don't know why the fuck sepples is calling these casts and not value expressions or something. but you can nest desginated initializers using them (specifically 7)
let a = A{ .myB = B { .bee = "urself" }};
>>
>>109717245
lmao 700 million tokens daily on a 229€/month subscription for that.
https://x.com/SebAaltonen/status/2096964457750564952
>>
File: img.png (426 KB, 1653x2328)
426 KB PNG
>>109717245
>>109768831
Mine costs $0.
>>
File: example.png (4 KB, 895x533)
4 KB PNG
Hi anons, I came in a time of great need. Sorry to bother you on your journey to create an outstanding game engine (only another 10 years).

Pic shows what I need. Green is some entity, red is some blockage/wall, and yellow is the vision/reachable area. Yellow is what I need help with, this kind of funnel of vision in the grid (very Tibia-like). Consulting the almighty AI, it went for a raycast solution, which is an obvious path. However, isn't there a way to solve that more simply using the grid coordinates calculation itself rather than the whole raycast collision shenanigans?

Diagonal especially seems tricky to me. Also, I just created two examples, it could have more obstacles and stuff. My grid is static, only 8x5, so no need for fancy optimizations. Any ideas how I can solve this?
>>
File: Untitled.png (13 KB, 575x255)
13 KB PNG
>>109770572
Can you precisely describe what makes area reachable? I can't see the pattern here.
>>
>>109770572
Also what do you want the result to be? Do you want a bitmask? Or just want to check if two squares are reachable from one to another?
>>
>>109770572
bresenhams line algorithm might be something to look into it's more tilebased.

also you could just check if the ray moves diagonally and if so check its cardinals for collision.
>>
File: Capture.png (22 KB, 550x557)
22 KB PNG
>>109770650
One of your center lines seems to be the closest, but not quite. But then again, that is why I want to avoid the ray and think more about the tiles. The closer the target gets to the opening, the bigger is the triangular funnel. If I went for the raycast, now I have to deal with the issues you pointed out. For ray, I was thinking of going just center to center. However, for it to work, I would need to consider the size of the collision box for the walls to allow a pattern close to what I imagine. Pic related.

>>109770672
I just need a basic brute force check. The entity is {row: 1, col: 1}, and the target is {row: 5, col: 3}. Is it reachable?
>>
>>109770790
>I just need a basic brute force check. The entity is {row: 1, col: 1}, and the target is {row: 5, col: 3}. Is it reachable?
Just use Bresenham's line algorithm then. You want a ray trace and this is how you raytrace efficiently over a (small) grid.
You can adjust it a little eg by allowing it to skip slim intersections and/or by running it for 4*n points around your source center to get closer to what you have it mind, but on first keep it simple with basic bresenham.
>>
File: 1769574100568189.png (777 KB, 700x834)
777 KB PNG
>>109735954
Now there’s going to be a million mobile slop games a day instead of a thousand. Surely someone is buying all of these.
Also, fixing the character walking into the wooden pillar will cost $500 because you have no idea what’s going on in the code.
>>
>>109734747
>>109734984
>>109735068
I like the idea of it actually creating parts of the model like a human would instead of being a sloppy 3D scanner.
That said, it's gonna be ass if you look closer. For example, the shoreline Astra made is a giant, sand-colored rectangle that doesn't really fit with the rest of the scene. It looks like Fable tried to do something different, but the rest of the scene looks like ass. And this is without even zooming in.
So first you pay the AI merchant, then you have to check every single thing it's done, then you have to fix it yourself or pay more, and it might not fix anything. What a great technology.
>>
Thinking about making my own window/input alternative to SDL3. It’s just an annoyingly fat dependency. Plus it gives me an opportunity to get rid of the C jank.
>>
>>109775230
sounds like a complete waste of time
>>
>>109775230
why? you're going to have to deal with C anyways to handle window/input, except it's going to be even worse since you're dealing with the shitty OS APIs instead. You're just gonna burden yourself for no reason.
>>
>>109775230
Couldn't you just use glfw then?
>>
>>109775230
pointless. this would be all just boring, mindless boilerplate. and a lot of it.
>>
>>109775230
>Plus it gives me an opportunity to get rid of the C jank.
not really, OS API is still in C
>>
File: brave_759abaVyCM.mp4 (583 KB, 870x664)
583 KB
583 KB MP4
>>109770572
In the end, I went for geometry intersection shenanigans. You know what... It is not that bad for my humble little game.



[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.