AlphaGarg
Max Payne Medley (1, 2, & 3s themes combined)
updated
0:00 - Intro
0:10 - Operation Flashpoint: Cold War Crisis (Recoil)
1:10 - Operation Flashpoint: Cold War Crisis (Sway)
1:52 - ArmA: Armed Assault (Recoil)
3:00 - ArmA: Armed Assault (Sway)
3:53 - Arma 2 (Recoil)
5:02 - Arma 2 (Sway)
6:01 - Arma 3 (Recoil)
7:45 - Arma 3 (Sway)
8:49 - Microsoft PowerPoint
mod: nexusmods.com/skyrimspecialedition/mods/153791
I gave myself a deadline of until the 31st of October, so I've been racing against the glock these past few weeks trying to get as much done as possible and make the editor as usable as possible by that time.
It's clearly no Unity Editor - there's no way to edit animations, no preview for the game camera, no way to edit UIs (yet)... BUT it already lets me do stuff I'd before need to do via code, and thus have to wait for a recompile to see the change, which for things like positions is incredible tedious and time consuming. Now I just drag a janky gizmo, or drag a file onto a thing, or type some numbers, and that's that.
Softbody simulation using XPBD method as outlined by Matthias Müller from Nvidia/Ten Minute Physics (youtube.com/watch?v=jrociOAYqxA)
Not using a fixed timestep (yet?), but even then, this shows the potential of the method. Collision detection with terrain is easily the biggest slowdown here, mainly due to some math and sanity checks being unnecessarily repeated over and over again within the functions I wrote, and you can see that:
1. While not exploding, the simulation clearly breaks due to floating point inaccuracy when at the very edge of the game map. This could be easily fixed by localising coordinates during the simulation/collision detection and translating them back to worldspace at the end, at the cost of having to do additional math. Alternatively, I could use doubles for softbodies and softbodies alone, since rigidbodies clearly still behave correctly even at these far away points, with no overpenetration nor jitter.
2. Due to the terrain height sampler using bilinear interpolation instead of barycentric interpolation, with terrains that have large triangles like in this video, where the terrain cells have a size of 8m in each horizontal axis (the 'blockiness' is due to heightmap resolution, not terrain mesh resolution), sometimes the softbody clips slightly with the terrain. I could remedy this by using the triangle mesh instead of the height sampler, but this could hurt performance a lot, in exchange for very little gain.
3. Since I'm only checking for collision with points, it sometimes looks pretty weird when a smaller rigidbody starts falling 'through' the softbody, as in the case of the car. Running tests on edges would remedy this, but would obviously be more expensive, and the same goes for testing against the softbody's triangles.
4. I haven't been able to implement plasticity yet. I spent a few days trying to get it to work, looked at papers, Wikipedia articles, videos, all sorts of things, but couldn't find an example of an implementation of plasticity in an FEM simulation like this one. Kind of a problem for things like cars or anything else that'd need to stay bent after deformation. I'm sure I'll find something at some point, though.
5. The simulation is currently completely synchronous, and running entirely on the CPU (as is all physics in the engine). This is not great for performance, as you can see sometimes in the video, especially when my CPU starts thermal throttling (laptop moment). Parallelising it would help a ton in making it run faster, either simply moving it to a separate thread, or splitting up the work into different threads, similar to Pezzza's particle sim (youtube.com/watch?v=9IULfQH7E90).
There's a lot more that could be improved, I could go on for hours. But it's 4am and I need to go to bed.
So far only that default skin was ported (used promo art for reference of what bits of gear to keep and what to delete), but porting the others should be pretty trivial. Uploading 7 more mods to the L4D2 workshop, however.. is another story.
Also here you have more examples of how some sounds are heard from far away, mainly some explosions since I think they're pretty cool :)
Basically just some distance-based attenuation combined with reverb and a low-pass filtre, both realtime, and kinda per-source. See, the LPF doesn't impact the reverb's input, so the more LPF I put in, the louder the reverb is compared to the dry output. So even if I don't have *full* control, I at least have some, and hey, I managed to do this. After about 10 hours of tweaking and adjusting little parametres and experimenting with tons of math.
Interestingly, the overall look ended up looking somewhat like what some of you will know is my favourite GoldSrc skybox, morningdew: developer.valvesoftware.com/w/images/c/c8/Morningdew.png
From the thick height fog at sea level, to the smooth, almost natural, but still computer-y look of the mountains.. of course, that computer-y-ness will likely fade as I add textures, both the satellite imagery used for basic coloration and far away vistas as well as detail textures used up close for stuff like grass and rock - like how the Arma series does it, and like I did it in PWR.
Now, first thing you'll notice is.. well probably the clouds and fog and how pretty they are, but also the 'tears', or seams, in the terrain. Even when full res tiles are next to one another, you can still see that seam showing. There's quite a few ways to fix that problem, but right now my solution is to uhh ignore it :))) bigger issues to solve first, like actual collision!
"But Garg, didn't you do terrain collision already, like, 3 times?" yes, and they all SUCKED. This one.. will suck less. My main concern is stuttering, clipping, and thickness/margin/overpenetration.
Previous attempts either had lots of clipping due to using bilinear filters for spaces between samples instead of barycentric filters, or had issues with margins and thickness, as well as floating point inaccuracy, and, most importantly, running out of contiguous memory, since all the collision meshes were generated on startup (bad). This one will use a combination of both for best performance AND best results. Should be good.
Right now, though, I wanna just figure out a way to fix the tears and the light stuttering that's going on here and there. If it's a CPU issue, I just need to parallelise some things I know might be the cause. If it's a buffer issue, it'll be fixed eventually when I add multiple matrix buffers to the rendering pipeline, so that changing the transforms is asynchronous.
God, I feel like such a nerd writing all this :P
Local script launched in an async thread running on a constant while loop.
Bit stuttery due to not always being in sync with player framerate.
Acceleration effects exaggerated for fun.
I'd link the script, but I wanna port it to an 'Draw3D' mission EH first since the while loop is otherwise going to get way more stuttery and ugly in multiplayer. Also it's gonna be part of the Project Zomboidoid mission I've been working on.
WHAT IS THE LORE BEHIND THE HUGE SCRAGS
I NEED TO KNOOOOOOOOOOOOW
No. Mistakes are just a part of the challenge! If the handling was piss easy and the crashing was consequence-less then the game would be boring as all hell. I even have an AI mod to make the AI racers a little tougher to race against, especially on the harder races. Just see how I struggle to keep up with that Porsche during that drift train. Completely different to vanilla where all the AIs move at a snail's pace.
But even unmodded, I much prefer this game to Heat or Unbound. Those games and their Forza Horizon style world design hurts me internally. Barely any urban areas, the ones that exist are just boring grids, and almost every barrier, tree, etc, just.. breaks. You can literally just go offroad; but you never want to, because doing so just means missing checkpoints! So what's the point? Breakable shit like that has no place in a Need For Speed game imho. Go play actual Forza if you like that garbage.
This game doesn't have that, and the road layouts are actually creative. Kind of important for the map to be good in a racing game...
This is just a gameplay video. Might make an edited version with commentary later. Idk. But the game ain't bad. I show my modlist at the very end (DM me on Discord if you want the music mod I made, it's not finished yet so I haven't published it).
mas a glock ainda n cabe 17+1 grrr
pretty handy
I get wanting to sell skins, but yikes on trikes...
I miss the days of CS:S zombie mode/escape :( can I go back in time please
I forgot to unmute the stream, since for some reason Oculus decided it'd be good to have both headset audio and microphone audio be muted by default, and the passthrough cameras are so garbage any screen becomes a white smudge, so the video had zero audio other than the occasional Discord notification.
I also had my save deleted when I lent my headset on New Year to try to be nice, hence why I'm starting from scratch there. Shame, since I had just bought an AR style weapon, kitted it out, and was just about to try it out before work got me too busy to play. This is my first session of the year. I play rather sporadically so as to not let it get old as well as so I don't slack off on my work duties.
I like this game. It's cool. Scary, too - though I'll have to tweak the custom difficulty I set up to increase enemy damage, since as it is they deal far too little damage for the game to be truly engaging. I should not have been able to just waltz into Kolkhoz Zarya's big factory building like I did near the end there while only having the starter Izh and PM. But I did.
Chapters:
0:00 - PM Marksmanship
2:12 - S.T.A.L.K.E.R: Clear Sky
3:18 - Battle 1
5:07 - Fantasizing about improvised blunt melee options
6:07 - Spider thing ambush.. attempt!
6:45 - L O R E
7:03 - Hmm
8:10 - Battle 2
24:09 - Video rendering bug..
25:58 - And it's back. You didn't miss much... don't worry... :(((
Felt like doing this today, did it.
For fun.
Nothin' more.
Yep.
Extracted from game files (Deathmatch music folder)
Game: store.steampowered.com/app/869480/Jabroni_Brawl_Episode_3
steamcommunity.com/sharedfiles/filedetails/?id=2865149876
for real that second test was with 4096 light sources that were sorted by distance on every frame by the CPU and calculating all those distances still didn't even come close to affecting it as much as just iterating through like more than 4 items on the GPU lol cool effect tho right? imagine that but for like a big bomb going off and lighting up the whole sky or just distant lights in a city (the greater the range the further they can be seen from)
I also keep forgetting to mute the music and only notice it later but idc lol
I am working on a game engine using OpenGL that should allow for code made for unity to be translated directly to it with relative ease using a custom preprocessor of sorts. I've also decided to change the game's art style from the medium-poly flat shaded character models and environments to more texture-heavy, low poly, smooth shaded models and environments - something more akin to how older games were rendered, like half-life or counter strike
obviously, I'm still gonna make the game on unity first and foremost, but the plan is, if I can actually manage to get it to a point where it's usable, use the custom engine instead. It'd allow for modding and other stuff that I've always planned but was unable to do due to the way Unity builds projects into series of .asset files
gameplaywise, I wanna make the movement and such more akin to a regular first person shooter, just.. slower. the active ragdolls are cool, and have been a dream of mine ever since gta iv released, but they're expensive, volatile, and a pain to work with, so procedurally animated but otherwise regular characters is a better option
vehicles are still gonna behave the same, though they'll look different. lower poly, with texture details, and with the interior being a separate mesh that's rendered only if you're in it (no openable doors), kinda like project zomboid's vehicles, but with a first person view too. this means I can make the interiors more detailed without having to worry about making the dimensions fit every vehicle I want to add like before
clothes are also going to just be texture layers added to the character models, possibly with a geometry shader to displace stuff like vests a little bit outwards, but not necessarily. that'll make it possible to have different bodytypes and also will reduce drawcalls vastly since every character will be the same number of meshes regardless of outfit
I also may or may not do a gta 3 style segmented body instead of skeletal animations. it'll make dismemberment easier to implement, but I'm still unsure of the performance implications of that - skeletons may be more expensive, they may not be. I'd have to experiment
trees are also gonna be simplified to be diamond shaped in terms of their trunks and look like gta 3 trees in terms of the leaves. this means I can have more trees on screen without it looking inconsistent due to lods
AI I still have no idea what to do about - might end up hiring some bloke to do that part depending on how profitable my side ventures (furry 3d model commissions, regular employment) end up being. or I'll settle for something simple but effective like toupei55's AI, only with squad formations and the like, then use barks (game design term, not necessarily literal barking) to make the enemies seem more intelligent than they end up being. we'll see :| but I am worried
tl;dr: the game is gonna be reworked yet again (third time so far); for the better, again
the first demo I release of this version will be actually playable from start to finish, unlike previous ones which were sandbox-like or had gameplay mostly unrelated to the concept of the game. it'll be cool :)


