[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: DX6.jpg (13 KB, 447x447)
13 KB JPG
Making Retro Engines with DirectX6 SDK

/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
>>110369971
>>
File: win98.jpg (52 KB, 354x359)
52 KB JPG
>>110430138
I wonder if emulated 86Box will do for deving? I mean it runs Direct3D test
>>
File: dx3.jpg (112 KB, 827x1000)
112 KB JPG
>not directx3 on win95
>>
>>110430183
>>110430215
wtf is this autism
>>
is making a game on HTML5 canvas and with javascript considered engine dev?
>>
>>110430568
not really
>>
>>110430568
If you do not use any game libraries and make it general purpose, then yeah it can, especially if you use webgl.
I made a shmup/danmaku game in js and I had to implement sprite atlas generation/parsing, dynamic music system, schedule based npc/entity system, animations, rendering layers, post processing, etc. It wasn't all that different from making a game engine based on SDL for example.
>>
File: dmengine_8vaiikGk9x.mp4 (149 KB, 982x720)
149 KB
149 KB MP4
Damn slopes, man. How can I even start tackling this particular case?
>>
>>110431133
Maybe I should just be sneaky and start checking if the character has done any meaningful movement. Even though it is kind stuck there because none of my probes detect the slope, since it is not touching ground either, it is like the character is falling, so it has gravity/velocity Y. If it has descent movement, it is not touching ground, and its position is not changing, then I should just have some conditional to deal with it.
>>
>>110431133
What's the shape of your player collider?
>>
>>110431133
https://www.metanetsoftware.com/technique/tutorialA.html
>>
>>110430138
Thoughts on just writing a rasterizor in JavaScript with canvas 2d instead of real OpenGL + glfw in cpp.
This is for some shitty game.

I ASK because do people give a fuck about web page games? The interface for web page games are disposable and shitty. Some games are nice to full screen and be native.

Even if it’s in electron + has proper resizing maybe that’s still something people don’t like

Thoughts? Mainly is native windowing always better if you want to play a game. Is a visual novel
>>
>>110431556
The character is a simple box collider.

>>110431679
Will check it out, thanks.
>>
>>110431912
If it's just a box then standing on an edge like this shouldn't be a problem.
Where is the problem exactly? Is it just the animation?
>>
File: dmengine_fae9FiJdCk.mp4 (303 KB, 640x360)
303 KB
303 KB MP4
>>110431957
Basically I want it to slide towards one of the sides, not stand there. The collision works, but my probes used to check if the ground is flat or a slope fail, since the ray would have to be aligned pixel-perfectly with the one pixel of contact with the slope terrain (the apex of the triangles). And there are two, so it contacts both slopes. As of now, I just solved it by forcing a longer ray probe when the character is not making meaningful movement, but I'm still exploring ways to elegantly detect slopes and make the character slide.
>>
>>110431133
From my limited and bloody experience with aabb's and circles this looks like one of those ever present edge cases involving more than 1 viable translation vectors.

Simple example is if two squares overlap along the corners such that translation vector's x==y: whether you resolve along x or y or both depends on your intent. In your case it appears it's defaulting to both so the character gets perpetually stuck at a previous position.

Throw an if check somewhere to catch those cases and have it return just the x component.
>>
File: images.png (3 KB, 447x447)
3 KB PNG
one word. LiteNetLib
>>
File: 1633145219183.jpg (134 KB, 700x690)
134 KB JPG
I love maps and grids and chunks. I keep coming up with neat little optimizations for accessing data in them.
>>
>>110432062
Usually you'd use capsule collider or add some arbirtary force to keep player of this sort of edges.
>>
I hate when someone uses var's in C# can you stop doing that?
>>
>>110432062
>>110431133
You want a thin box collider, about half the width of the one you have, and having it push the side would feel awkward, most platformers would let you stand there
But if that's really what you want you should probably use a capsule collider, and if there is no ground directly under the player using a raycast then the player doesnt count as standing
>>
>>110433954
>most platformers would let you stand there
Wait, really? To be fair, most of my references do not even seem to use slopes this way. And some games aren't tile-based... Or at least, not in an obvious way, so I am not sure if they have cases of diamond platforms. I need to check some more games.
>>
>>110434520
How permissive your movement system is really depends on your game design. 2D platformers typically use box colliders, and box colliders let you stand on places like that
3D platformers typically use capsule colliders and capsule colliders would slide off
Either way, dont use a box and attempt to push the player off, because that would feel awkward
>>
>>110430183
As someone who did that recently because I needed MSVC6, it works but since it maxes out at like a P2 500MHz and even then it's murder on your Ryzen to emulate that, the experience is less than you'd like for a 90s dev machine. Also you'll be more hamstrung than a real 1990s developer would be since you can't access much of the internet from your 98 VM.
>>
>>110431133
How sophisticated could the box get? Can you detect the collision, then frame by frame calculate the angular momentum generated if its collided with something smaller than it? (In other words, figure out what direction to slide the character, and where to put the feet in the animation during the slide?) Seems like turning off gravity instead of leveraging it to your advantage seems like the source of the weirdness.
>t. uneducated noob
>>
>>110435299
You're posting literal gibberish
>>
File: 1739095749021466.jpg (219 KB, 1170x1457)
219 KB JPG
order of the sinking star sure runs poorer than you'd expect for being written in a language that is "frictionless and doesn't get in your way and allows programmers who know what they're doing to do it"
lol
>>
>>110435487
I just realized that the guy in here was literally just parroting what Jonathan Blow said about his own language
>>
>>110435487
Lol'd with the meme.
>>
>>110435523
It might as well be the blowjob himself.
>>
>>110435299
Not sure what you meant (especially the gravity part), but I do believe we can do a lot with the boxes and physics calculation, especially because it is kinematic, so all physics resolution is on my hands.
>>
I tried vibecoding. I didn't like it. I'll stick to the old fashion way.
>>
>>110435471
If you can't interpret and correct, you have no reason to post.
>>110435577
By gravity I misread your original question, which said "so it has gravity/velocity Y" to be it does NOT have... My bad. My thought went to both feet being attracted to the next ground they expect to hit and checking if there's a Y value difference between the two. Then you can tell prior to landing what should happen, in the absence of player input at least, on pretty arbitrary surface geometry.
>>
>>110437593
There's nothing to correct, you're not saying anything that makes sense
>>
Why doesn't everyone write their shaders in slang?
>>
>>110437695
My shaders are simple enough for GLSL.
In the more complex project I used wgpu so wgsl/wesl made more sense.
>>
>>110437695
Because people are used to GLSL, so they just use GLSL. There are those who are new to shaders, and they'll still use GLSL because that's the only one with good tutorials for beginners.
>>
>>110437695
>Why doesn't everyone write their shaders in slang?
Astroturfed shite by Nvidia and Google employees trying to kill HLSL to take control of the ecosystem, all while larping as the savior of offline build pipeline. In practice, the extra meta is junk and adds more friction from shared H files and modern HLSL extensions.

I'm sure everybody is clutching to try out a brand new meme shitlang, all for the sake of what? Abandoning decades worth of mature transpilers? Some shiny syntactic sugar that's going to get compiled away anyway? wowe we can pretend to have OOP goop!!! Thanks Google and Khronos "we dont even have funds for a compiler team".

Literally the only reason it gets shilled is because troon-lang and their troon-webshitting counterparts failed to writing a transpiler for their ever changing WSGL specifications. Slang is the only thing they can use besides WebGL's GLSL targeting late D3D9 feature sets. That and there's a lot of sanfranscatco money in killing HLSl despite the wishes of the industry.
>>
>>110438494
I seriously hope you were lying about being an employed engine developer because you sound utterly mentally ill and terrible to work with
>>
>>110438732
Are you new to 4chan? Learn to just ignore these guys.
>>
File: 1572853211189.gif (1.28 MB, 300x300)
1.28 MB GIF
>Game engine development
>Game engine
>Game
>engine


Anon, we are in 2026 and you're still trying to reinvent the wheel, game engines will not exist anymore in 2 or 3 years from now the AI will be so performant that you can generate your engine in one day with a few prompts, not even kidding, why are you wasting your time instead of learning more valuable skill or developing an actual working game/engine that is meant for your game design?

Not trolling, genuinely curious why are you all trying to develop an engine in the era where it's no longer necessary and even multimillion professional studios are conforming with Unity or Unreal?

The last studio in date that I know of who uses their own proprietary engine would be IO interactive and these faggots have never released Glacier to anyone that I know until some Russians stole it.
>>
>>110439409
>game engines will not exist anymore
>you can generate your engine
???
>>
>>110439416
What I meant is that big scale dedicated "game" engines with expensive subscription fees, won't exist anymore by then.
When I was in college I would code an engine to generate dynamic light on a 2D isometric pixel game using normal mapping and ambient occlusion.
This monday I did it again in one day...

Look at Unreal Engine and how vaste the actual software is, right now it is being used for so many things other than just video games, it's bound to be converted into a fully fledged software for animators, developers or researchers.
>>
>>110439440
>What I meant is that big scale dedicated "game" engines with expensive subscription fees, won't exist anymore by then.
The point of this general is not to make such engines? At least not for me. I just want to make my own game without any 3rd party engine. Also, I don't think you realise how much of propriety game engines use insider information that LLMs have no idea about.

I also don't think vibing would be saving me time in the long run. If I make my own engine that I understand in and out, I'll save more time in the long run, and probably would make a better product. Making your own engine also allows you to discover stuff as you naturally start asking questions and sources of problems. The biggest one being color spaces for instance. LLMs don't understand color, and few people on the internet talk of accurate colors. Photoshop still does math on sRGB values for fuck's sakes. Most non-Apple displays apply gamma2.2 on sRGB values. I bet a vibe coded engine wouldn't even think to support colorspaces other than sRGB or providing tests to determine whether the monitor uses gamma2.2 or sRGB. I had no idea about colorspaces when developing my engine, but I naturally started asking these questions when thinking what to do with my final float values.
>>
>>110439840
>propriety game engines use insider information that LLMs have no idea about.
There are no secrets in engine dev
>>
>>110439840
an LLM absolutely knows about color spaces
>>
>>110439858
>an LLM absolutely knows about color spaces
Read what I said but slowly this time.
>>
>>110439948
You said an LLM wouldn't think of it
It would, it understands color spaces completely
>>
>>110439853
Tell me how Nintendo makes the fog, and CSGO makes the smoke grenade.
HINT: don't quote me an sdf paper that wouldn't work on a nintendo switch 2, or can't be exploited by other players to tank the performance for everyone else.

>>110439973
>You said an LLM wouldn't think of it
It wouldn't unless you tell it to. And you only would if you understand colorspaces to begin with.
>>
>>110440091
>CSGO
CS2
>>
>>110438732
He is just a schizo.
>>
>>110440091
CS2 just uses a shader?
>>
>>110440091
they are just voxel based volumetric clouds rendered at quarter resolution and bullet holes are just projected density textures
>>
>>110435129
yeah I was researching this more yesterday and figured out it's just a not a good idea
>>
>>110430215
DirectX3 was dog-shit, like super fucking shit
>>
>>110431133
http://higherorderfun.com/blog/2012/05/20/the-guide-to-implementing-2d-platformers/
>>
File: var.png (8 KB, 256x119)
8 KB PNG
>>110433681
I do it all the time
>>
>>110439409
>why are you wasting your time
BECAUSE WE WANT TO. I don't understand what the fuck is wrong with you AI faggots that you can't see the value of doing something yourself instead of having some clanker do it for you. Does your mother still wipe your arse when you take a shit, or do you see the value in doing that yourself?
>>
>you are wasting your time writing your own code!!!11
>claude, put mario in sonic so I can post a 5s clip on twitter and never use it again, make no mistake
>>
File: dmengine_T6JT0Bpfs8.mp4 (1.34 MB, 954x604)
1.34 MB
1.34 MB MP4
The collision box is far too thick. Though, there is only so much I can do for corners, especially if the art I made doesn't cover the full tile. I could make custom corner-collision meta tiles (all my collisions are already tiles placed by hand), but I am not sure if I want to deal with that for now.

>>110442754
Thanks, I will give it a read!
>>
File: out.mp4 (103 KB, 760x568)
103 KB
103 KB MP4
>>110443451
You might want a separate animation for standing near the edge. If you tilt the character you can hide the fact that it's box collider only stands on a slim strip of a platform.
But also, these corners are way too round for a 2d platformer imo.
>>
>>110443531
That is a nice solution, indeed (also, I remember that game!). And you're right about the platforms. Well, it is still exploration territory, so I can imagine I will iterate the art many times.
>>
>>110443451
rounded corners in a platformer would feel annoying to play with
unless they were some gimmick where they make you slip off
>>
>>110443451
I don't do platformers but when I did a test run I used 3 equally spaced contact points on the bottom of the rect when dealing with ground: less than 2 touching and it counts as falling.

Looked iffy though as the collider pushed the rect outside of the wall on the next frame.
>>
>>110440442
WOW!

>>110440493
>projected density texture
Wouldn't work if looking at the holes from a different direction.
>>
>>110440091
There's a difference between not knowing something and it being a secret
Any gamedev technique you can learn if you do the appropriate research
>>
>>110445345
Holy shit stop arguing about semantics like a woman. Point is you can't implement it unless you either rediscover it or work in these companies.
>>
>>110446044
Yes you can, you can google the fucking whitepaper or ask AI
>>
>>110431133
>>110432062
>>110443451
Why not use ovoid / rounded up bouncing box?
You will glide easier that way.
>>
>>110446056
If it's so easy why don't you tell me.
>>
Metal is the best graphics API and I am tired of pretending it's not.
>>
File: claude.png (147 KB, 796x834)
147 KB PNG
>>110446240
>>
>>110446255
>cloode divulging game engine insider secrets
w t f. It's godover for gaming companies..
>>
>>110446255
This is not what valve uses. This would tank the performance as the number of bullets increases. You can test it yourself using nsight or whatever, that Valve does not use this method. They somehow use bullet hole texture mask. But if you simply use a texture mask it would only look correct from the direction you shot it.
>>
>>110446713
>This would tank the performance as the number of bullets increases
No it wouldn't
>>
>>110446732
https://youtu.be/ryB8hT5TMSg?t=1674
>>
>>110446746
The map is voxelized and the smoke comes from voxels (you can even see it in this trailer https://www.youtube.com/watch?v=kDDnvAr6gGI) but the bulletholes look like an overlay like you said because they're a higher resolution than the smoke voxels
So they just build some 3D or 2D texture based on the bullet trajectory that subtracts from the smoke
>>
>>110443451
idk if its stupid or not but can't you just introduce a tile tag? Tag it as a corner maybe do it for each direction and then you know it when doing collision.
>>
>>110446252
nah it's DirectX
>>
>>110442754
>insecure http
>>
How long would it take Claude to reimplement super metroid in Godot? That game has the best slope physics of all.
>>
>>110447170
just learn how to program a basic 2D platformer movement it's really not hard
>>
>>110447178
but a much more useful skill is to learn how to prompt claude. with your suggestion i can only make 2d platformers, with my suggestion you can solve the riemann hypothesis AND create a 2d platformer
>>
>>110447195
prompting claude isnt a skill



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