MitchellHansen
ed250d1291
Octree works out to 128x128 as is, and performance seems very promising. Traversal or octree generation fixes will be next
7 years ago
MitchellHansen
316293a110
Cleaned up and pulled out some code into Map.cpp in order to start working on the meat of the *Correct* voxel traversal method as explained in the paper.
7 years ago
MitchellHansen
5e9401cd27
Linux build working again, removed the GL_Testing stuff, I'm going to move to Vulkan eventually. Got voxel search working mostly with the new octree changes. Issue with mirroring of voxel data currently
8 years ago
MitchellHansen
04842dd597
It appears that the new generation algorithm works well. The tree structure is intact and the relative pointers look correct. I'll write a validator when I get a chance
8 years ago
MitchellHansen
3596c9094c
Refactoring the generation code to the octree, working on the memory management of the various buffers and trunk
8 years ago
MitchellHansen
b493d56f7a
Removed some extra headers in util, restricted the scope of some others
8 years ago
MitchellHansen
7c534500f6
Cut down a few of the compiler warnings, refactored the octree into its own file. Refactored all map items into their own subfolder
8 years ago
MitchellHansen
2ad7383406
Added a struct to pass away from get_voxel
8 years ago
MitchellHansen
e45df185f7
Cleaned up Map and the Octree. Did some testing and refactoring of generation code. Interleaved data is now good, also changed the block stack dealio to just a blob of uint64_t data. Used a GCC and by extension MSVC extension which speeds up count_bits by a good bit. After all optimizations, getVoxel is now around 10-15 times faster.
8 years ago
MitchellHansen
5e222a0331
Added new demo, tweaked some values to produce better lighting
8 years ago
MitchellHansen
3aaffce566
Refactored and commented the Hardware Caster. Cleaned up many small things
8 years ago
MitchellHansen
50c6d68944
Switched Utils name back. Converted the current debug text over to ImGui.
8 years ago
MitchellHansen
15fb922c27
Had some include troubles, renamed util but need to rename it back to .hpp. Switched the fps counter to run with imgui
8 years ago
MitchellHansen
033e29d9b1
Fixed small ifdef bug, added quick-sfml-templates fps graph
8 years ago
MitchellHansen
0a457f50a6
A decent amount of progress on voxel traversal. Converted most of it to C code to make the CL version easier
8 years ago
MitchellHansen
0c9ef2ae6a
It seems that the octree has been built correctly. Going to use bitset to count children, not sure how I'm going to determine what quadrants they lie in. Perhaps masks?
8 years ago
MitchellHansen
3f0a99a435
getting started on the lights
8 years ago
MitchellHansen
03a7ee43fd
working on a little maze generator for the demo
8 years ago
MitchellHansen
73026bc65d
Very very close to pixel perfect shadows. Having some of that axis switch malarchy slowing things down
8 years ago
MitchellHansen
abec38e7c7
Finally found the root of that off by one error. Changed up the readme.
8 years ago
MitchellHansen
3c91614f45
Working on a messaging system for sf events
8 years ago
MitchellHansen
bb9fab6305
Added lookat function. Fixed various coordinate missmatches and issues. Fixed camera movement. Added some input functions. I need some way to log fps and find those hitches
8 years ago
MitchellHansen
8a9237ce50
Added some debug functions
8 years ago
MitchellHansen
c6ac333232
A decent ways towards getting the octree built. Small snag in the way fully valid or invalid non-leafs are handled
8 years ago
MitchellHansen
5e58ade16f
Modified CMake to now find and link GLEW
...
Slight tweaks to how CMake interacts with VS
Added small OpenGL testing class which draws over the raycasted image
Going to use Gl to start helping with debug / enabling hybrid rendering
8 years ago
MitchellHansen
8c1f18ac70
Software raycasting now works, but has some major problems / is extremely
...
slow. Perhaps it will only be useful in debugging the kernel via emulation
8 years ago
MitchellHansen
d1bd4ce667
The new rendering method now works on the full compat case.
...
Added a kernel to help test opencl data passing
renamed the kernels, buffers, etc.
8 years ago
MitchellHansen
45627e6a85
Whoops, forgot to save the files, same commit as before
8 years ago
MitchellHansen
561c07c602
Turned off experimental phong lighting in the kernel
...
fixed all compiler errors thrown by MSVC
Switched experimental octree map back to the old map
Refactored old map system, prettied it up
8 years ago
MitchellHansen
fe0fbc04e1
little edit to get rid of some cl boilerplate
8 years ago
MitchellHansen
e13280bb07
added relative camera controls, now handles like an actual fly cam.
8 years ago
92aee8c4ca
Would help if I actually added the files
8 years ago
MitchellHansen
6f5d2b2f6f
Changed to non branching algo, sped up a good 30-50 ms at the current max
...
ray dist. Also changed bounds checking a little, not sure if it's faster
8 years ago
mitchellhansen
5dea2494a0
Large amount done. OpenCL is almost completely abstracted out to the class
...
from init to kernel compilation. Next will be getting buffer handling, executing, and reading done.
Changed the kernel to a more minimal example.
Added a jump table for error codes and an assert function for error checking.
Added a routine to compare all the available cl devices and platforms, chooses the high clock of either the GPU or CPU.
8 years ago
MitchellHansen
edd8075afb
Added a quick printout of the hardware info. Running into a problem choosing between platforms, going to abstract CL out into it's own class and hide all that logic
8 years ago
mitchellhansen
c431d7452a
Lighting, testing voxel generation
8 years ago
MitchellHansen
eb889f9937
added header to play nice with macos
8 years ago
MitchellHansen
37ef472f61
More work done on the ray
8 years ago
MitchellHansen
4432c0338b
added the map, switched branches
8 years ago
Mitchell Hansen
624d2771ac
Don't know what is in this one
8 years ago