添加模型文件
After Width: | Height: | Size: 856 KiB |
After Width: | Height: | Size: 898 KiB |
After Width: | Height: | Size: 1.0 MiB |
After Width: | Height: | Size: 314 KiB |
After Width: | Height: | Size: 653 KiB |
After Width: | Height: | Size: 518 KiB |
After Width: | Height: | Size: 321 KiB |
After Width: | Height: | Size: 412 KiB |
After Width: | Height: | Size: 275 KiB |
After Width: | Height: | Size: 306 KiB |
After Width: | Height: | Size: 349 KiB |
After Width: | Height: | Size: 1.5 MiB |
After Width: | Height: | Size: 134 KiB |
After Width: | Height: | Size: 702 KiB |
After Width: | Height: | Size: 510 KiB |
After Width: | Height: | Size: 508 KiB |
After Width: | Height: | Size: 545 KiB |
After Width: | Height: | Size: 1.0 MiB |
After Width: | Height: | Size: 332 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 361 KiB |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 201 KiB |
After Width: | Height: | Size: 762 KiB |
After Width: | Height: | Size: 754 KiB |
After Width: | Height: | Size: 825 KiB |
After Width: | Height: | Size: 391 KiB |
After Width: | Height: | Size: 767 KiB |
After Width: | Height: | Size: 803 KiB |
After Width: | Height: | Size: 825 KiB |
After Width: | Height: | Size: 667 KiB |
After Width: | Height: | Size: 538 KiB |
After Width: | Height: | Size: 535 KiB |
After Width: | Height: | Size: 604 KiB |
After Width: | Height: | Size: 204 KiB |
After Width: | Height: | Size: 1010 KiB |
After Width: | Height: | Size: 475 KiB |
After Width: | Height: | Size: 747 KiB |
After Width: | Height: | Size: 557 KiB |
After Width: | Height: | Size: 1010 KiB |
After Width: | Height: | Size: 390 KiB |
After Width: | Height: | Size: 2.3 MiB |
After Width: | Height: | Size: 552 KiB |
After Width: | Height: | Size: 560 KiB |
After Width: | Height: | Size: 506 KiB |
After Width: | Height: | Size: 628 KiB |
After Width: | Height: | Size: 1010 KiB |
After Width: | Height: | Size: 682 KiB |
After Width: | Height: | Size: 586 KiB |
After Width: | Height: | Size: 825 KiB |
After Width: | Height: | Size: 274 KiB |
After Width: | Height: | Size: 559 KiB |
After Width: | Height: | Size: 650 KiB |
After Width: | Height: | Size: 295 KiB |
After Width: | Height: | Size: 500 KiB |
After Width: | Height: | Size: 637 KiB |
After Width: | Height: | Size: 608 KiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 254 KiB |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 519 KiB |
After Width: | Height: | Size: 102 KiB |
After Width: | Height: | Size: 852 KiB |
After Width: | Height: | Size: 354 KiB |
After Width: | Height: | Size: 404 KiB |
After Width: | Height: | Size: 379 KiB |
After Width: | Height: | Size: 1020 KiB |
After Width: | Height: | Size: 594 KiB |
After Width: | Height: | Size: 9.1 MiB |
After Width: | Height: | Size: 951 B |
After Width: | Height: | Size: 4.0 MiB |
After Width: | Height: | Size: 193 KiB |
|
@ -53,16 +53,24 @@ int MainWindow::exec()
|
|||
std::string modelFilePath;
|
||||
//modelFilePath = "E:\\3D Objects\\plane\\obj\\plane.obj";
|
||||
//modelFilePath = "E:\\3D Objects\\plane\\plane.gltf";
|
||||
modelFilePath = "E:\\3D Objects\\vampire/gltf/vampire.gltf";
|
||||
modelFilePath = "Models/vampire/vampire.gltf";
|
||||
//modelFilePath = "E:\\3D Objects\\cup\\cup.gltf";
|
||||
//modelFilePath = "E:\\3D Objects\\Sponza\\Sponza.gltf";
|
||||
|
||||
auto actor = std::make_shared<Actor>(modelFilePath);
|
||||
actor->setRotaion(glm::angleAxis(glm::radians(-90.f), glm::vec3(1, 0, 0)));
|
||||
auto sponza = std::make_shared<Actor>("E:\\3D Objects\\Sponza\\Sponza.gltf");
|
||||
auto actor2 = std::make_shared<Actor>(modelFilePath);
|
||||
actor2->setRotaion(glm::angleAxis(glm::radians(-90.f), glm::vec3(1, 0, 0)));
|
||||
actor2->setPosition({ 1,0,-1 });
|
||||
auto actor3 = std::make_shared<Actor>(modelFilePath);
|
||||
actor3->setRotaion(glm::angleAxis(glm::radians(-90.f), glm::vec3(1, 0, 0)));
|
||||
actor3->setPosition({ -1,0,-1 });
|
||||
auto sponza = std::make_shared<Actor>("Models\\Sponza\\Sponza.gltf");
|
||||
sponza->setScale(glm::vec3(2));
|
||||
World world;
|
||||
world.addActor(actor);
|
||||
world.addActor(actor2);
|
||||
world.addActor(actor3);
|
||||
world.addActor(sponza);
|
||||
|
||||
auto [minPos, maxPos] = world.getAABB();
|
||||
|
|