Update video demo, tweaking my refactor of the maps. Working on downwards navigation in the oct traversal
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user