website code
1k/4k demo framework and examples
This is a set of "intro systems" or, being more accurate, a set of 1k and 4k intro examples, ready to be used. It contains one example for each of the most typical intro scenarios: hardware acceleration, software rendering (pure pixel based), and shader based rendering (no polygons) as well as some simple procedural graphics. None of the examples is especially optimized, as they are expected to serve as example. However, the code code has been build by collecting ideas from many people who do tiny prods, like Auld and those in in4k, as well as from my own testings and experimentation.


Content:
For regular hadware acceleration, both OpenGL and Directx 9.1 examples are available as 4k base intros. There is also three examples for non polygon based hardware acceleration, where rendering is based on a shader. You can find there code to use shaders that you might want to copy to the polygon based examples. Lastly, there is a softare rendering example where a framebuffer is copied to the window. There are also two examples of 4k procedural graphcic prods, one using Opengl shaders and the other using software rendering (full mutithreaded!).


Using it:
Each project has two configurations, Debug and Release. On the Debug one there is no size optimizations, there is more error checks and you can put breakpoints and all that cool stuff. The Release configurations use a lighter startup code, optimice the code and link with Crinkler.

Most projects contain a main.h where you can do some basic setup for the intro, like the screen resolution.


Compiling:
You just need Visual Studio (2013 or 2015). Remember that Visual Studio is free :)


Download:
Click here to get the latest update (01/15/2015) [Optimized shader creeation in i4k_OGLShader]
(previous version was released 01/12/2015) [Added VS2013 and VS2015 support]
(previous version was released 27/07/2010) [fixed sound -thx coda-, added newest glext.h, and tweak for Crinkler 1.2]
(previous version was released 30/06/2009) [VS2008 support, procedural gfx frameworks, and -27 bytes in "accio"]
(previous version was released 26/03/2008) [d3d startup optimized - thx Blueberry]
(previous version was released 28/02/2008) [crinkler removed, code cleaned - thx Auld]
(previous version was released 23/01/2008) [first version]

The package already contains Crinkler in it (created by Mentor and Blueberry), which is the real magic here :)



ProjectCategoty Size (in bytes)RenderingFeaturesSound supportShot
i1k_D3D9Shader1k870shader (HLSL)a 2d gradientno
i1k_OGLShader 1k873shader (GLSL)a 2d tunnelno
i4k_Software 4k944software (CPU)a 2d tunnelyes
i4k_D3D9 4k1214directx 9a 3d cubeyes
i4k_OGL 4k1156opengl 1.1a 3d cubeyes
i4k_OGLShader 4k1406shader (GLSL)a 3d raytraced sphereyes
g4k_Software procedural gfx1513sofware (CPU - multithreaded)ambient occlusionno
g4k_OGLShader procedural gfx923shader (GLSL)mandelbrot setno