Jump to content

Josh

Staff
  • Posts

    23,266
  • Joined

  • Last visited

Everything posted by Josh

  1. I think those are the mipmaps, being fed into the wrong position.
  2. I can't find any thread about this issue, but I remember talking about it in last week's meeting. I was able to produce the error in @Andy90's program, but in a new project the error did not occur: Do you think there might be some code you added that could be causing this?
  3. Use mat.GetQuaternion() to get the exact rotation.
  4. Oh, I think I know why. It's pointing straight down, so you activated Gimbal lock.
  5. Strange...you would expect a lot of problems if these functions were off... Mat4 m; m.MakeDir(Vec3(0, 0, 1), 1); Print("Mat4"); Print(WString(m[0])); Print(WString(m[1])); Print(WString(m[2])); Print(WString(m[3])); Print("Quat"); auto q = m.GetQuaternion(); Print(WString(q)); Print("Euler"); auto r = q.Euler(); Print(WString(r));
  6. See void Mat4::MakeDir(const Vec3& dir, const int axis)
  7. 0.9.6 Today's fixes are uploaded...
  8. This would not be too difficult to do, if you just had a hook that got called in the right place...
  9. Can't you just use camera->SetRenderTarget to render to a texture?
  10. I have a collection of 57 high quality rock models I have permission to include with Ultra. However, they need LODs and colliders created. The convex hull / convex decomposition tool will work fine, no need to model new colliders by hand. I also have some trees, some of which can be used as-is, but with many of them we want to try to remodel it using what we have learned recently about making game trees. Anyone interested in working on these? It will work better if you have Unwrap3D, MantisLOD, and maybe Gigapixel AI for some upscaling. The results will be freely available to all Ultra users.
  11. I had to change the way hooks are inserted into the object info. In the next build, this example will work: #include "UltraEngine.h" using namespace UltraEngine; struct MyObject : public Object { int count{ 0 }; static void Hook(shared_ptr<Object> source, shared_ptr<Object> extra) { auto world = source->As<World>(); auto o = extra->As<MyObject>(); o->count++; Print(o->count); } }; int main(int argc, const char* argv[]) { //Get the display list auto displays = GetDisplays(); //Create a window auto window = CreateWindow("Ultra Engine", 0, 0, 1920, 1080, displays[0], WINDOW_CLIENTCOORDS | WINDOW_CENTER | WINDOW_TITLEBAR); //Create a world auto world = CreateWorld(); auto o = std::make_shared<MyObject>(); world->AddHook(HOOKID_UPDATE, MyObject::Hook, o); //Main loop while (window->Closed() == false and window->KeyDown(KEY_ESCAPE) == false) { world->Update(); Sleep(1000); } return 0; }
  12. Josh

    Build 785

    Both issues are fixed.
  13. Okay, I just added a timer that runs when the game is active, so events are continuously being emitted in the editor and it keeps reading the process pipes.
  14. I am seeing something similar. It seems you must move the mouse out of the game window, probably because this is triggering an event in the editor, Maybe the process needs to have its write buffer cleared before it can proceed past a print command...
  15. It looks like the triangle indices are being modified in memory?... I am not seeing anything wrong on an AMD 6600. What GPU is this occurring with?
  16. It's because the FBX file has a child. When multiple objects are selected, the gizmo is placed in the center of the selection bounds. The parent model's pivot is still in the right place. The logic to handle this in an intuitive way is a little tricky. Let me think about this...
  17. Josh

    Third LOD

    The way LOD distances is stored in the MDL file format is a little weird. I am changing this in the next build and this problem will be fixed.
  18. In the current build I am not able to reproduce this error...
  19. 0.9.6 Fixed duplicate mesh layers listed in editor. Fixed map loading when colliders were embedded in file.
  20. 0.9.6 Fixed depth bug with alpha masked materials (requires new shader file) Full build of library and Lua exes. This is the first build that actually supports terrain mesh layer loading from maps. Collision and picking are currently not supported on mesh layers.
  21. Could be useful https://github.com/codetiger/Font23D
  22. Your images are broken links. There was a problem with the depth mask shader not working. I have fixed it. DepthPass_Masked.frag
  23. 0.9.6 Added support for save / load of terrain mesh layers in map file format.
  24. Josh

    Foliage System

    Today's progress
×
×
  • Create New...