Jump to content

SpiderPig

Developers
  • Posts

    2,272
  • Joined

  • Last visited

Everything posted by SpiderPig

  1. The first image in this thread shows LOD3 with no shadows on the right because I disabled them for that model. What I'm trying to say is, should the shadow option in the material properties be removed if its a "per model feature" and not a "per material feature"?
  2. That's what I thought, but the shadow casting is a material property isn't it? Shouldn't shadows be per mesh then? 🤔
  3. I'm slowly narrowing this down. I have conducted tests with the individual models and I am seeing 2x the performance I was in 0.9.4. Maybe 0.9.5 is showing up a bug in my code that wasn't noticeable before.
  4. I'm working on an example for you.
  5. Hmm, I made sure the "position" button is selected and it doesn't work still.
  6. In this video the shadows show the wrong LOD's. You can see at the start of the video that the shadow belongs to a higher LOD of the model then it pops to the billboard shadow. https://www.youtube.com/watch?v=b486UD5LaJA
  7. Oh okay. Yeah, I get the exact same problem. No errors or anything it's just ignored.
  8. I was going to see if this happens for me too but I tried your map file and it didn't load for me. I mean it didn't do anything, it's like the editor ignores it. Is it missing assets or are they included in the file? I don't know how the map system works, I don't use them much.
  9. The attached model has LOD's. If you disable shadows for LOD3, it won't cast shadows if you drag that LOD into the editor by itself, but it will still cast shadows as part of it's parent. In the shot below you can see that LOD3 (a billboard) on the right casts no shadow but half the shadow of the tree on the left has the billboards shadow still.
  10. If you have a model in the editor and then edit it in the model editor - like toggling it's shadow casting ability - upon saving and closing the model editor it will not update in the editor viewports until you move the viewport with the mouse. Should it update when the editor is closed?
  11. Drag this model into the editor and click away from it to deselect it. Then try and select it again and it can't be done. PineLeaves_DIFF.zip
  12. This shot is from the editor. You can see the shadows are not using the alpha masked shader. Also different sections of the shadow use different LOD levels of the model?
  13. The attached model is very dark in the model editor. I don't think the materials are wrong as the model appears ok in when dragged into the editor.
  14. Here's a short video on the unstable FPS I'm seeing. https://www.youtube.com/watch?v=Lm7dVy-pqHM
  15. Don't really see a problem with any of these stats. Besides the FPS that is. It gets down to 90 for a second or two then back up to about 200 for a bit. I wish I could use FRAPS to verify the FPS but it doesn't seem to work with ultra. It decided to work now. FRAPS confirms the FPS is correct.
  16. Honestly all I needed it for was to get a valid material ID, but after all objects are rendered and before post effects sounds like it'll work to me. @klepto2 What do you think?
  17. Yeah I'll take a closer look at those and see what they say.
  18. No geometry streaming. Everything is static with default shaders.
  19. I hate to say it, but I'm seeing it a lot slower overall. Actually, it seems 2.5x slower. These shots are in release. In 0.9.5 I've had to remove the skydome due to some shader errors, and the terrain due to it not texturing. The terrain was replaced with a single plane. So 0.9.5 is doing less work but is a lot slower and the grass don't look as good. Also in 0.9.5 I've seen the FPS fluctuate between 120 and 60 FPS like a seesaw even when the camera is still. Scene in 0.9.4: Same scene in 0.9.5:
  20. Maybe a bug - maybe. In this example I see no change in the FPS between debug and release builds. I get a consistent 500 FPS (+/- 10 FPS). I'm seeing this across a few of my smaller projects. I mean, is debug build just that good now or is release slower than it should be? I would've thought there should be at least a small difference being the debugger isn't running in Release - but I've been wrong before. #include "UltraEngine.h" #include "ComponentSystem.h" using namespace UltraEngine; int main(int argc, const char* argv[]) { //Get the display list auto displays = GetDisplays(); //Create a window auto window = CreateWindow("Ultra Engine", 0, 0, 1280, 720, displays[0], WINDOW_CENTER | WINDOW_TITLEBAR); //Create a world auto world = CreateWorld(); world->SetAmbientLight(0); world->RecordStats(); //Create a framebuffer auto framebuffer = CreateFramebuffer(window); //Create a camera auto camera = CreateCamera(world); camera->SetFov(70); camera->SetPosition(0, 50, 0); camera->SetRotation(45, 0, 0); camera->SetClearColor(0.125); //Sunlight auto light = CreateDirectionalLight(world); light->SetRotation(45, 35, 0); light->SetColor(2); //Create terrain auto terrain = CreateTerrain(world, 512, 512, 2048); terrain->LoadHeightmap("https://raw.githubusercontent.com/UltraEngine/Documentation/master/Assets/Terrain/512.r16"); terrain->SetScale(1, 100, 1); //Create base material auto ground = CreateMaterial(); auto diffusemap = LoadTexture("https://raw.githubusercontent.com/UltraEngine/Documentation/master/Assets/Materials/Ground/river_small_rocks_diff_2k.dds"); auto normalmap = LoadTexture("https://raw.githubusercontent.com/UltraEngine/Documentation/master/Assets/Materials/Ground/river_small_rocks_nor_gl_2k.dds"); ground->SetTexture(diffusemap, TEXTURE_BASE); ground->SetTexture(normalmap, TEXTURE_NORMAL); terrain->SetMaterial(ground); //Create paint material auto rocks = CreateMaterial(); diffusemap = LoadTexture("https://raw.githubusercontent.com/UltraEngine/Documentation/master/Assets/Materials/Ground/Rocks_Dirt_Ground_2k.dds"); normalmap = LoadTexture("https://raw.githubusercontent.com/UltraEngine/Documentation/master/Assets/Materials/Ground/Rocks_Dirt_Ground_2k_dot3.dds"); auto dispmap = LoadTexture("https://raw.githubusercontent.com/UltraEngine/Documentation/master/Assets/Materials/Ground/Rocks_Dirt_Ground_2k_disp.dds"); rocks->SetTexture(diffusemap, TEXTURE_BASE); rocks->SetTexture(normalmap, TEXTURE_NORMAL); rocks->SetTexture(dispmap, TEXTURE_DISPLACEMENT); int rocklayer = terrain->AddLayer(rocks); //Apply material based on terrain slope for (int x = 0; x < terrain->resolution.x; ++x) { for (int y = 0; y < terrain->resolution.y; ++y) { float slope = terrain->GetSlope(x, y); if (slope > 15.0f) { float wt = Min((slope - 15.0f) / 10.0f, 1.0f); terrain->SetLayerWeight(rocklayer, x, y, wt); } } } //Camera controls //camera->AddComponent<CameraControls>(); //Main loop while (window->Closed() == false and window->KeyDown(KEY_ESCAPE) == false) { auto stats = world->renderstats; window->SetText("FPS : " + WString(stats.framerate)); world->Update(); world->Render(framebuffer, false); } return 0; }
  21. The addition of a small header fixed the problem, thankyou.
  22. Oh, I get it now. So just anything that Identifiers my binary format.
  23. I know this is probably not on your list yet, but do you think you'll have render hooks working with OpenGL soon?
×
×
  • Create New...