khotan Posted December 20, 2023 Share Posted December 20, 2023 Hi, I am exciting with new Ultra Engine , many problem here that i want you share : Game run doesn't laugh very well; when creating camera view I don't know which angle is setting ? And Camera cannot be removed ? That all for the moment and so far I was compiling the source in VS 2022 work well with a blank window I will do futher to test more the function from Ultra Engine ^^ Thank you Josh ! You have done a great starting the engine and let us hope to fix that step by step. Quote Link to comment Share on other sites More sharing options...
khotan Posted December 20, 2023 Author Share Posted December 20, 2023 Ok later I modified the source from the base code but with a black window now : #include "UltraEngine.h" #include "ComponentSystem.h" using namespace UltraEngine; int main(int argc, const char* argv[]) { RegisterComponents(); auto cl = ParseCommandLine(argc, argv); //Load FreeImage plugin (optional) auto fiplugin = LoadPlugin("Plugins/FITextureLoader"); //Get the displays auto displays = GetDisplays(); //Create a window auto window = CreateWindow("Ultra Engine", 0, 0, 1280, 720, displays[0], WINDOW_CENTER | WINDOW_TITLEBAR); //Create a framebuffer auto framebuffer = CreateFramebuffer(window); //Create a world auto world = CreateWorld(); //Create a camera auto camera = CreateCamera(world); camera->SetClearColor(0.125); camera->SetFov(70); camera->Move(0, 0, -10); //Create a light auto light = CreatePointLight(world); light->SetPosition(0, 10, 0); light->SetColor(2); //Create ground auto ground = CreateBox(world, 20, 1, 20); ground->SetPosition(0, -0.5, 0); ground->SetColor(0, 1, 0); /* //Load the map WString mapname = "Maps/my_cube.ultra"; if (cl["map"].is_string()) mapname = std::string(cl["map"]); auto scene = LoadMap(world, mapname);*/ //Main loop while (window->Closed() == false and window->KeyDown(KEY_ESCAPE) == false) { world->Update(); world->Render(framebuffer); } return 0; } Quote Link to comment Share on other sites More sharing options...
khotan Posted December 20, 2023 Author Share Posted December 20, 2023 Ok a lot of testing I try to camera->Move(0,5,-10) it works I see the green ground plane ! But for loanding my_cube.ultra doesn't work well though... Quote Link to comment Share on other sites More sharing options...
Josh Posted December 20, 2023 Share Posted December 20, 2023 Upload your map please? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
khotan Posted December 20, 2023 Author Share Posted December 20, 2023 Ok there is a zip for my map, I make simple from the content of Ultra Engine I put a cube, a light and a camera. Hope that you can check whait is the problem ? my_cube.zip Quote Link to comment Share on other sites More sharing options...
khotan Posted December 20, 2023 Author Share Posted December 20, 2023 Testing again, strange it works to load it but I don't see my scene after compiling in VS 2022... Quote Link to comment Share on other sites More sharing options...
Solution Josh Posted December 20, 2023 Solution Share Posted December 20, 2023 The problem is that your camera is pointing the wrong way / wrong position. cam.zip This suggestion can help your situation in the future when I add it: 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
khotan Posted January 25 Author Share Posted January 25 Thank you ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.