Re:A Tiny Wolfenstein-Like Software Engine
by voltagex_ on Tuesday March 06, 2018 @10:50PM
(#16534125)
SDL2 is the API
[ Parent
| on HN ]
True, I guess I meant a rasterization library. It looked like they were mostly using SDL2 for interfacing with the OS and blitting to the screen.
(and to be more specific I really meant without opengl|directx|vulcan etc)
Re:A Tiny Wolfenstein-Like Software Engine
by white-flame on Wednesday March 07, 2018 @01:31AM
(#16534646)
Given that the original game predated those sorts of systems hitting consumer desktops by years, it shouldn't be surprising at all. This is what early 3d games & software rendering did before accelerators came along, and as CPUs got faster in that interim there were plenty of fully polygonal software rendered engines as well.
Interesting how meaning changes. Back when Wolfenstein was made, "without a graphics API" just meant
mov ax, 13h
int 10h
Re:A Tiny Wolfenstein-Like Software Engine
by Gnurou on Wednesday March 07, 2018 @06:54AM
(#16535803)
... and even there you were using a graphics api, provided by your video card's bios and compatible across various manufacturers.
Re:A Tiny Wolfenstein-Like Software Engine
by Koshkin on Wednesday March 07, 2018 @08:55AM
(#16536303)
Not really - you'd be mostly just writing into the video buffer.
Re:A Tiny Wolfenstein-Like Software Engine
by TickleSteve on Wednesday March 07, 2018 @12:09PM
(#16537812)
int10h is the API (BIOS)... that just causes the mode switch.
What he really meant (direct RAM access):
void putpixel_13h(int x, int y, int color)
{
_farpokeb(_dos_ds, 0xA0000+y*320+x, color);
}
Re:A Tiny Wolfenstein-Like Software Engine
by Koshkin on Wednesday March 07, 2018 @01:21PM
(#16538498)
Yeah, but nobody does that.
Re:A Tiny Wolfenstein-Like Software Engine
by pedrow on Wednesday March 07, 2018 @10:47AM
(#16537156)
I wonder how many polygons make up a level of Wolfenstein in total - i.e. if you just asked a modern GPU to render every single wall in a level and relied on it to do the z-order sorting, culling, etc., what frame rate would you get?
Re:A Tiny Wolfenstein-Like Software Engine
by animal531 on Thursday March 08, 2018 @07:34AM
(#16543945)
I'd guess that if you were to triangulate an average map it might have probably been only in the region of 1-10k triangles.
Modern graphics cards on the other hand can easily push a few million triangles every frame with decent framerates. At 10k triangles * 10 or 20 maps you could load all maps from the game simultaneously and still easily get decent fps.