Hello all, thought I'd share with you all what I'm working on...
The installer is a self extracting .rar (saved a megabyte by using rar instead of zip) It appears to be a professional installer, fear not, it adds no registry values or the requirement of 'properly uninstalling' it. Just delete all the files when you are done.
mDeformDemo.exe - 1.59mb
*from the readme*
This is a program showing the way my entry in the DB Remake Competition will have matrix deformation and matrix loading.
The image matrixScape.bmp is just a 50x50 pixel bitmap representing the height values of the different tiles of the matrix. You can change the number of pixels in the bitmap so that the values are always less than 140 when combined. It *should* work but I haven't tested that yet.
After the height values are set, I check in the middle of every tile what the height is at, and texture it accordingly. The image mtexture.bmp starts off at the lowest end to the highest.
Unfortunately as of right now the number of tiles has to be hardcoded in the program. But when all is said and done, you could have a hundred images tiled together ranging from the lowest to the highest, and the program would automatically determine which tile to use depending on the height of the center of the matrix tile.
I hope that all makes sense.
The third part of this program you will see is a little box that moves around.
At random times the matrix will cave in under it, this is to show you how the matrix is deformed when a "blast" will hit.
If the blasts are near the edge of the matrix, they will wrap around to the other side. In the future I want to add multi-matrix support by coding in which edge of the matrix goes to which other edge of which other matrix.
As of right now nothing happens to the texture when a blast is rendered, but in the end the texture would be replaced with a scorched counterpart.
All of the parts in this program are self contained in functions, while some header information, such as globals and TYPES will need to be placed at the top of the program. There are only two functions needed to use this library, a make matrix function, and a blast matrix function.
The full library will be released for anybody's use after the competition has ended.
-----to run it----
You will start off in the lower corner, but if you move your mouse cursor up and to the right, you will see where you need to go to see this in action.
Use the mouse and the up and down arrow keys to navigate.