Jump to content

SpiderPig

Developers
  • Posts

    2,205
  • Joined

  • Last visited

Posts posted by SpiderPig

  1. My plugin loads geometry fine but it doesn't seem to use the data I assign to the material.

    Like the Quake Plugin example, I set a similar material to each mesh in the plugin code;

    auto mtl = new GMFMaterial(file);
    mtl->text = "{\"material\":{"
    	"\"color\": [1,0,0,1]"
    	"}}";
    mtl->path = L"material0.mat";
    mtl->data = (void*)mtl->text.c_str();
    mtl->datasize = mtl->text.size();
    
    mesh->SetMaterial(mtl);

    When I load the model, m_material for all the meshes are no longer 'empty' but the color is not red.  It is still the default white.

    1. Are there any extra steps I should take to make it work?
    2. OR... Can I do something like this instead of creating a material in the plugin?  And have the engines LoadModel() function automatically load the file and use that?
    mesh->SetMaterialPath("MyMaterialFile.mat")

    I saw a variable in the mesh class for the material path.  Perhaps this should work?

    mesh->materialfile = L"MyMaterial.mat";

     

  2. Are you using 0.9.5?  Only the terrain uses spv files in 0.9.5.  There is a SpecularGloss_Masked.frag in Shaders/PBR.  I'd say Josh just needs to fix the paths in SpecularGloss_Masked.fam to get it too work but you could do it manually in the meantime to see if it works.

    • Like 1
    1. Open up any model in the model editor.
    2. Navigate to the Model tab and select the model in the tree view.
    3. Change the collider to anything other than NONE.
    4. Now change the collider back to NONE.
    5. Close the model editor and click save.
    6. The model editor will not close and the top menu bar has disappeared.
  3. I was thinking it might also be useful to retrieve a list of hooks that have been added.  Like,

    vector<void*> hooks = world->GetHooks(HOOK_WORLD_UPDATE);

    I would use this mainly for debugging purposes, to make sure that I haven't accidentally added to many hooks or that I am actually removing a hook when I think I am.  I would place the hook.size() into my stats overlay so I can see what's going on.

  4. Hmm, my frag file has only 20k lines.  I'd like to know why it says there's an error at line 41,315.  <_<  My node editor has already solved all the #include directives too, that's why my frag file is so large.  There's no #include's left.

  5. Can't get this to work.  Am I doing something wrong or is it a bug?  I'm sure it worked like this in the past.  The font can't be found in the package.

    #include "Engine.h"
    using namespace UltraEngine;
    
    
    int main(int argc, const char* argv[])
    {
        auto package = LoadPackage("Data.zip");
        if (package == nullptr) { Notify("No Package Found"); }
    
        auto font = LoadFont("Fonts\\ZippedArial.ttf");
        Notify("No Font Found");
    
        return 0;
    }

    Data.zip

  6. @Andy90 and I discussed this on discord.  I think we found that exporting from blender as FBX and then letting Ultra's FBX to GLTF take over worked well.  At least for now anyway.  I think the problem lies in blenders GLTF exporter.

  7. I've noticed a lot of thin banding in the shadows in 0.9.5.  I think it's been raised already but I didn't see an official report. :)

    This is in the default startup map.

    ShadowBanding.thumb.png.70abbe751f9fb881bb9bbc526f6a8023.png

  8. Yeah the UI needs attention.  I just threw it together so that I could use it.  There are many bugs, I'm actually working on this right now.

    1. I did think people wouldn't like entering their steam info.  It doesn't have to be used, but I do use it.  At the very least I could still manage the steam sdk and just have the user input their steam details into the command prompt that show up, as they'll have to do that anyway to upload.
    2. I forgot to remove a couple of options;
      • Everything - should package the entire game folder into one zip file and move it to the export path.
      • All folders - should package all the folders within the game folder into one zip named "data.zip".  E.g. The publish folder should contain Data.zip and MyGame.exe as well as any DLL that is needed.
      • All Files - doesn't work atm
      • Separate Folders - Keeps all the folder hierarchy within the game folder but will package all files within that folder. (If this isn't working it's a bug, it works for me)
        • Steam may have changed now... but when I made this it was needed for making small downloads for any updates.  I found that if I had one large package (1GB or so)  even if I changed one file, steam saw that the whole package had changed so it uploaded the whole thing again and said there was a 1GB update for users.  Compressing each folders contents separately helped reduce that update size.
      • Separate Files - doesn't work atm.  I was thinking here it could compress / encrypt each file separately.
    3. It's using C#.  I probably will remake it with Ultra engine for those reasons.

     

    Thanks for your input! :)

    • Like 1
  9. It was thought for real-time recasting of terrain shadows.  Currently I disable all lighting for where there are shadows from the directional light.  But I'd like to disable the light only for the specific light source so I can get multiple shadows from multiple lights.  This way a point light could light up an area that is in shadow for a directional light.

    • Confused 1
  10. Discord for AdvancedProjectManager

    ProjectManager.zip

    I made this for Leadwerks years ago and have begun getting it ready for Ultra.  Currently it's designed for exporting your projects so that they're ready to share.  It can zip files and / or folders, it can encrypt and password protect them.  It can also manager the upload process to Steam.  It just needs your username, password, APP ID and DEPOT ID and it will upload it for you.

    Things to do;

    • Bug Fixes
    • Advanced management of project updating

    First thing to do is set the path to Ultra Engine and the path to your projects.

    AdvancedProjectManagerSettings.thumb.png.fabc07bfedfe171794869f45cf6ee024.png

    Screenshot

    AdvancedProjectManager.thumb.png.8ad4668d9c78c1fd2a78df01bd8c84ac.png

    • Like 3
×
×
  • Create New...