![]() |
|
New option to the Material tool - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Feedback (https://teamscm.co.uk/forum-9.html) +--- Forum: Suggestions and improvements (https://teamscm.co.uk/forum-11.html) +--- Thread: New option to the Material tool (/thread-3259.html) |
RE: New option to the Material tool - Person8880 - 23-08-2020 This wasn't forgotten, it just took time to get around to implementing it and finding a good approach. I've now added a "Transform" tab to the smart colour/material tool which will let you set an offset and scale for materials being applied, both in normal and sub-material mode. It should be able to load dupes that used the tool you referenced (and when applying materials in normal mode, will save in a format that tool can recognise). This is loaded on server 2 and will be on server 1 after the next restart. RE: New option to the Material tool - Blackcrow - 23-08-2020 A huge thanks Person !
RE: New option to the Material tool - The17thDoctor - 23-08-2020 Sounds pretty cool, never bothered looking into the original addon but I guess it'll solve some of my whacky mats RE: New option to the Material tool - Skeleton - 23-08-2020 Quote:[ulx-tscm] addons/ulx-tscm/lua/weapons/gmod_tool/stools/smart_colourmat/submaterials_cl.lua:34: attempt to index local 'KeyValues' (a nil value) RE: New option to the Material tool - Blackcrow - 23-08-2020 I tested it, and I already have some suggestions of improvement. First of all, thanks because it will change everything in term of Ship design ! Just a preview, Before : And after : But for the moment, it's pretty hard to use... Also I got some improvement suggestions : - Adding Offset Angle to (So it will be easier to make match some textures) - Add a way to copy the material transformation modification of a prop (that will maybe be easier to implement, by adding this tool as a real tool instead of just an option in the Smart Material tool. So that tool will be compatible with Smart Color and the basic Material tool aswell) - Add an option, which will make possible to preserve the same dimension on all the props, regardless of their size, as well as their resize value (because currently, the same transformation on identical props but resized in a different way requires to find the relation between each, to have the same material size.) For example : These are the same props, resized to 1, 1.5 , 2, and the size isn't matching. Also, when we used it on some modbridge external props with Skeleton, we found those errors spamming at like 200 error per second in the console : [ulx-tscm] addons/ulx-tscm/lua/weapons/gmod_tool/stools/smart_colourmat/submaterials_cl.lua:34: attempt to index local 'KeyValues' (a nil value) 1. CreateSubMaterial - addons/ulx-tscm/lua/weapons/gmod_tool/stools/smart_colourmat/submaterials_cl.lua:34 2. GetOrCreateSubMaterial - addons/ulx-tscm/lua/weapons/gmod_tool/stools/smart_colourmat/submaterials_cl.lua:131 3. unknown - addons/ulx-tscm/lua/weapons/gmod_tool/stools/smart_colourmat.lua:1136 (x1796) [ulx-tscm] addons/ulx-tscm/lua/weapons/gmod_tool/stools/smart_colourmat/submaterials_cl.lua:34: attempt to index local 'KeyValues' (a nil value) 1. CreateSubMaterial - addons/ulx-tscm/lua/weapons/gmod_tool/stools/smart_colourmat/submaterials_cl.lua:34 2. GetOrCreateSubMaterial - addons/ulx-tscm/lua/weapons/gmod_tool/stools/smart_colourmat/submaterials_cl.lua:131 3. unknown - addons/ulx-tscm/lua/weapons/gmod_tool/stools/smart_colourmat.lua:1136 (x528) [ulx-tscm] addons/ulx-tscm/lua/weapons/gmod_tool/stools/smart_colourmat/submaterials_cl.lua:34: attempt to index local 'KeyValues' (a nil value) 1. CreateSubMaterial - addons/ulx-tscm/lua/weapons/gmod_tool/stools/smart_colourmat/submaterials_cl.lua:34 2. GetOrCreateSubMaterial - addons/ulx-tscm/lua/weapons/gmod_tool/stools/smart_colourmat/submaterials_cl.lua:131 3. unknown - addons/ulx-tscm/lua/weapons/gmod_tool/stools/smart_colourmat.lua:1136 (x351) RE: New option to the Material tool - Person8880 - 23-08-2020 Adding a rotation option shouldn't be too difficult. As for copying, right clicking should copy the properties as it always has, including the new transform options. Note that the preview currently doesn't show up when in sub-material copying mode, this is something I still have to implement. Regarding accounting for resizing, this isn't as simple as it sounds. You'd have to tell it which axis on each prop correspond with the x/y directions on the material, it doesn't have an easy way to know what your intentions are. Finally, the script errors should be fixed after a restart (if you disable the preview mode or avoid looking at props when the material is unset, it should avoid the errors until then). RE: New option to the Material tool - Blackcrow - 23-08-2020 I think it was producing those errors when it wasn't in sub material mode RE: New option to the Material tool - Blackcrow - 24-08-2020 (23-08-2020, 06:02 PM)Person8880 Wrote: Regarding accounting for resizing, this isn't as simple as it sounds. You'd have to tell it which axis on each prop correspond with the x/y directions on the material, it doesn't have an easy way to know what your intentions are. So it's not easy to do, but is it still possible ? And for the moment that the materials are of the same size on each props, xy direction should be easy to change RE: New option to the Material tool - Skeleton - 24-08-2020 I don't know if this is a bug or not, but I can't resize CAP materials on PHX plates without editing the submaterials of the prop. Also, I've noticed that the two sliders are named Scale X instead of Scale X and Scale Y. RE: New option to the Material tool - Person8880 - 25-08-2020 The CAP materials and scale label issues should be fixed, and I've added rotation support. |