Update video demo, tweaking my refactor of the maps. Working on downwards navigation in the oct traversal

This commit is contained in:
MitchellHansen
2017-10-18 22:10:31 -07:00
parent c35f867c76
commit 3f09515c0a
7 changed files with 131 additions and 48 deletions

View File

@@ -29,10 +29,14 @@ bool Application::init_clcaster() {
map = std::make_shared<Map>(MAP_X);
sf::Image bitmap = map->GenerateHeightBitmap(sf::Vector3i(MAP_X, MAP_Y, MAP_Z));
map->ApplyHeightmap(bitmap);
map->octree.CastRayOctree(sf::Vector2f(1.5f, -2.0f), sf::Vector3f(5.0f, 5.0f, 5.0f));
raycaster->assign_octree(map);
raycaster->assign_map(map);
// Create a new camera with (starting position, direction)
camera = std::make_shared<Camera>(
sf::Vector3f(50, 60, 10),