Ladies and gentlemen, welcome to a brand new era in lo_mipri. I have officially gone 3d.
It took long enough, eh? Well the perspective projection algorithm had me stumped for a good long while (about 6 weeks) so that kind of slowed things down. But in the meantime i had added support for .obj files and GLSL vertex/fragment shaders to be read in plain text and stored in the resource archive i will be shipping with the program.
It took some time to write code to parse this kind of file ... even though this is fairly simple compared to other 3d object file formats.
So basically what the thing does is reads in a test object file and displays it on the screen. I use WASD and left shift / space to move around, and the mouse to look around. It still needs some help ... i think i have accidentally used a left-handed coordinate system instead of the traditional right-handed one so that will need fixing, and the controls need to be changed so forward actually moves you forward instead of along the X-axis. But it's getting there.
Soon to be added, with any luck, is an actual player hitbox and maybe some collision testing for the walls of the level. I will need a completely new level format since it's in 3d now though. But that's okay ... just takes time.
Inside of the tetrahedron. I think i might use something similar to this for the panorama on the menus, like i did back in 2d.



No comments:
Post a Comment