Jump to content

Josh

Staff
  • Posts

    23,137
  • Joined

  • Last visited

Everything posted by Josh

  1. Since you are adding a fixed amount to the current frame each time, I think you will need to multiply that by the speed to handle differing framerates.
  2. No pressure, I am just observing its wonder and awe
  3. Actually, you can use Script:Draw if you keep track of the timing. Then the animation only gets updated when the entity is drawn. Ultra is so much simpler in some aspects, it just has Update().
  4. Josh

    Project Packager

    @AlienheadYes https://www.ultraengine.com/learn/LoadPackage?lang=cpp https://www.ultraengine.com/learn/Package_SetPassword?lang=cpp I mean no, it is not out of the question....
  5. In Ultra Engine, meshes have a name...
  6. I think the one-shot animation issue is something I only discovered in the Ultra code that carried over from Leadwerks. The best thing to do here is control the animation frame by setting it in each Update call. You can set the exact frame time of an animation with Entity::SetAnimationFrame
  7. Josh

    Project Packager

    The big title text looks good. Nice interface. The only suggestion I would make is to try centering the Build button.
  8. Josh

    Selection Outline

    There's already an Entity::SetSelected method, but it doesn't really do anything. The next build will include a post-processing effect that outlines selected objects like this.
  9. Josh

    Selection Outline

    This worked perfectly on the first try. I think I am a good programmer.
  10. Why in the world did they design it like this?: "KHR_materials_variants" : { "mappings": [ { "material": 2, "variants": [0, 3], }, { "material": 4, "variants": [1], }, { "material": 5, "variants": [2], }, ], When what they really meant was this: "KHR_materials_variants" : { "mappings": [2, 4, 5, 2] },
  11. It looks like the material variant feature is supported in the official Blender exporter. https://docs.blender.org/manual/en/3.4/addons/import_export/scene_gltf2.html#gltf-variants You might want to look into that and see how it works. And here is a sample model using the feature: https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/MaterialsVariantsShoe It looks like this is the right way to go.
  12. Actually using a 3D texture would be a really bad idea because the mipmaps gets blended together on the Z axis as well, so the separate skin mipmaps would start to bleed into each other...scratch that.
  13. Here's a 3D texture in the editor. You can scroll through the layers and view each slice, so 3D textures aren't (figuratively) opaque any more they used to be. There is some per-object scrolling stuff in there, which could handle both animation and skin switching. However, I might have had to make room to fit a lightmap index in...I will need to revisit this and see what can be done.
  14. There's something like that here: https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_variants/README.md I don't know what applications support it or how it would fit into the rendering pipeline yet...
  15. Josh

    Editing Embedded Textures

    This shows how textures embedded in a 3D model file (glTF or other) can be viewed and edited. The design is flowing really really well now. Notice the window title says this file is "DamagedHelmet.glb" so when you make any changes to the texture, the GLB file is considered modified, and the window will prompt you to save your changes before closing.
  16. I added a field that lists all the texture file formats used so you can tell at a glance whether the glTF is optimized or not.
  17. Extending the combobox usage to add a field for the mesh material works out better. You can jump to the material, select a new one, remove it, and browse for a file, within a very simple interface.
  18. In practice you don't really want to use .glb with embedded textures because you will want to convert your textures to DDS or Basis. When you save as glTF (text file with an accompanying binary file) you can then publish your game with just the optimized textures and leave the PNG files out of your game.
  19. Ultra workflow is made with great love for you. Using a combobox works really well for the textures, because you can select an embedded texture, browse for a new texture, go to the existing texture, or remove it, without adding a lot of buttons that wouldn't fit.
  20. I think this approach does not work with partial builds. I am seeing some values that appears twice and make no sense. The only thing you can do is declare all your custom event IDs in a single file.
  21. Something I started doing in the code is using strings for properties like this: void ModelEditor::ApplyProperties(shared_ptr<Material> material) { materialproperties->SetText("Material", "Name", material->name); materialproperties->SetValue("Material", "Metalness", material->GetMetalness()); materialproperties->SetValue("Material", "Roughness", material->GetRoughness()); materialproperties->SetState("Material", "Tessellation", material->GetTessellation()); materialproperties->SetValue("Material", "Color", material->GetColor()); materialproperties->SetValue("Material", "Emission", material->GetEmission()); materialproperties->SetState("Material", "Alpha mask", material->GetAlphaMask()); materialproperties->SetState("Material", "Transparent", material->GetTransparent()); materialproperties->SetState("Material", "Shadows", material->GetShadow()); materialproperties->SetState("Material", "Two-sided", not material->GetBackFaceCullMode()); materialproperties->SetValue("Material", "Displacement", material->GetDisplacement().x); materialproperties->SetValue("Material", "Offset", material->GetDisplacement().y); } Instead of declaring a million widget variables I just set values and detect events based on the property name. This cuts the size of the code down by a lot, probably 4x less code. It's very easy to add new properties without modifying any headers. I want user-made extensions to be able to add their own properties and store them in glTF and scene files. My main focus for extensions is editing and storing custom data, and creating custom tools. Not so much concerned with the user's ability to drastically modify the existing features or program layout.
  22. I feel my concern about handling models and materials is resolved nicely.
  23. Question: Do you have a matching depth pass shader you are using for the depth pre-pass? You can disable camera depth pre-pass to test this.
×
×
  • Create New...