Jump to content

SpiderPig

Members
  • Posts

    2,285
  • Joined

  • Last visited

Everything posted by SpiderPig

  1. Ah yes they are. One has to be parented to the other I think.
  2. For a line mesh AddPrimitive() should only take 2 arguments. 1 vertex for each end of a line.
  3. I'm thinking about implemented something like this for a shadow effect behind the text. It should make the white text over the items more visible. https://www.shadertoy.com/view/7tSGDV
  4. Started getting crafting working. I used to have crafting on a separate tab to the inventory, but I'm going to see how this works. I think it'll look good having them side by side and it may be easier to use.
  5. I think they should be added to the world stats.
  6. But I have no way of tracking them. I mean my project is large and materials are being created and deleted left right and centre. I've already discovered I'll need to move all my icons for inventory items into one texture and draw them in the inventory via manipulating tex-coords. If I don't know how many there currently are I don't know where to make improvement's. 256 materials will be used pretty quick, that's only 256 unique objects.
  7. Can support for retrieving the current amounts be added or do we wait for a crash?
  8. Can I retrieve the current amount of all those values in C++?
  9. Ah yes thanks. MaxVerticies and MaxIndices is total for a single mesh or entire program? They probably are a bit low.
  10. Okay thanks. So it's pretty much just a memory game. I thought there might also be a maximum amount of entities and materials too as the shaders look them up in an array. Maybe those arrays have no set size like the textures do.
  11. Sure can. This is the material I set to a line mesh. debug_material = CreateMaterial(); debug_material->SetShaderFamily(LoadShaderFamily("Shaders\\Unlit.json")); debug_material->SetLineStipple(LINE_STIPPLE_DASHED); Line mesh was created like this and then the model scaled to the right size. model = CreateModel(world); model->SetRenderLayers(render_layers); mesh = model->AddMesh(MESH_LINES); mesh->AddVertex(0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f); mesh->AddVertex(1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 1.0f); mesh->AddVertex(1.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f); mesh->AddVertex(0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f); mesh->AddPrimitive(0, 1); mesh->AddPrimitive(1, 2); mesh->AddPrimitive(2, 3); mesh->AddPrimitive(3, 0);
  12. SetLineStipple() has to be the single most best thing about Ultra. I'm using it here to debug my widget system. Different coloured borders are used to identify different types of containers. I've pretty much implemented Godot's UI system into Ultra. You can see the various containers and how they expand in different ways to fill their parents. There are a few issues on the left with the scroll containers, hence the debugging mode.
  13. Just want to get a clear idea on what are some of the limits for these things so I can be sure to not exceed them. As I understand it only so many materials, textures, entities and maybe other things can be passed to the shaders. What are the max: Entities Materials Textures Any thing else?
  14. Perfect, thanks! Will put this to good use.
  15. I loaded this into the model viewer and re-saved it from there. In C++ it still says only 1 LOD is available and it has a mesh size of 0. Even though the output says it loaded the other LOD and it renders perfectly.
  16. All good I made this entire system myself in C++. I'm not sure if Leadwerks had a default interaction system of sorts, but you could probably make one with LUA.
  17. Regarding your latest update @Josh Does the entities index change through out the program or is it set once and that it until it's deleted?
  18. Thought I'd change this post to track the work in progress of my game instead. I've been spending time on procedural foliage generation. I create a volume and then add different items to that volume. It then procedurally places them inside the volume based on growth rates, shadow and collision radius and eventually height map data. The green bounding box is the foliage volume. The blue is where a sound will fade in when you enter it. The distance between the blue and green bounding boxes dictates the sound volume. I'll have to make a video of this soon. Each tree has an interaction assigned to it. This is a system I made in Leadwerks. The player has a box that it's bounds are used to get overlapping entities, if any of those entities have an interactable object assigned to it a label will appear on screen telling you what can be done. For these trees they will supply bark to your inventory. All the coloured shapes are debugging visualizers.
  19. I can do it in C++ but how to set it in the JSON material? { "material": { "version": 100, "color": [ 1.0, 1.0, 1.0, 1.0 ], "emission": [ 0.0, 0.0, 0.0 ], "metallic": 0.0, "roughness": 0.0, "transparent": false, "occlusionInfo": true, "occlusionScale": 1.0, "normalScale": 1.0, "shaderFamily": "PBR" } }
  20. Yeah and Ultra seems very capable of rendering multiple cameras.
  21. Yeah I agree, I'll use a 2nd camera. Thanks.
  22. Interesting. Is that a by-product of Vulkan or is it fixable down the track?
  23. I think what I need is to disable depth testing but it didn't do what I expected. The models that this material is applied to are small and are sometimes inside other objects, I just want them to be always onto of everything. debug_point_material = CreateMaterial(); debug_point_material->SetShaderFamily(LoadShaderFamily("Shaders\\Unlit.json")); debug_point_material->SetShadow(false); debug_point_material->SetDepthMask(false); debug_point_material->SetDepthTest(false);
  24. Yeah it is a tough one. I think I've found a way in Audacity to normalise sounds to a specific dB rating. Even if it's not exact it doesn't matter, just as long as the sounds have the right volume compared to each other. A few of the systems like dialogue, music and effects will have a master volume. I think I'll have to use a chart like this, just to get an idea on where things should be to make them at least a little realistic. I'll probably make my own chart based on this and insert my sounds at the correct dB rating and then just test it! See if that works.
×
×
  • Create New...