Hi everyone.
I made a simple 3D engine based on voxels, it can find coloured points in 3d array and display it on 2d surface.
For now it's SLOW AS HELL (Rendering one frame on phenom II x4 3.5Ghz with radeon 6850 takes 8 seconds), but it works, maybe even works good :).
Screen Shot
And i have a favour to people who know math's good, to check maths in this cap, beacause math is not my strong point.
Free to do anything :) .
CAP
Engine
Map Generator
I add a map generator which generates an array with random (1-6) numbers on every point at y=64, map weight is 192 MB, and it takes 256 mb of ram.
Edit:
I changed view range to 256 and i saw... END OF THE WORLD, Rendering took only 29 seconds, very smooth :D , but now im know that maths are good ;).
Some explanations:
You can change view range by changing value in 10 expression
Position is in 3 variables: Position X, Y, Z
Y Axis is for looking left/right
X Axis is for looking Up/Down
FOV is field of view in degrees.
Looking for optimizations (29 secs to render a frame is little too much :/ ), if you know how to optimize it, improve speed, post it, maybe some day it can be used in games (yeah sure, when we have 100 Ghz processor, we must reduce rendering( rendering, TAKING A PHOTO BY 100 YEARS OLD CAMERA ) time from 29 secs to at least 100 ms :/ ).