Ok, I know this might be a lot more complicated than Im aware, but Ive been thinking about a way of making it easier for most mappers to include new assets in their missions, from inside DR and with its guidance.
Im thinking of a system just like the conversation gui, where you set the parameters and it writes the scripts for you, but in this case, something that will help you get assets in the game without having to deal with the laborious and error prone task of doing it manually:
1- I have an .ase file, and a bunch of maps for it;
2- I click on Import Asset, search for the model, and DR will then create the folders inside your project and place the model there;
3- The GUI would then search inside the file and prompt you to build the materials (or choose existing ones) for each mesh found in the model;
4- So for mesh A you would get a Material Creation gui, where you first search for the map (diffuse, normal or specular), then you choose the material type in a drop list (wood, metal, etc), and check yes or no for things like Self shadow, solid or non solid, etc. You can set it to be translucent, give it effects, maybe even adjust its levels and brightness and saturation, or strength for normals (is that possible with shader code?), make it emissive (choosing color and brightness), set its transparency (alpha) threshold or setup alpha blends, picking or creating each of the materials for it. Ideally, you would have a model preview window with the material you are creating being applied in real time, after each change. The existing model preview window in render mode should do.
5- Then its the same for mesh B and so forth;
6- You would be able to also check yes or no if the model is to be a moveable - you would then be able to choose physics characteristics (weight, bouncing sounds, etc), check ok for an automatic collision box, etc.
7- You would also be able to setup any skins for the model, picking existing ones or creating a new material for each;
And more stuff that I forget.
After that, DR would writte every file for you and place it inside the proper folder tree. It would writte the material shader, the skin def, the .cm file, everything. You wouldnt need to do research and go through existing assets, searching what would work for you, create you folder structure, edit text files by hand. The GUI would do that for you, just like the conversation or readable guis already do.
The same GUI could be used for importing materials alone, without a model being involved - just skip to step 4, and you would be able to easily add new textures to your map on the fly, from inside DR. Is any of this realistic?
Edited by RPGista, 31 August 2018 - 11:21 AM.