0 Members and 1 Guest are viewing this topic.
Now that I think about it, 3D snake would be too easy.
UPDATE! I made some progress on nGL and made another demo (which is again, not intended to be "played"): crafti!Changes:Faster! A lot faster, actually. I can't tell any numbers, but with large triangles it went from slow to smooth Interpolating colors between vertices, which is actually slower than textured renderingPrefixed functions with ngl (for example nglInit)Something like vertex arrays (nglAddVertices)Wireframed renderingDoesn't crash anymoreSome documentationClipping! (X: Per pixel Y: Per line Z: Per triangle)Todo:Colored textures (non-interpolated)Compressed textures (zlib). nGL doesn't lose performance with higher-resolution images, they just get too big in raw formatMake a real, playable, good looking game which uses nGLFPS counterIt looks a lot better on the emulator and on calc than these gifs (byzanz-record is crap):(The emulator runs at 90% speed here, I accidentially hit F9)The textures used aren't mine this time, terrain.png came from http://www.planetminecraft.com/texture_pack/fancycraft-by-jjjas0n-64x64-version-100.Also, the controls (same as nGL in the first post) are a bit weird to use on a PC so the twitches you see are just my fingers finding the keys.It's a bit slower on calc than on the emulator, I suspect it's the touchpad polling every frame, but if that get's a real issue, I'll take care of that.If you want to use nGL, grab gl.cpp, gl.h, fastmath.h, fastmath.cpp, fix.h and don't forget to read gl.h and #define SAFE_MODE in gl.h!
Do you think this engine would be powerful enough for a Minecraft game? Chockosta made one in Lua with no textures but it ran at 10 FPS at 230 MHz, even if it only rendered stuff within a three tiles radius.